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 #ifndef _MITK_GRID_REPRESENTATION_PROPERTY__H_ 00019 #define _MITK_GRID_REPRESENTATION_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 #include "MitkExtExports.h" 00023 00024 namespace mitk 00025 { 00026 00033 class MitkExt_EXPORT GridRepresentationProperty : public EnumerationProperty 00034 { 00035 public: 00036 00037 enum RepresentationType {POINTS = 0, WIREFRAME = 1, SURFACE = 2, VOLUME = 3}; 00038 00039 mitkClassMacro( GridRepresentationProperty, EnumerationProperty ); 00040 00041 itkNewMacro(GridRepresentationProperty); 00042 00043 mitkNewMacro1Param(GridRepresentationProperty, const IdType& ); 00044 00045 mitkNewMacro1Param(GridRepresentationProperty, const std::string& ); 00046 00050 virtual void SetRepresentationToPoints(); 00051 00055 virtual void SetRepresentationToWireframe(); 00056 00060 virtual void SetRepresentationToSurface(); 00061 00065 virtual void SetRepresentationToVolume(); 00066 00067 protected: 00068 00072 GridRepresentationProperty( ); 00073 00079 GridRepresentationProperty( const IdType& value ); 00080 00086 GridRepresentationProperty( const std::string& value ); 00087 00088 00093 virtual bool AddEnum( const std::string& name, const IdType& id ); 00094 00099 virtual void AddRepresentationTypes(); 00100 }; 00101 } // end of namespace mitk 00102 #endif // _MITK_GRID_REPRESENTATION_PROPERTY__H_