00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkVolumeRayCastIsosurfaceFunction.h,v $ 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 "vtkVolumeRayCastFunction.h" 00039 00040 class VTK_VOLUMERENDERING_EXPORT vtkVolumeRayCastIsosurfaceFunction : public vtkVolumeRayCastFunction 00041 { 00042 public: 00043 vtkTypeRevisionMacro(vtkVolumeRayCastIsosurfaceFunction,vtkVolumeRayCastFunction); 00044 void PrintSelf( ostream& os, vtkIndent indent ); 00045 00047 static vtkVolumeRayCastIsosurfaceFunction *New(); 00048 00050 float GetZeroOpacityThreshold( vtkVolume *vol ); 00051 00053 00054 vtkSetMacro( IsoValue, double ); 00055 vtkGetMacro( IsoValue, double ); 00057 00058 00060 double IsoValue; 00061 00063 float Color[3]; 00064 00065 //BTX 00066 void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo, 00067 vtkVolumeRayCastStaticInfo *staticInfo); 00068 //ETX 00069 00070 protected: 00071 vtkVolumeRayCastIsosurfaceFunction(); 00072 ~vtkVolumeRayCastIsosurfaceFunction(); 00073 00074 //BTX 00075 void SpecificFunctionInitialize( vtkRenderer *ren, 00076 vtkVolume *vol, 00077 vtkVolumeRayCastStaticInfo *staticInfo, 00078 vtkVolumeRayCastMapper *mapper ); 00079 //ETX 00080 private: 00081 vtkVolumeRayCastIsosurfaceFunction(const vtkVolumeRayCastIsosurfaceFunction&); // Not implemented. 00082 void operator=(const vtkVolumeRayCastIsosurfaceFunction&); // Not implemented. 00083 }; 00084 #endif