00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2008-04-14 19:45:53 +0200 (Mo, 14 Apr 2008) $ 00006 Version: $Revision: 14081 $ 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 #ifndef mitkPlanarFigureControlPointStyleProperty_h 00019 #define mitkPlanarFigureControlPointStyleProperty_h 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 #include "PlanarFigureExports.h" 00024 00025 namespace mitk 00026 { 00027 00040 class PlanarFigure_EXPORT PlanarFigureControlPointStyleProperty : public EnumerationProperty 00041 { 00042 public: 00043 00044 mitkClassMacro( PlanarFigureControlPointStyleProperty, EnumerationProperty ); 00045 00046 itkNewMacro(PlanarFigureControlPointStyleProperty); 00047 00048 mitkNewMacro1Param(PlanarFigureControlPointStyleProperty, const IdType&); 00049 00050 mitkNewMacro1Param(PlanarFigureControlPointStyleProperty, const std::string&); 00051 00052 typedef enum 00053 { 00054 Square, Circle 00055 } Shape; 00056 00057 virtual Shape GetShape(); 00058 00059 virtual void SetShape( Shape ); 00060 00061 protected: 00062 00063 PlanarFigureControlPointStyleProperty( ); 00064 00065 PlanarFigureControlPointStyleProperty( const IdType &value ); 00066 00071 PlanarFigureControlPointStyleProperty( const std::string &value ); 00072 00073 00078 virtual bool AddEnum( const std::string &name, const IdType &id ); 00079 00083 virtual void AddEnumTypes(); 00084 }; 00085 00086 } // end of namespace mitk 00087 00088 00089 #endif