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 =========================================================================*/
36 #ifndef vtkVolumeRayCastMIPFunction_h
37 #define vtkVolumeRayCastMIPFunction_h
38 
39 #include "vtkRenderingVolumeModule.h" // For export macro
41 
42 #define VTK_MAXIMIZE_SCALAR_VALUE 0
43 #define VTK_MAXIMIZE_OPACITY 1
44 
46 {
47 public:
50  void PrintSelf( ostream& os, vtkIndent indent );
51 
52 
54  float GetZeroOpacityThreshold( vtkVolume *vol );
55 
56 
58 
59  vtkSetClampMacro( MaximizeMethod, int,
61  vtkGetMacro(MaximizeMethod,int);
63  {this->SetMaximizeMethod(VTK_MAXIMIZE_SCALAR_VALUE);}
65  {this->SetMaximizeMethod(VTK_MAXIMIZE_OPACITY);}
66  const char *GetMaximizeMethodAsString(void);
68 
69 //BTX
70  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
71  vtkVolumeRayCastStaticInfo *staticInfo );
72 //ETX
73 
74 
75 protected:
78 
80 
81 //BTX
83  vtkVolume *vol,
84  vtkVolumeRayCastStaticInfo *staticInfo,
85  vtkVolumeRayCastMapper *mapper );
86 
87 //ETX
88 private:
89  vtkVolumeRayCastMIPFunction(const vtkVolumeRayCastMIPFunction&); // Not implemented.
90  void operator=(const vtkVolumeRayCastMIPFunction&); // Not implemented.
91 };
92 
93 
94 
95 #endif
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
#define VTKRENDERINGVOLUME_EXPORT
#define VTK_MAXIMIZE_OPACITY
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual float GetZeroOpacityThreshold(vtkVolume *vol)=0
a simple class to control print indentation
Definition: vtkIndent.h:38
a superclass for ray casting functions
A slow but accurate mapper for rendering volumes.
#define VTK_MAXIMIZE_SCALAR_VALUE
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void CastRay(vtkVolumeRayCastDynamicInfo *dynamicInfo, vtkVolumeRayCastStaticInfo *staticInfo)=0
virtual void SpecificFunctionInitialize(vtkRenderer *ren, vtkVolume *vol, vtkVolumeRayCastStaticInfo *staticInfo, vtkVolumeRayCastMapper *mapper)=0
static vtkObject * New()
A maximum intensity projection ray caster for volumes.