VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkVolumeRayCastIsosurfaceFunction.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 =========================================================================*/ 00035 #ifndef __vtkVolumeRayCastIsosurfaceFunction_h 00036 #define __vtkVolumeRayCastIsosurfaceFunction_h 00037 00038 #include "vtkRenderingVolumeModule.h" // For export macro 00039 #include "vtkVolumeRayCastFunction.h" 00040 00041 class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastIsosurfaceFunction : public vtkVolumeRayCastFunction 00042 { 00043 public: 00044 vtkTypeMacro(vtkVolumeRayCastIsosurfaceFunction,vtkVolumeRayCastFunction); 00045 void PrintSelf( ostream& os, vtkIndent indent ); 00046 00048 static vtkVolumeRayCastIsosurfaceFunction *New(); 00049 00051 float GetZeroOpacityThreshold( vtkVolume *vol ); 00052 00054 00055 vtkSetMacro( IsoValue, double ); 00056 vtkGetMacro( IsoValue, double ); 00058 00059 00061 double IsoValue; 00062 00064 float Color[3]; 00065 00066 //BTX 00067 void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo, 00068 vtkVolumeRayCastStaticInfo *staticInfo); 00069 //ETX 00070 00071 protected: 00072 vtkVolumeRayCastIsosurfaceFunction(); 00073 ~vtkVolumeRayCastIsosurfaceFunction(); 00074 00075 //BTX 00076 void SpecificFunctionInitialize( vtkRenderer *ren, 00077 vtkVolume *vol, 00078 vtkVolumeRayCastStaticInfo *staticInfo, 00079 vtkVolumeRayCastMapper *mapper ); 00080 //ETX 00081 private: 00082 vtkVolumeRayCastIsosurfaceFunction(const vtkVolumeRayCastIsosurfaceFunction&); // Not implemented. 00083 void operator=(const vtkVolumeRayCastIsosurfaceFunction&); // Not implemented. 00084 }; 00085 #endif