Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MitkPolyDataGLMapper2D_H
00020 #define MitkPolyDataGLMapper2D_H
00021
00022 #include "mitkCommon.h"
00023 #include "mitkGLMapper2D.h"
00024
00025 class vtkCutter;
00026 class vtkPlane;
00027 class vtkLookupTable;
00028 class vtkPolyData;
00029 class vtkScalarsToColors;
00030 class vtkPolyDataMapper;
00031
00032 namespace mitk
00033 {
00034
00035 class BaseRenderer;
00036
00043 class MITK_CORE_EXPORT PolyDataGLMapper2D : public GLMapper2D
00044 {
00045 public:
00046
00047 mitkClassMacro( PolyDataGLMapper2D, GLMapper2D );
00048
00049 itkNewMacro( Self );
00050
00054 itkSetMacro( ColorByCellData, bool );
00055
00059 itkSetMacro( ColorByPointData, bool );
00060
00065 virtual void Paint( mitk::BaseRenderer * renderer );
00066
00067 protected:
00068
00069 PolyDataGLMapper2D();
00070
00071 virtual ~PolyDataGLMapper2D();
00072
00078 virtual vtkPolyDataMapper* GetVtkPolyDataMapper();
00079
00084 virtual vtkPolyData* GetVtkPolyData( );
00085
00090 virtual vtkScalarsToColors* GetVtkLUT( );
00091
00097 virtual bool IsConvertibleToVtkPolyData();
00098
00099 vtkPlane* m_Plane;
00100
00101 vtkCutter* m_Cutter;
00102
00103 bool m_ColorByCellData;
00104
00105 bool m_ColorByPointData;
00106
00107 };
00108
00109 }
00110 #endif