VTK
vtkVolumeRayCastCompositeFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeRayCastCompositeFunction.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 vtkVolumeRayCastCompositeFunction_h
37 #define vtkVolumeRayCastCompositeFunction_h
38 
39 #include "vtkRenderingVolumeModule.h" // For export macro
41 
42 #if !defined(VTK_LEGACY_REMOVE)
43 #define VTK_COMPOSITE_CLASSIFY_FIRST 0
44 #define VTK_COMPOSITE_INTERPOLATE_FIRST 1
45 
46 class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastCompositeFunction : public vtkVolumeRayCastFunction
47 {
48 public:
51  void PrintSelf( ostream& os, vtkIndent indent );
52 
54 
57  vtkSetClampMacro( CompositeMethod, int,
59  vtkGetMacro(CompositeMethod,int);
61  {this->SetCompositeMethod(VTK_COMPOSITE_INTERPOLATE_FIRST);}
63  {this->SetCompositeMethod(VTK_COMPOSITE_CLASSIFY_FIRST);}
64  const char *GetCompositeMethodAsString(void);
66 
67  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
68  vtkVolumeRayCastStaticInfo *staticInfo);
69 
70  float GetZeroOpacityThreshold( vtkVolume *vol );
71 
72 protected:
75 
77  vtkVolume *vol,
78  vtkVolumeRayCastStaticInfo *staticInfo,
79  vtkVolumeRayCastMapper *mapper );
80 
82 private:
84  void operator=(const vtkVolumeRayCastCompositeFunction&) VTK_DELETE_FUNCTION;
85 };
86 
87 
88 #endif // VTK_LEGACY_REMOVE
89 #endif
#define VTK_COMPOSITE_INTERPOLATE_FIRST
void SetCompositeMethodToInterpolateFirst()
Set the CompositeMethod to either Classify First or Interpolate First.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
abstract specification for renderers
Definition: vtkRenderer.h:63
#define VTK_COMPOSITE_CLASSIFY_FIRST
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.
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.
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...
void SetCompositeMethodToClassifyFirst()
Set the CompositeMethod to either Classify First or Interpolate First.