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_VTK_REPRESENTATION_PROPERTY__H_ 00019 #define _MITK_VTK_REPRESENTATION_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 namespace mitk 00024 { 00025 00032 class MITK_CORE_EXPORT VtkRepresentationProperty : public EnumerationProperty 00033 { 00034 public: 00035 00036 mitkClassMacro( VtkRepresentationProperty, EnumerationProperty ); 00037 00038 itkNewMacro(VtkRepresentationProperty); 00039 00040 mitkNewMacro1Param(VtkRepresentationProperty, const IdType&); 00041 00042 mitkNewMacro1Param(VtkRepresentationProperty, const std::string&); 00043 00048 virtual int GetVtkRepresentation(); 00049 00053 virtual void SetRepresentationToPoints(); 00054 00058 virtual void SetRepresentationToWireframe(); 00059 00063 virtual void SetRepresentationToSurface(); 00064 00065 protected: 00066 00070 VtkRepresentationProperty( ); 00071 00077 VtkRepresentationProperty( const IdType& value ); 00078 00084 VtkRepresentationProperty( const std::string& value ); 00085 00090 virtual bool AddEnum( const std::string& name, const IdType& id ); 00091 00096 virtual void AddRepresentationTypes(); 00097 }; 00098 } // end of namespace mitk 00099 #endif 00100 00101