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 
38 
39 #define VTK_COMPOSITE_CLASSIFY_FIRST 0
40 #define VTK_COMPOSITE_INTERPOLATE_FIRST 1
41 
43 {
44 public:
47  void PrintSelf( ostream& os, vtkIndent indent );
48 
50 
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 //BTX
62  void CastRay( vtkVolumeRayCastDynamicInfo *dynamicInfo,
63  vtkVolumeRayCastStaticInfo *staticInfo);
64 
65  float GetZeroOpacityThreshold( vtkVolume *vol );
66 //ETX
67 
68 protected:
71 
72 //BTX
74  vtkVolume *vol,
75  vtkVolumeRayCastStaticInfo *staticInfo,
76  vtkVolumeRayCastMapper *mapper );
77 //ETX
78 
80 private:
82  void operator=(const vtkVolumeRayCastCompositeFunction&); // Not implemented.
83 };
84 
85 
86 #endif
#define VTK_COMPOSITE_INTERPOLATE_FIRST
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:48
#define VTK_VOLUMERENDERING_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:69
#define VTK_COMPOSITE_CLASSIFY_FIRST
virtual float GetZeroOpacityThreshold(vtkVolume *vol)=0
a simple class to control print indentation
Definition: vtkIndent.h:37
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()