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
64  vtkVolumeRayCastStaticInfo *staticInfo);
65 
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
vtkVolumeRayCastFunction.h
vtkVolumeRayCastCompositeFunction::SetCompositeMethodToClassifyFirst
void SetCompositeMethodToClassifyFirst()
Definition: vtkVolumeRayCastCompositeFunction.h:57
vtkVolumeRayCastCompositeFunction::SpecificFunctionInitialize
void SpecificFunctionInitialize(vtkRenderer *ren, vtkVolume *vol, vtkVolumeRayCastStaticInfo *staticInfo, vtkVolumeRayCastMapper *mapper)
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
vtkVolumeRayCastFunction
a superclass for ray casting functions
Definition: vtkVolumeRayCastFunction.h:134
vtkRenderingVolumeModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkVolumeRayCastCompositeFunction::SetCompositeMethodToInterpolateFirst
void SetCompositeMethodToInterpolateFirst()
Definition: vtkVolumeRayCastCompositeFunction.h:55
vtkVolumeRayCastCompositeFunction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkVolumeRayCastCompositeFunction::~vtkVolumeRayCastCompositeFunction
~vtkVolumeRayCastCompositeFunction()
vtkVolumeRayCastMapper
A slow but accurate mapper for rendering volumes.
Definition: vtkVolumeRayCastMapper.h:68
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkVolumeRayCastCompositeFunction::CompositeMethod
int CompositeMethod
Definition: vtkVolumeRayCastCompositeFunction.h:80
vtkVolumeRayCastCompositeFunction::New
static vtkVolumeRayCastCompositeFunction * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVolumeRayCastCompositeFunction::vtkVolumeRayCastCompositeFunction
vtkVolumeRayCastCompositeFunction()
vtkVolumeRayCastCompositeFunction::GetCompositeMethodAsString
const char * GetCompositeMethodAsString(void)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkVolumeRayCastDynamicInfo
Definition: vtkVolumeRayCastFunction.h:44
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
VTKRENDERINGVOLUME_EXPORT
#define VTKRENDERINGVOLUME_EXPORT
Definition: vtkRenderingVolumeModule.h:15
vtkVolumeRayCastCompositeFunction::CastRay
void CastRay(vtkVolumeRayCastDynamicInfo *dynamicInfo, vtkVolumeRayCastStaticInfo *staticInfo)
VTK_COMPOSITE_CLASSIFY_FIRST
#define VTK_COMPOSITE_CLASSIFY_FIRST
Definition: vtkVolumeRayCastCompositeFunction.h:40
vtkVolumeRayCastStaticInfo
Definition: vtkVolumeRayCastFunction.h:68
vtkVolumeRayCastCompositeFunction::GetZeroOpacityThreshold
float GetZeroOpacityThreshold(vtkVolume *vol)
VTK_COMPOSITE_INTERPOLATE_FIRST
#define VTK_COMPOSITE_INTERPOLATE_FIRST
Definition: vtkVolumeRayCastCompositeFunction.h:41
vtkVolumeRayCastCompositeFunction
a ray function for compositing
Definition: vtkVolumeRayCastCompositeFunction.h:44