VTK
vtkVolumeRayCastMIPFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeRayCastMIPFunction.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
38 #ifndef vtkVolumeRayCastMIPFunction_h
39 #define vtkVolumeRayCastMIPFunction_h
40 
41 #include "vtkRenderingVolumeModule.h" // For export macro
43 
44 #if !defined(VTK_LEGACY_REMOVE)
45 
46 #define VTK_MAXIMIZE_SCALAR_VALUE 0
47 #define VTK_MAXIMIZE_OPACITY 1
48 
49 class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastMIPFunction : public vtkVolumeRayCastFunction
50 {
51 public:
54  void PrintSelf( ostream& os, vtkIndent indent );
55 
56 
60  float GetZeroOpacityThreshold( vtkVolume *vol );
61 
62 
64 
67  vtkSetClampMacro( MaximizeMethod, int,
69  vtkGetMacro(MaximizeMethod,int);
71  {this->SetMaximizeMethod(VTK_MAXIMIZE_SCALAR_VALUE);}
73  {this->SetMaximizeMethod(VTK_MAXIMIZE_OPACITY);}
74  const char *GetMaximizeMethodAsString(void);
76 
77  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
78  vtkVolumeRayCastStaticInfo *staticInfo );
79 
80 protected:
83 
85 
87  vtkVolume *vol,
88  vtkVolumeRayCastStaticInfo *staticInfo,
89  vtkVolumeRayCastMapper *mapper );
90 
91 private:
92  vtkVolumeRayCastMIPFunction(const vtkVolumeRayCastMIPFunction&) VTK_DELETE_FUNCTION;
93  void operator=(const vtkVolumeRayCastMIPFunction&) VTK_DELETE_FUNCTION;
94 };
95 
96 
97 #endif // VTK_LEGACY_REMOVE
98 #endif
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
#define VTK_MAXIMIZE_OPACITY
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual float GetZeroOpacityThreshold(vtkVolume *vol)=0
Get the value below which all scalar values are considered to have 0 opacity.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetMaximizeMethodToScalarValue()
Set the MaximizeMethod to either ScalarValue or Opacity.
a simple class to control print indentation
Definition: vtkIndent.h:39
a superclass for ray casting functions
A slow but accurate mapper for rendering volumes.
void SetMaximizeMethodToOpacity()
Set the MaximizeMethod to either ScalarValue or Opacity.
#define VTK_MAXIMIZE_SCALAR_VALUE
virtual void CastRay(vtkVolumeRayCastDynamicInfo *dynamicInfo, vtkVolumeRayCastStaticInfo *staticInfo)=0
virtual void SpecificFunctionInitialize(vtkRenderer *ren, vtkVolume *vol, vtkVolumeRayCastStaticInfo *staticInfo, vtkVolumeRayCastMapper *mapper)=0
This method gives the subclass a chance to do any special initialization that it may need to do...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A maximum intensity projection ray caster for volumes.