VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Volume
vtkSphericalDirectionEncoder.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSphericalDirectionEncoder.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
=========================================================================*/
25
#ifndef __vtkSphericalDirectionEncoder_h
26
#define __vtkSphericalDirectionEncoder_h
27
28
#include "vtkRenderingVolumeModule.h"
// For export macro
29
#include "
vtkDirectionEncoder.h
"
30
31
class
VTKRENDERINGVOLUME_EXPORT
vtkSphericalDirectionEncoder
:
public
vtkDirectionEncoder
32
{
33
public
:
34
vtkTypeMacro(
vtkSphericalDirectionEncoder
,
vtkDirectionEncoder
);
35
void
PrintSelf
( ostream& os,
vtkIndent
indent );
36
39
static
vtkSphericalDirectionEncoder
*
New
();
40
41
43
int
GetEncodedDirection
(
float
n[3] );
44
46
float
*
GetDecodedGradient
(
int
value
);
47
49
int
GetNumberOfEncodedDirections
(
void
) {
return
65536; }
50
52
56
float
*
GetDecodedGradientTable
(
void
)
57
{
58
return
&(this->DecodedGradientTable[0]);
59
}
61
62
63
protected
:
64
vtkSphericalDirectionEncoder
();
65
~
vtkSphericalDirectionEncoder
();
66
67
static
float
DecodedGradientTable[65536*3];
68
70
71
static
void
InitializeDecodedGradientTable();
72
static
int
DecodedGradientTableInitialized
;
74
75
private
:
76
vtkSphericalDirectionEncoder
(
const
vtkSphericalDirectionEncoder
&);
// Not implemented.
77
void
operator=(
const
vtkSphericalDirectionEncoder
&);
// Not implemented.
78
};
79
80
81
#endif
82
83
Generated on Thu May 24 2012 22:22:37 for VTK by
1.8.1