00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 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 MITKSplineMapper2D_H_HEADER_INCLUDED 00020 #define MITKSplineMapper2D_H_HEADER_INCLUDED 00021 00022 #include "mitkCommon.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkGLMapper2D.h" 00025 #include "mitkPointSetGLMapper2D.h" 00026 #include <vtkSystemIncludes.h> 00027 00028 namespace mitk 00029 { 00030 00031 class BaseRenderer; 00032 class PointSet; 00033 00034 //##Documentation 00035 //## @brief OpenGL-based mapper to display a spline based on a mitk::PointSet in a 2D window. 00036 //## 00056 //## @ingroup Mapper 00057 class MitkExt_EXPORT SplineMapper2D : public PointSetGLMapper2D 00058 { 00059 public: 00060 mitkClassMacro ( SplineMapper2D, PointSetGLMapper2D ); 00061 00062 itkNewMacro ( Self ); 00063 00064 virtual void Paint ( mitk::BaseRenderer * renderer ); 00065 00066 virtual void ApplyProperties ( mitk::BaseRenderer* renderer ); 00067 00068 itkSetMacro ( MaxProjectionDistance, vtkFloatingPointType ); 00069 00070 itkGetMacro ( MaxProjectionDistance, vtkFloatingPointType ); 00071 00072 protected: 00073 SplineMapper2D(); 00074 00075 virtual ~SplineMapper2D(); 00076 00077 vtkFloatingPointType m_MaxProjectionDistance; 00078 }; 00079 00080 } // namespace mitk 00081 00082 00083 00084 #endif /* MITKSplineMapper2D_H_HEADER_INCLUDED */