VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
VolumeRendering
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 "
vtkVolumeRayCastFunction.h
"
38
39
#define VTK_COMPOSITE_CLASSIFY_FIRST 0
40
#define VTK_COMPOSITE_INTERPOLATE_FIRST 1
41
42
class
VTK_VOLUMERENDERING_EXPORT
vtkVolumeRayCastCompositeFunction
:
public
vtkVolumeRayCastFunction
43
{
44
public
:
45
static
vtkVolumeRayCastCompositeFunction
*
New
();
46
vtkTypeMacro(
vtkVolumeRayCastCompositeFunction
,
vtkVolumeRayCastFunction
);
47
void
PrintSelf
( ostream& os,
vtkIndent
indent );
48
50
51
vtkSetClampMacro( CompositeMethod,
int
,
52
VTK_COMPOSITE_CLASSIFY_FIRST
,
VTK_COMPOSITE_INTERPOLATE_FIRST
);
53
vtkGetMacro(CompositeMethod,
int
);
54
void
SetCompositeMethodToInterpolateFirst()
55
{this->SetCompositeMethod(
VTK_COMPOSITE_INTERPOLATE_FIRST
);}
56
void
SetCompositeMethodToClassifyFirst()
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
:
69
vtkVolumeRayCastCompositeFunction
();
70
~
vtkVolumeRayCastCompositeFunction
();
71
72
//BTX
73
void
SpecificFunctionInitialize
(
vtkRenderer
*ren,
74
vtkVolume
*vol,
75
vtkVolumeRayCastStaticInfo
*staticInfo,
76
vtkVolumeRayCastMapper
*mapper );
77
//ETX
78
79
int
CompositeMethod
;
80
private
:
81
vtkVolumeRayCastCompositeFunction
(
const
vtkVolumeRayCastCompositeFunction
&);
// Not implemented.
82
void
operator=(
const
vtkVolumeRayCastCompositeFunction
&);
// Not implemented.
83
};
84
85
86
#endif
Generated on Sun Sep 9 2012 13:03:49 for VTK by
1.8.1.2