Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkUnstructuredGridMapper2D.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 mitkUnstructuredGridMapper2D_h
14 #define mitkUnstructuredGridMapper2D_h
15 
16 #include "MitkMapperExtExports.h"
17 #include "mitkColorProperty.h"
18 #include "mitkCommon.h"
19 #include "mitkGLMapper.h"
20 #include "mitkProperties.h"
21 #include "mitkTransferFunction.h"
23 
24 class vtkPointSetSlicer;
25 class vtkPlane;
26 class vtkLookupTable;
27 class vtkPointSet;
28 class vtkScalarsToColors;
29 class vtkPiecewiseFunction;
30 class vtkAbstractMapper3D;
31 
32 namespace mitk
33 {
34  class BaseRenderer;
35 
43  {
44  public:
46 
47  itkFactorylessNewMacro(Self);
48 
49  itkCloneMacro(Self);
50 
56  void Paint(mitk::BaseRenderer *renderer) override;
57 
59 
60  protected:
62 
63  ~UnstructuredGridMapper2D() override;
64 
65  void GenerateDataForRenderer(BaseRenderer *) override;
66 
72  virtual vtkAbstractMapper3D *GetVtkAbstractMapper3D(BaseRenderer *renderer);
73 
78  virtual vtkPointSet *GetVtkPointSet(BaseRenderer *renderer, int time = 0);
79 
84  virtual vtkScalarsToColors *GetVtkLUT(BaseRenderer *renderer);
85 
91  virtual bool IsConvertibleToVtkPointSet(BaseRenderer *renderer);
92 
93  vtkPlane *m_Plane;
95  vtkPointSet *m_VtkPointSet;
96  vtkScalarsToColors *m_ScalarsToColors;
97  vtkPiecewiseFunction *m_ScalarsToOpacity;
98 
104  };
105 
106 } // namespace mitk
107 #endif
vtkPointSetSlicer
Definition: vtkPointSetSlicer.h:33
mitk::UnstructuredGridMapper2D::m_Plane
vtkPlane * m_Plane
Definition: mitkUnstructuredGridMapper2D.h:93
MitkMapperExtExports.h
mitkVtkScalarModeProperty.h
mitkTransferFunction.h
mitkGLMapper.h
mitk::UnstructuredGridMapper2D
OpenGL-based mapper to display a 2d cut through a poly data OpenGL-based mapper to display a 2D cut t...
Definition: mitkUnstructuredGridMapper2D.h:42
itk::SmartPointer< Self >
mitk::UnstructuredGridMapper2D::m_ScalarsToOpacity
vtkPiecewiseFunction * m_ScalarsToOpacity
Definition: mitkUnstructuredGridMapper2D.h:97
mitk::UnstructuredGridMapper2D::m_Outline
mitk::BoolProperty::Pointer m_Outline
Definition: mitkUnstructuredGridMapper2D.h:101
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::LocalStorageHandler< BaseLocalStorage >
mitk::UnstructuredGridMapper2D::m_ScalarsToColors
vtkScalarsToColors * m_ScalarsToColors
Definition: mitkUnstructuredGridMapper2D.h:96
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitkCommon.h
mitk::UnstructuredGridMapper2D::m_ScalarMode
mitk::VtkScalarModeProperty::Pointer m_ScalarMode
Definition: mitkUnstructuredGridMapper2D.h:103
mitk::UnstructuredGridMapper2D::m_VtkPointSet
vtkPointSet * m_VtkPointSet
Definition: mitkUnstructuredGridMapper2D.h:95
mitk::GLMapper
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:41
mitk::UnstructuredGridMapper2D::m_LineWidth
mitk::IntProperty::Pointer m_LineWidth
Definition: mitkUnstructuredGridMapper2D.h:100
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkColorProperty.h
mitk::UnstructuredGridMapper2D::m_ScalarVisibility
mitk::BoolProperty::Pointer m_ScalarVisibility
Definition: mitkUnstructuredGridMapper2D.h:102
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::UnstructuredGridMapper2D::m_Color
mitk::ColorProperty::Pointer m_Color
Definition: mitkUnstructuredGridMapper2D.h:99
mitkProperties.h
mitk::UnstructuredGridMapper2D::m_Slicer
vtkPointSetSlicer * m_Slicer
Definition: mitkUnstructuredGridMapper2D.h:94
MITKMAPPEREXT_EXPORT
#define MITKMAPPEREXT_EXPORT
Definition: MitkMapperExtExports.h:15
mitk::UnstructuredGridMapper2D::m_LSH
LocalStorageHandler< BaseLocalStorage > m_LSH
Definition: mitkUnstructuredGridMapper2D.h:58