00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00032
#ifndef __vtkRecursiveSphereDirectionEncoder_h
00033
#define __vtkRecursiveSphereDirectionEncoder_h
00034
00035
#include "vtkDirectionEncoder.h"
00036
00037 class VTK_RENDERING_EXPORT vtkRecursiveSphereDirectionEncoder :
public vtkDirectionEncoder
00038 {
00039
public:
00040 vtkTypeRevisionMacro(vtkRecursiveSphereDirectionEncoder,
vtkDirectionEncoder);
00041
void PrintSelf( ostream& os,
vtkIndent indent );
00042
00045
static vtkRecursiveSphereDirectionEncoder *
New();
00046
00047
00049
int GetEncodedDirection(
float n[3] );
00050
00052
float *
GetDecodedGradient(
int value );
00053
00055
int GetNumberOfEncodedDirections(
void );
00056
00061
float *
GetDecodedGradientTable(
void );
00062
00064
00076 vtkSetClampMacro( RecursionDepth,
int, 0, 6 );
00077 vtkGetMacro( RecursionDepth,
int );
00079
00080
protected:
00081 vtkRecursiveSphereDirectionEncoder();
00082 ~vtkRecursiveSphereDirectionEncoder();
00083
00084
00085 int RecursionDepth;
00086
00087
00088
00089
00090 int *IndexTable;
00091
00092
00093
00094
00095
00096 float *DecodedNormal;
00097
00098
00099
00100
00101
void InitializeIndexTable(
void );
00102 int IndexTableRecursionDepth;
00103
00104 int OuterSize;
00105 int InnerSize;
00106 int GridSize;
00107
private:
00108 vtkRecursiveSphereDirectionEncoder(
const vtkRecursiveSphereDirectionEncoder&);
00109
void operator=(
const vtkRecursiveSphereDirectionEncoder&);
00110 };
00111
00112
00113
#endif
00114