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 
40 
41 #define VTK_MAXIMIZE_SCALAR_VALUE 0
42 #define VTK_MAXIMIZE_OPACITY 1
43 
45 {
46 public:
49  void PrintSelf( ostream& os, vtkIndent indent );
50 
51 
53  float GetZeroOpacityThreshold( vtkVolume *vol );
54 
55 
57 
58  vtkSetClampMacro( MaximizeMethod, int,
60  vtkGetMacro(MaximizeMethod,int);
62  {this->SetMaximizeMethod(VTK_MAXIMIZE_SCALAR_VALUE);}
64  {this->SetMaximizeMethod(VTK_MAXIMIZE_OPACITY);}
65  const char *GetMaximizeMethodAsString(void);
67 
68 //BTX
69  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
70  vtkVolumeRayCastStaticInfo *staticInfo );
71 //ETX
72 
73 
74 protected:
77 
79 
80 //BTX
82  vtkVolume *vol,
83  vtkVolumeRayCastStaticInfo *staticInfo,
84  vtkVolumeRayCastMapper *mapper );
85 
86 //ETX
87 private:
88  vtkVolumeRayCastMIPFunction(const vtkVolumeRayCastMIPFunction&); // Not implemented.
89  void operator=(const vtkVolumeRayCastMIPFunction&); // Not implemented.
90 };
91 
92 
93 
94 #endif
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:48
#define VTK_VOLUMERENDERING_EXPORT
#define VTK_MAXIMIZE_OPACITY
abstract specification for renderers
Definition: vtkRenderer.h:69
virtual float GetZeroOpacityThreshold(vtkVolume *vol)=0
a simple class to control print indentation
Definition: vtkIndent.h:37
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.