Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 mitkContourVtkMapper3D_h
14 #define mitkContourVtkMapper3D_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 
57 
61  };
62 
63 } // namespace mitk
64 
65 #endif
mitk::ContourVtkMapper3D
Vtk-based mapper for mitk::Contour.
Definition: mitkContourVtkMapper3D.h:36
mitk::ContourVtkMapper3D::m_TubeFilter
vtkSmartPointer< vtkTubeFilter > m_TubeFilter
Definition: mitkContourVtkMapper3D.h:56
vtkSmartPointer< vtkPolyDataMapper >
mitk::ContourVtkMapper3D::m_VtkPolyDataMapper
vtkSmartPointer< vtkPolyDataMapper > m_VtkPolyDataMapper
Definition: mitkContourVtkMapper3D.h:55
mitk::ContourVtkMapper3D::m_Actor
vtkSmartPointer< vtkActor > m_Actor
Definition: mitkContourVtkMapper3D.h:60
mitk::ContourVtkMapper3D::m_VtkPointList
vtkSmartPointer< vtkAppendPolyData > m_VtkPointList
Definition: mitkContourVtkMapper3D.h:58
mitk
Find image slices visible on a given plane.
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
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitkVtkMapper.h
mitk::ContourVtkMapper3D::m_Contour
vtkSmartPointer< vtkPolyData > m_Contour
Definition: mitkContourVtkMapper3D.h:59
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MitkSegmentationExports.h
mitk::Contour
Stores vertices for drawing a contour.
Definition: mitkContour.h:31