Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITK_CONTOUR_SET_VTK_MAPPER_3D_H
18 #define MITK_CONTOUR_SET_VTK_MAPPER_3D_H
19 
20 #include "mitkBaseRenderer.h"
21 #include "mitkCommon.h"
22 #include "mitkContourSet.h"
23 #include "mitkVtkMapper.h"
25 
26 #include <vtkPolyData.h>
27 
28 class vtkPolyDataMapper;
29 class vtkAppendPolyData;
30 class vtkActor;
31 class vtkTubeFilter;
32 
33 namespace mitk
34 {
35  //##Documentation
36  //## @brief Vtk-based mapper for mitk::Contour
37  //## @ingroup Mapper
39  {
40  public:
42 
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
45  virtual const mitk::ContourSet *GetInput();
46 
47  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
48 
49  protected:
51 
52  virtual ~ContourSetVtkMapper3D();
53 
54  virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
55 
56  vtkPolyDataMapper *m_VtkPolyDataMapper;
57  vtkTubeFilter *m_TubeFilter;
58 
59  vtkPolyData *m_ContourSet;
60  vtkActor *m_Actor;
61  };
62 
63 } // namespace mitk
64 
65 #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:53
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44