Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkVolumeRayCastMIPFunction.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkVolumeRayCastMIPFunction.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00051 #ifndef __vtkVolumeRayCastMIPFunction_h
    00052 #define __vtkVolumeRayCastMIPFunction_h
    00053
    00054 #include "vtkVolumeRayCastFunction.h"
    00055
    00056 #define VTK_MAXIMIZE_SCALAR_VALUE 0
    00057 #define VTK_MAXIMIZE_OPACITY      1
    00058
    00059 class VTK_RENDERING_EXPORT vtkVolumeRayCastMIPFunction : public vtkVolumeRayCastFunction
    00060 {
    00061 public:
    00062   static vtkVolumeRayCastMIPFunction *New();
    00063   vtkTypeRevisionMacro(vtkVolumeRayCastMIPFunction,vtkVolumeRayCastFunction);
    00064   void PrintSelf( ostream& os, vtkIndent indent );
    00065
    00066
    00068   float GetZeroOpacityThreshold( vtkVolume *vol );
    00069
    00070
    00072
    00073   vtkSetClampMacro( MaximizeMethod, int,
    00074         VTK_MAXIMIZE_SCALAR_VALUE, VTK_MAXIMIZE_OPACITY );
    00075   vtkGetMacro(MaximizeMethod,int);
    00076   void SetMaximizeMethodToScalarValue()
    00077     {this->SetMaximizeMethod(VTK_MAXIMIZE_SCALAR_VALUE);}
    00078   void SetMaximizeMethodToOpacity()
    00079     {this->SetMaximizeMethod(VTK_MAXIMIZE_OPACITY);}
    00080   const char *GetMaximizeMethodAsString(void);
    00082
    00083 //BTX
    00084   void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
    00085                 vtkVolumeRayCastStaticInfo *staticInfo );
    00086 //ETX
    00087
    00088
    00089 protected:
    00090   vtkVolumeRayCastMIPFunction();
    00091   ~vtkVolumeRayCastMIPFunction();
    00092
    00093   int MaximizeMethod;
    00094
    00095 //BTX
    00096   void SpecificFunctionInitialize( vtkRenderer *ren,
    00097                                    vtkVolume   *vol,
    00098                                    vtkVolumeRayCastStaticInfo *staticInfo,
    00099                                    vtkVolumeRayCastMapper *mapper );
    00100
    00101 //ETX
    00102 private:
    00103   vtkVolumeRayCastMIPFunction(const vtkVolumeRayCastMIPFunction&);  // Not implemented.
    00104   void operator=(const vtkVolumeRayCastMIPFunction&);  // Not implemented.
    00105 };
    00106
    00107
    00108
    00109 #endif