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_VOLUME_RENDERING_PROPERTY__H_ 00019 #define _MITK_VTK_VOLUME_RENDERING_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 #define VTK_RAY_CAST_COMPOSITE_FUNCTION 1 00024 #define VTK_VOLUME_RAY_CAST_MIP_FUNCTION 2 00025 namespace mitk 00026 { 00027 00035 class MITK_CORE_EXPORT VtkVolumeRenderingProperty : public EnumerationProperty 00036 { 00037 public: 00038 00039 mitkClassMacro( VtkVolumeRenderingProperty, EnumerationProperty ); 00040 00041 itkNewMacro(VtkVolumeRenderingProperty); 00042 00043 mitkNewMacro1Param(VtkVolumeRenderingProperty, const IdType&); 00044 00045 mitkNewMacro1Param(VtkVolumeRenderingProperty, const std::string&); 00046 00050 virtual int GetRenderingType(); 00051 00055 virtual void SetRenderingTypeToMIP(); 00056 00060 virtual void SetRenderingTypeToComposite(); 00061 00062 protected: 00063 00066 VtkVolumeRenderingProperty( ); 00067 00071 VtkVolumeRenderingProperty( const IdType& value ); 00072 00076 VtkVolumeRenderingProperty( const std::string& value ); 00077 00082 virtual bool AddEnum( const std::string& name, const IdType& id ); 00083 00088 virtual void AddRenderingTypes(); 00089 }; 00090 00091 } // end of namespace mitk 00092 00093 #endif 00094 00095