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 MITK_PLANE_DECORATION_PROPERTY__H 00019 #define MITK_PLANE_DECORATION_PROPERTY__H 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 namespace mitk 00024 { 00025 00039 class MITK_CORE_EXPORT PlaneOrientationProperty : public EnumerationProperty 00040 { 00041 public: 00042 00043 mitkClassMacro( PlaneOrientationProperty, EnumerationProperty ); 00044 00045 itkNewMacro(PlaneOrientationProperty); 00046 00047 mitkNewMacro1Param(PlaneOrientationProperty, const IdType&); 00048 00049 mitkNewMacro1Param(PlaneOrientationProperty, const std::string&); 00050 00051 enum 00052 { 00053 PLANE_DECORATION_NONE, 00054 PLANE_DECORATION_POSITIVE_ORIENTATION, 00055 PLANE_DECORATION_NEGATIVE_ORIENTATION 00056 }; 00057 00061 virtual int GetPlaneDecoration(); 00062 00066 virtual void SetPlaneDecorationToNone(); 00067 00071 virtual void SetPlaneDecorationToPositiveOrientation(); 00072 00076 virtual void SetPlaneDecorationToNegativeOrientation(); 00077 00078 protected: 00079 00083 PlaneOrientationProperty( ); 00084 00089 PlaneOrientationProperty( const IdType &value ); 00090 00095 PlaneOrientationProperty( const std::string &value ); 00096 00097 00102 virtual bool AddEnum( const std::string &name, const IdType &id ); 00103 00107 virtual void AddDecorationTypes(); 00108 }; 00109 00110 } // end of namespace mitk 00111 00112 00113 #endif