Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkContourSetVtkMapper3D.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkContourSetVtkMapper3D_h
14 #define mitkContourSetVtkMapper3D_h
15 
16 #include "mitkBaseRenderer.h"
17 #include "mitkCommon.h"
18 #include "mitkContourSet.h"
19 #include "mitkVtkMapper.h"
21 
22 #include <vtkPolyData.h>
23 
24 class vtkPolyDataMapper;
25 class vtkAppendPolyData;
26 class vtkActor;
27 class vtkTubeFilter;
28 
29 namespace mitk
30 {
31  //##Documentation
32  //## @brief Vtk-based mapper for mitk::Contour
33  //## @ingroup Mapper
35  {
36  public:
38 
39  itkFactorylessNewMacro(Self);
40 
41  itkCloneMacro(Self);
42 
43  virtual const mitk::ContourSet *GetInput();
44 
45  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
46 
47  protected:
49 
50  ~ContourSetVtkMapper3D() override;
51 
52  void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
53 
54  vtkPolyDataMapper *m_VtkPolyDataMapper;
55  vtkTubeFilter *m_TubeFilter;
56 
57  vtkPolyData *m_ContourSet;
58  vtkActor *m_Actor;
59  };
60 
61 } // namespace mitk
62 
63 #endif
mitk::ContourSetVtkMapper3D::m_VtkPolyDataMapper
vtkPolyDataMapper * m_VtkPolyDataMapper
Definition: mitkContourSetVtkMapper3D.h:54
mitk::ContourSetVtkMapper3D::m_TubeFilter
vtkTubeFilter * m_TubeFilter
Definition: mitkContourSetVtkMapper3D.h:55
mitk::ContourSetVtkMapper3D::m_Actor
vtkActor * m_Actor
Definition: mitkContourSetVtkMapper3D.h:58
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::VtkMapper
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:47
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::ContourSetVtkMapper3D::m_ContourSet
vtkPolyData * m_ContourSet
Definition: mitkContourSetVtkMapper3D.h:57
mitk::ContourSet
Definition: mitkContourSet.h:28
mitkVtkMapper.h
mitk::ContourSetVtkMapper3D
Vtk-based mapper for mitk::Contour.
Definition: mitkContourSetVtkMapper3D.h:34
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:55
MitkSegmentationExports.h
mitkBaseRenderer.h
mitkContourSet.h