VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkVolumeRayCastCompositeFunction.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00034 #ifndef __vtkVolumeRayCastCompositeFunction_h 00035 #define __vtkVolumeRayCastCompositeFunction_h 00036 00037 #include "vtkRenderingVolumeModule.h" // For export macro 00038 #include "vtkVolumeRayCastFunction.h" 00039 00040 #define VTK_COMPOSITE_CLASSIFY_FIRST 0 00041 #define VTK_COMPOSITE_INTERPOLATE_FIRST 1 00042 00043 class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastCompositeFunction : public vtkVolumeRayCastFunction 00044 { 00045 public: 00046 static vtkVolumeRayCastCompositeFunction *New(); 00047 vtkTypeMacro(vtkVolumeRayCastCompositeFunction,vtkVolumeRayCastFunction); 00048 void PrintSelf( ostream& os, vtkIndent indent ); 00049 00051 00052 vtkSetClampMacro( CompositeMethod, int, 00053 VTK_COMPOSITE_CLASSIFY_FIRST, VTK_COMPOSITE_INTERPOLATE_FIRST ); 00054 vtkGetMacro(CompositeMethod,int); 00055 void SetCompositeMethodToInterpolateFirst() 00056 {this->SetCompositeMethod(VTK_COMPOSITE_INTERPOLATE_FIRST);} 00057 void SetCompositeMethodToClassifyFirst() 00058 {this->SetCompositeMethod(VTK_COMPOSITE_CLASSIFY_FIRST);} 00059 const char *GetCompositeMethodAsString(void); 00061 00062 //BTX 00063 void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo, 00064 vtkVolumeRayCastStaticInfo *staticInfo); 00065 00066 float GetZeroOpacityThreshold( vtkVolume *vol ); 00067 //ETX 00068 00069 protected: 00070 vtkVolumeRayCastCompositeFunction(); 00071 ~vtkVolumeRayCastCompositeFunction(); 00072 00073 //BTX 00074 void SpecificFunctionInitialize( vtkRenderer *ren, 00075 vtkVolume *vol, 00076 vtkVolumeRayCastStaticInfo *staticInfo, 00077 vtkVolumeRayCastMapper *mapper ); 00078 //ETX 00079 00080 int CompositeMethod; 00081 private: 00082 vtkVolumeRayCastCompositeFunction(const vtkVolumeRayCastCompositeFunction&); // Not implemented. 00083 void operator=(const vtkVolumeRayCastCompositeFunction&); // Not implemented. 00084 }; 00085 00086 00087 #endif