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_VOLUME_MAPPER_PROPERTY__H_ 00019 #define _MITK_GRID_VOLUME_MAPPER_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 #include "MitkExtExports.h" 00023 00024 namespace mitk 00025 { 00026 00033 class MitkExt_EXPORT GridVolumeMapperProperty : public EnumerationProperty 00034 { 00035 public: 00036 00037 enum MapperType { RAYCAST = 0 00038 #if (VTK_MAJOR_VERSION >= 5) 00039 , PT = 1, ZSWEEP = 2 00040 #endif 00041 }; 00042 00043 00044 mitkClassMacro( GridVolumeMapperProperty, EnumerationProperty ); 00045 00046 itkNewMacro(GridVolumeMapperProperty); 00047 00048 mitkNewMacro1Param(GridVolumeMapperProperty, const IdType&); 00049 00050 mitkNewMacro1Param(GridVolumeMapperProperty, const std::string&); 00051 00052 #if (VTK_MAJOR_VERSION >= 5) 00053 00056 virtual void SetVolumeMapperToPT(); 00057 00061 virtual void SetVolumeMapperToZSweep(); 00062 #endif 00063 00067 virtual void SetVolumeMapperToRayCast(); 00068 00069 00070 protected: 00071 00075 GridVolumeMapperProperty( ); 00076 00082 GridVolumeMapperProperty( const IdType& value ); 00083 00089 GridVolumeMapperProperty( const std::string& value ); 00090 00095 virtual bool AddEnum( const std::string& name, const IdType& id ); 00096 00101 virtual void AddRepresentationTypes(); 00102 }; 00103 } // end of namespace mitk 00104 #endif // _MITK_GRID_VOLUME_MAPPER_PROPERTY__H_