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
46class VTKRENDERINGVOLUME_EXPORT vtkVolumeRayCastCompositeFunction : public vtkVolumeRayCastFunction
47{
48public:
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
68 vtkVolumeRayCastStaticInfo *staticInfo);
69
71
72protected:
75
77 vtkVolume *vol,
79 vtkVolumeRayCastMapper *mapper );
80
82private:
84 void operator=(const vtkVolumeRayCastCompositeFunction&) VTK_DELETE_FUNCTION;
85};
86
87
88#endif // VTK_LEGACY_REMOVE
89#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract specification for renderers
Definition: vtkRenderer.h:64
const char * GetCompositeMethodAsString(void)
void SpecificFunctionInitialize(vtkRenderer *ren, vtkVolume *vol, vtkVolumeRayCastStaticInfo *staticInfo, vtkVolumeRayCastMapper *mapper)
This method gives the subclass a chance to do any special initialization that it may need to do.
void CastRay(vtkVolumeRayCastDynamicInfo *dynamicInfo, vtkVolumeRayCastStaticInfo *staticInfo)
float GetZeroOpacityThreshold(vtkVolume *vol)
Get the value below which all scalar values are considered to have 0 opacity.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkVolumeRayCastCompositeFunction * New()
a superclass for ray casting functions
A slow but accurate mapper for rendering volumes.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:51
#define VTK_COMPOSITE_CLASSIFY_FIRST
#define VTK_COMPOSITE_INTERPOLATE_FIRST