Medical Imaging Interaction Toolkit  2018.4.99-36d69b77
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 MITK_CONTOUR_SET_VTK_MAPPER_3D_H
14 #define MITK_CONTOUR_SET_VTK_MAPPER_3D_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_CONTOUR_VTK_MAPPER_3D_H
Organizes the rendering process.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Vtk-based mapper for mitk::Contour.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:48
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:49
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40