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 =========================================================================*/
30 #ifndef vtkVolumeRayCastCompositeFunction_h
31 #define vtkVolumeRayCastCompositeFunction_h
32 
33 #include "vtkRenderingVolumeModule.h" // For export macro
35 
36 #if !defined(VTK_LEGACY_REMOVE)
37 #define VTK_COMPOSITE_CLASSIFY_FIRST 0
38 #define VTK_COMPOSITE_INTERPOLATE_FIRST 1
39 
40 class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastCompositeFunction : public vtkVolumeRayCastFunction
41 {
42 public:
45  void PrintSelf( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
46 
48 
51  vtkSetClampMacro( CompositeMethod, int,
53  vtkGetMacro(CompositeMethod,int);
55  {this->SetCompositeMethod(VTK_COMPOSITE_INTERPOLATE_FIRST);}
57  {this->SetCompositeMethod(VTK_COMPOSITE_CLASSIFY_FIRST);}
58  const char *GetCompositeMethodAsString(void);
60 
61  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
62  vtkVolumeRayCastStaticInfo *staticInfo) VTK_OVERRIDE;
63 
64  float GetZeroOpacityThreshold( vtkVolume *vol ) VTK_OVERRIDE;
65 
66 protected:
68  ~vtkVolumeRayCastCompositeFunction() VTK_OVERRIDE;
69 
70  void SpecificFunctionInitialize( vtkRenderer *ren,
71  vtkVolume *vol,
72  vtkVolumeRayCastStaticInfo *staticInfo,
73  vtkVolumeRayCastMapper *mapper ) VTK_OVERRIDE;
74 
75  int CompositeMethod;
76 private:
78  void operator=(const vtkVolumeRayCastCompositeFunction&) VTK_DELETE_FUNCTION;
79 };
80 
81 
82 #endif // VTK_LEGACY_REMOVE
83 #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:44
abstract specification for renderers
Definition: vtkRenderer.h:57
#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:33
a superclass for ray casting functions
A slow but accurate mapper for rendering volumes.
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...
void SetCompositeMethodToClassifyFirst()
Set the CompositeMethod to either Classify First or Interpolate First.