Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 (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_VTK_MAPPER_3D_H
14 #define MITK_CONTOUR_VTK_MAPPER_3D_H
15 
16 #include "mitkVtkMapper.h"
18 
19 #include <vtkPolyData.h>
20 #include <vtkSmartPointer.h>
21 
22 class vtkPolyDataMapper;
23 class vtkAppendPolyData;
24 class vtkActor;
25 class vtkTubeFilter;
26 
27 namespace mitk
28 {
29  class BaseRenderer;
30  class Contour;
31 
37  {
38  public:
40 
41  itkFactorylessNewMacro(Self);
42 
43  itkCloneMacro(Self);
44 
45  virtual const mitk::Contour *GetInput();
46 
47  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
48 
49  protected:
51  ~ContourVtkMapper3D() override;
52 
53  void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
54 
55  vtkSmartPointer<vtkPolyDataMapper> m_VtkPolyDataMapper;
56  vtkSmartPointer<vtkTubeFilter> m_TubeFilter;
57 
58  vtkSmartPointer<vtkAppendPolyData> m_VtkPointList;
59  vtkSmartPointer<vtkPolyData> m_Contour;
60  vtkSmartPointer<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.
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:48
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:49
vtkSmartPointer< vtkAppendPolyData > m_VtkPointList
Stores vertices for drawing a contour.
Definition: mitkContour.h:31
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Vtk-based mapper for mitk::Contour.
vtkSmartPointer< vtkTubeFilter > m_TubeFilter
vtkSmartPointer< vtkPolyData > m_Contour