Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MitkPointSetSliceLMapper2D_H
18 #define MitkPointSetSliceLMapper2D_H
19 
20 #include "MitkMapperExtExports.h"
21 #include "mitkColorProperty.h"
22 #include "mitkCommon.h"
23 #include "mitkGLMapper.h"
24 #include "mitkProperties.h"
25 #include "mitkTransferFunction.h"
27 
28 class vtkPointSetSlicer;
29 class vtkPlane;
30 class vtkLookupTable;
31 class vtkPointSet;
32 class vtkScalarsToColors;
33 class vtkPiecewiseFunction;
34 class vtkAbstractMapper3D;
35 
36 namespace mitk
37 {
38  class BaseRenderer;
39 
47  {
48  public:
50 
51  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
52 
53 
58  virtual void Paint(mitk::BaseRenderer *renderer) override;
59 
61 
62  protected:
64 
65  virtual ~UnstructuredGridMapper2D();
66 
67  virtual void GenerateDataForRenderer(BaseRenderer *) override;
68 
74  virtual vtkAbstractMapper3D *GetVtkAbstractMapper3D(BaseRenderer *renderer);
75 
80  virtual vtkPointSet *GetVtkPointSet(BaseRenderer *renderer, int time = 0);
81 
86  virtual vtkScalarsToColors *GetVtkLUT(BaseRenderer *renderer);
87 
93  virtual bool IsConvertibleToVtkPointSet(BaseRenderer *renderer);
94 
95  vtkPlane *m_Plane;
97  vtkPointSet *m_VtkPointSet;
98  vtkScalarsToColors *m_ScalarsToColors;
99  vtkPiecewiseFunction *m_ScalarsToOpacity;
100 
106  };
107 
108 } // namespace mitk
109 #endif /* MitkPointSetSliceLMapper2D_H */
#define MITKMAPPEREXT_EXPORT
LocalStorageHandler< BaseLocalStorage > m_LSH
Organizes the rendering process.
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:45
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:54
mitk::VtkScalarModeProperty::Pointer m_ScalarMode
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
OpenGL-based mapper to display a 2d cut through a poly data OpenGL-based mapper to display a 2D cut t...