Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkVolumeRayCastCompositeFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVolumeRayCastCompositeFunction.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 =========================================================================*/
00044 #ifndef __vtkVolumeRayCastCompositeFunction_h
00045 #define __vtkVolumeRayCastCompositeFunction_h
00046 
00047 #include "vtkVolumeRayCastFunction.h"
00048 
00049 #define VTK_COMPOSITE_CLASSIFY_FIRST 0
00050 #define VTK_COMPOSITE_INTERPOLATE_FIRST 1
00051 
00052 class VTK_RENDERING_EXPORT vtkVolumeRayCastCompositeFunction : public vtkVolumeRayCastFunction
00053 {
00054 public:
00055   static vtkVolumeRayCastCompositeFunction *New();
00056   vtkTypeRevisionMacro(vtkVolumeRayCastCompositeFunction,vtkVolumeRayCastFunction);
00057   void PrintSelf( ostream& os, vtkIndent indent );
00058 
00060 
00061   vtkSetClampMacro( CompositeMethod, int,
00062         VTK_COMPOSITE_CLASSIFY_FIRST, VTK_COMPOSITE_INTERPOLATE_FIRST );
00063   vtkGetMacro(CompositeMethod,int);
00064   void SetCompositeMethodToInterpolateFirst()
00065     {this->SetCompositeMethod(VTK_COMPOSITE_INTERPOLATE_FIRST);}
00066   void SetCompositeMethodToClassifyFirst() 
00067     {this->SetCompositeMethod(VTK_COMPOSITE_CLASSIFY_FIRST);}
00068   const char *GetCompositeMethodAsString(void);
00070 
00071 //BTX
00072   void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
00073                 vtkVolumeRayCastStaticInfo *staticInfo);
00074 
00075   float GetZeroOpacityThreshold( vtkVolume *vol );
00076 //ETX
00077 
00078 protected:
00079   vtkVolumeRayCastCompositeFunction();
00080   ~vtkVolumeRayCastCompositeFunction();
00081 
00082 //BTX
00083   void SpecificFunctionInitialize( vtkRenderer *ren,
00084                                    vtkVolume   *vol,
00085                                    vtkVolumeRayCastStaticInfo *staticInfo,
00086                                    vtkVolumeRayCastMapper *mapper );
00087 //ETX
00088   
00089   int           CompositeMethod;
00090 private:
00091   vtkVolumeRayCastCompositeFunction(const vtkVolumeRayCastCompositeFunction&);  // Not implemented.
00092   void operator=(const vtkVolumeRayCastCompositeFunction&);  // Not implemented.
00093 };
00094 
00095 
00096 #endif