Medical Imaging Interaction Toolkit  2025.12.02
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 
64 
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 
99  mitk::ColorProperty::Pointer m_Color;
100  mitk::IntProperty::Pointer m_LineWidth;
101  mitk::BoolProperty::Pointer m_Outline;
102  mitk::BoolProperty::Pointer m_ScalarVisibility;
103  mitk::VtkScalarModeProperty::Pointer m_ScalarMode;
104  };
105 
106 } // namespace mitk
107 #endif
#define MITKMAPPEREXT_EXPORT
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:42
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:47
OpenGL-based mapper to display a 2d cut through a poly data OpenGL-based mapper to display a 2D cut t...
void Paint(mitk::BaseRenderer *renderer) override
virtual bool IsConvertibleToVtkPointSet(BaseRenderer *renderer)
LocalStorageHandler< BaseLocalStorage > m_LSH
virtual vtkScalarsToColors * GetVtkLUT(BaseRenderer *renderer)
virtual vtkAbstractMapper3D * GetVtkAbstractMapper3D(BaseRenderer *renderer)
void GenerateDataForRenderer(BaseRenderer *) override
Generate the data needed for rendering into renderer.
mitk::BoolProperty::Pointer m_ScalarVisibility
virtual vtkPointSet * GetVtkPointSet(BaseRenderer *renderer, int time=0)
mitk::ColorProperty::Pointer m_Color
mitkClassMacro(UnstructuredGridMapper2D, GLMapper)
mitk::VtkScalarModeProperty::Pointer m_ScalarMode
Find image slices visible on a given plane.