Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 MitkPointSetSliceLMapper2D_H
14 #define MitkPointSetSliceLMapper2D_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 /* MitkPointSetSliceLMapper2D_H */
#define MITKMAPPEREXT_EXPORT
LocalStorageHandler< BaseLocalStorage > m_LSH
Organizes the rendering process.
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:41
DataCollection - Class to facilitate loading/accessing structured data.
mitk::BoolProperty::Pointer m_ScalarVisibility
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:49
mitk::ColorProperty::Pointer m_Color
mitk::VtkScalarModeProperty::Pointer m_ScalarMode
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
OpenGL-based mapper to display a 2d cut through a poly data OpenGL-based mapper to display a 2D cut t...