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 
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 
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
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract specification for renderers
Definition: vtkRenderer.h:64
a superclass for ray casting functions
A maximum intensity projection ray caster for volumes.
void SpecificFunctionInitialize(vtkRenderer *ren, vtkVolume *vol, vtkVolumeRayCastStaticInfo *staticInfo, vtkVolumeRayCastMapper *mapper)
This method gives the subclass a chance to do any special initialization that it may need to do.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void CastRay(vtkVolumeRayCastDynamicInfo *dynamicInfo, vtkVolumeRayCastStaticInfo *staticInfo)
static vtkVolumeRayCastMIPFunction * New()
float GetZeroOpacityThreshold(vtkVolume *vol)
Get the scalar value below which all scalar values have zero opacity.
const char * GetMaximizeMethodAsString(void)
A slow but accurate mapper for rendering volumes.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:51
#define VTK_MAXIMIZE_SCALAR_VALUE
#define VTK_MAXIMIZE_OPACITY