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 MITKPointSetMAPPER2D_H_HEADER_INCLUDED 00020 #define MITKPointSetMAPPER2D_H_HEADER_INCLUDED 00021 00022 #include "mitkCommon.h" 00023 #include "mitkGLMapper2D.h" 00024 00025 namespace mitk { 00026 00027 class BaseRenderer; 00028 class PointSet; 00029 00058 class MITK_CORE_EXPORT PointSetGLMapper2D : public GLMapper2D 00059 { 00060 public: 00061 mitkClassMacro(PointSetGLMapper2D, GLMapper2D); 00062 00063 itkNewMacro(Self); 00064 00066 virtual const mitk::PointSet * GetInput(void); 00067 00068 virtual void Paint(mitk::BaseRenderer * renderer); 00069 00070 virtual void ApplyProperties(mitk::BaseRenderer* renderer); 00071 00072 static void SetDefaultProperties(mitk::DataNode* node, mitk::BaseRenderer* renderer = NULL, bool overwrite = false); 00073 00074 protected: 00075 PointSetGLMapper2D(); 00076 00077 virtual ~PointSetGLMapper2D(); 00078 00079 bool m_Polygon; 00080 bool m_ShowPoints; 00081 bool m_ShowDistances; 00082 int m_DistancesDecimalDigits; 00083 bool m_ShowAngles; 00084 bool m_ShowDistantLines; 00085 int m_LineWidth; 00086 int m_PointLineWidth; 00087 int m_Point2DSize; 00088 }; 00089 00090 } // namespace mitk 00091 00092 00093 00094 #endif /* MITKPointSetMapper2D_H_HEADER_INCLUDED */