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

vtkVolumeRayCastMIPFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVolumeRayCastMIPFunction.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 =========================================================================*/
00047 #ifndef __vtkVolumeRayCastMIPFunction_h
00048 #define __vtkVolumeRayCastMIPFunction_h
00049 
00050 #include "vtkVolumeRayCastFunction.h"
00051 
00052 #define VTK_MAXIMIZE_SCALAR_VALUE 0
00053 #define VTK_MAXIMIZE_OPACITY      1
00054 
00055 class VTK_RENDERING_EXPORT vtkVolumeRayCastMIPFunction : public vtkVolumeRayCastFunction
00056 {
00057 public:
00058   static vtkVolumeRayCastMIPFunction *New();
00059   vtkTypeRevisionMacro(vtkVolumeRayCastMIPFunction,vtkVolumeRayCastFunction);
00060   void PrintSelf( ostream& os, vtkIndent indent );
00061 
00062 
00064   float GetZeroOpacityThreshold( vtkVolume *vol );
00065 
00066 
00068 
00069   vtkSetClampMacro( MaximizeMethod, int,
00070         VTK_MAXIMIZE_SCALAR_VALUE, VTK_MAXIMIZE_OPACITY );
00071   vtkGetMacro(MaximizeMethod,int);
00072   void SetMaximizeMethodToScalarValue() 
00073     {this->SetMaximizeMethod(VTK_MAXIMIZE_SCALAR_VALUE);}
00074   void SetMaximizeMethodToOpacity() 
00075     {this->SetMaximizeMethod(VTK_MAXIMIZE_OPACITY);}
00076   const char *GetMaximizeMethodAsString(void);
00078 
00079 //BTX
00080   void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
00081                 vtkVolumeRayCastStaticInfo *staticInfo );
00082 //ETX
00083 
00084 
00085 protected:
00086   vtkVolumeRayCastMIPFunction();
00087   ~vtkVolumeRayCastMIPFunction();
00088 
00089   int MaximizeMethod;
00090 
00091 //BTX
00092   void SpecificFunctionInitialize( vtkRenderer *ren,
00093                                    vtkVolume   *vol,
00094                                    vtkVolumeRayCastStaticInfo *staticInfo,
00095                                    vtkVolumeRayCastMapper *mapper );
00096 
00097 //ETX
00098 private:
00099   vtkVolumeRayCastMIPFunction(const vtkVolumeRayCastMIPFunction&);  // Not implemented.
00100   void operator=(const vtkVolumeRayCastMIPFunction&);  // Not implemented.
00101 };
00102 
00103 
00104 
00105 #endif