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 =========================================================================*/
35 #ifndef vtkVolumeRayCastMIPFunction_h
36 #define vtkVolumeRayCastMIPFunction_h
37 
38 #include "vtkRenderingVolumeModule.h" // For export macro
40 
41 #if !defined(VTK_LEGACY_REMOVE)
42 
43 #define VTK_MAXIMIZE_SCALAR_VALUE 0
44 #define VTK_MAXIMIZE_OPACITY 1
45 
46 class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastMIPFunction : public vtkVolumeRayCastFunction
47 {
48 public:
51  void PrintSelf( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
52 
53 
57  float GetZeroOpacityThreshold( vtkVolume *vol ) VTK_OVERRIDE;
58 
59 
61 
64  vtkSetClampMacro( MaximizeMethod, int,
66  vtkGetMacro(MaximizeMethod,int);
68  {this->SetMaximizeMethod(VTK_MAXIMIZE_SCALAR_VALUE);}
70  {this->SetMaximizeMethod(VTK_MAXIMIZE_OPACITY);}
71  const char *GetMaximizeMethodAsString(void);
73 
74  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
75  vtkVolumeRayCastStaticInfo *staticInfo ) VTK_OVERRIDE;
76 
77 protected:
79  ~vtkVolumeRayCastMIPFunction() VTK_OVERRIDE;
80 
81  int MaximizeMethod;
82 
83  void SpecificFunctionInitialize( vtkRenderer *ren,
84  vtkVolume *vol,
85  vtkVolumeRayCastStaticInfo *staticInfo,
86  vtkVolumeRayCastMapper *mapper ) VTK_OVERRIDE;
87 
88 private:
89  vtkVolumeRayCastMIPFunction(const vtkVolumeRayCastMIPFunction&) VTK_DELETE_FUNCTION;
90  void operator=(const vtkVolumeRayCastMIPFunction&) VTK_DELETE_FUNCTION;
91 };
92 
93 
94 #endif // VTK_LEGACY_REMOVE
95 #endif
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:44
#define VTK_MAXIMIZE_OPACITY
abstract specification for renderers
Definition: vtkRenderer.h:57
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:33
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
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.