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 =========================================================================*/
34 #ifndef vtkVolumeRayCastCompositeFunction_h
35 #define vtkVolumeRayCastCompositeFunction_h
36 
37 #include "vtkRenderingVolumeModule.h" // For export macro
39 
40 #define VTK_COMPOSITE_CLASSIFY_FIRST 0
41 #define VTK_COMPOSITE_INTERPOLATE_FIRST 1
42 
44 {
45 public:
48  void PrintSelf( ostream& os, vtkIndent indent );
49 
51 
52  vtkSetClampMacro( CompositeMethod, int,
54  vtkGetMacro(CompositeMethod,int);
56  {this->SetCompositeMethod(VTK_COMPOSITE_INTERPOLATE_FIRST);}
58  {this->SetCompositeMethod(VTK_COMPOSITE_CLASSIFY_FIRST);}
59  const char *GetCompositeMethodAsString(void);
61 
62 //BTX
63  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
64  vtkVolumeRayCastStaticInfo *staticInfo);
65 
66  float GetZeroOpacityThreshold( vtkVolume *vol );
67 //ETX
68 
69 protected:
72 
73 //BTX
75  vtkVolume *vol,
76  vtkVolumeRayCastStaticInfo *staticInfo,
77  vtkVolumeRayCastMapper *mapper );
78 //ETX
79 
81 private:
83  void operator=(const vtkVolumeRayCastCompositeFunction&); // Not implemented.
84 };
85 
86 
87 #endif
#define VTK_COMPOSITE_INTERPOLATE_FIRST
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
#define VTKRENDERINGVOLUME_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:62
#define VTK_COMPOSITE_CLASSIFY_FIRST
virtual float GetZeroOpacityThreshold(vtkVolume *vol)=0
a simple class to control print indentation
Definition: vtkIndent.h:38
a superclass for ray casting functions
A slow but accurate mapper for rendering volumes.
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()