00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 3393 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef MitkPointSetSliceLMapper2D_H 00020 #define MitkPointSetSliceLMapper2D_H 00021 00022 #include "mitkCommon.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkGLMapper2D.h" 00025 #include "mitkTransferFunction.h" 00026 #include "mitkProperties.h" 00027 #include "mitkColorProperty.h" 00028 #include "mitkVtkScalarModeProperty.h" 00029 00030 class vtkPointSetSlicer; 00031 class vtkPlane; 00032 class vtkLookupTable; 00033 class vtkPointSet; 00034 class vtkScalarsToColors; 00035 class vtkPiecewiseFunction; 00036 class vtkAbstractMapper3D; 00037 00038 namespace mitk 00039 { 00040 00041 class BaseRenderer; 00042 00049 class MitkExt_EXPORT UnstructuredGridMapper2D : public GLMapper2D 00050 { 00051 public: 00052 00053 mitkClassMacro( UnstructuredGridMapper2D, GLMapper2D ); 00054 00055 itkNewMacro( Self ); 00056 00062 virtual void Paint( mitk::BaseRenderer* renderer ); 00063 00064 protected: 00065 00066 UnstructuredGridMapper2D(); 00067 00068 virtual ~UnstructuredGridMapper2D(); 00069 00070 virtual void GenerateData(); 00071 virtual void GenerateData(BaseRenderer*); 00072 00078 virtual vtkAbstractMapper3D* GetVtkAbstractMapper3D(BaseRenderer* renderer); 00079 00084 virtual vtkPointSet* GetVtkPointSet(BaseRenderer* renderer ); 00085 00090 virtual vtkScalarsToColors* GetVtkLUT(BaseRenderer* renderer ); 00091 00097 virtual bool IsConvertibleToVtkPointSet(BaseRenderer* renderer); 00098 00099 vtkPlane* m_Plane; 00100 vtkPointSetSlicer* m_Slicer; 00101 vtkPointSet* m_VtkPointSet; 00102 vtkScalarsToColors* m_ScalarsToColors; 00103 vtkPiecewiseFunction* m_ScalarsToOpacity; 00104 00105 mitk::ColorProperty::Pointer m_Color; 00106 mitk::IntProperty::Pointer m_LineWidth; 00107 mitk::BoolProperty::Pointer m_Outline; 00108 mitk::BoolProperty::Pointer m_ScalarVisibility; 00109 mitk::VtkScalarModeProperty::Pointer m_ScalarMode; 00110 }; 00111 00112 } // namespace mitk 00113 #endif /* MitkPointSetSliceLMapper2D_H */