VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Volume
vtkUnstructuredGridHomogeneousRayIntegrator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkUnstructuredGridHomogeneousRayIntegrator.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
=========================================================================*/
15
16
/*
17
* Copyright 2004 Sandia Corporation.
18
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19
* license for use of this work by or on behalf of the
20
* U.S. Government. Redistribution and use in source and binary forms, with
21
* or without modification, are permitted provided that this Notice and any
22
* statement of authorship are reproduced on all copies.
23
*/
24
39
#ifndef __vtkUnstructuredGridHomogeneousRayIntegrator_h
40
#define __vtkUnstructuredGridHomogeneousRayIntegrator_h
41
42
#include "vtkRenderingVolumeModule.h"
// For export macro
43
#include "
vtkUnstructuredGridVolumeRayIntegrator.h
"
44
45
class
vtkVolumeProperty
;
46
47
class
VTKRENDERINGVOLUME_EXPORT
vtkUnstructuredGridHomogeneousRayIntegrator
:
public
vtkUnstructuredGridVolumeRayIntegrator
48
{
49
public
:
50
vtkTypeMacro(
vtkUnstructuredGridHomogeneousRayIntegrator
,
51
vtkUnstructuredGridVolumeRayIntegrator
);
52
static
vtkUnstructuredGridHomogeneousRayIntegrator
*
New
();
53
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
54
55
virtual
void
Initialize
(
vtkVolume
*volume,
vtkDataArray
*scalars);
56
57
virtual
void
Integrate
(
vtkDoubleArray
*intersectionLengths,
58
vtkDataArray
*nearIntersections,
59
vtkDataArray
*farIntersections,
60
float
color
[4]);
61
63
66
vtkSetMacro(TransferFunctionTableSize,
int
);
67
vtkGetMacro(TransferFunctionTableSize,
int
);
69
70
protected
:
71
vtkUnstructuredGridHomogeneousRayIntegrator
();
72
~
vtkUnstructuredGridHomogeneousRayIntegrator
();
73
74
vtkVolume
*
Volume
;
75
vtkVolumeProperty
*
Property
;
76
77
int
NumComponents
;
78
float
**
ColorTable
;
79
float
**
AttenuationTable
;
80
double
*
TableShift
;
81
double
*
TableScale
;
82
vtkTimeStamp
TablesBuilt
;
83
84
int
UseAverageColor
;
85
int
TransferFunctionTableSize
;
86
87
virtual
void
GetTransferFunctionTables(
vtkDataArray
*scalars);
88
89
private
:
90
vtkUnstructuredGridHomogeneousRayIntegrator
(
const
vtkUnstructuredGridHomogeneousRayIntegrator
&);
// Not implemented.
91
void
operator=(
const
vtkUnstructuredGridHomogeneousRayIntegrator
&);
// Not implemented
92
};
93
94
#endif //__vtkUnstructuredGridHomogeneousRayIntegrator_h
Generated on Thu May 24 2012 22:22:37 for VTK by
1.8.1