Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkContourVtkMapper3D.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_VTK_MAPPER_3D_H
18 #define MITK_CONTOUR_VTK_MAPPER_3D_H
19 
20 #include "mitkVtkMapper.h"
22 
23 #include <vtkPolyData.h>
24 #include <vtkSmartPointer.h>
25 
26 class vtkPolyDataMapper;
27 class vtkAppendPolyData;
28 class vtkActor;
29 class vtkTubeFilter;
30 
31 namespace mitk
32 {
33  class BaseRenderer;
34  class Contour;
35 
41  {
42  public:
44 
45  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
46 
47  virtual const mitk::Contour *GetInput();
48 
49  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
50 
51  protected:
53  virtual ~ContourVtkMapper3D();
54 
55  virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
56 
57  vtkSmartPointer<vtkPolyDataMapper> m_VtkPolyDataMapper;
58  vtkSmartPointer<vtkTubeFilter> m_TubeFilter;
59 
60  vtkSmartPointer<vtkAppendPolyData> m_VtkPointList;
61  vtkSmartPointer<vtkPolyData> m_Contour;
62  vtkSmartPointer<vtkActor> m_Actor;
63  };
64 
65 } // namespace mitk
66 
67 #endif // MITK_CONTOUR_VTK_MAPPER_3D_H
Organizes the rendering process.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
vtkSmartPointer< vtkPolyDataMapper > m_VtkPolyDataMapper
vtkSmartPointer< vtkActor > m_Actor
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
vtkSmartPointer< vtkAppendPolyData > m_VtkPointList
Stores vertices for drawing a contour.
Definition: mitkContour.h:35
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Vtk-based mapper for mitk::Contour.
vtkSmartPointer< vtkTubeFilter > m_TubeFilter
vtkSmartPointer< vtkPolyData > m_Contour