Rendering/vtkRecursiveSphereDirectionEncoder.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00043 #ifndef __vtkRecursiveSphereDirectionEncoder_h
00044 #define __vtkRecursiveSphereDirectionEncoder_h
00045
00046 #include "vtkDirectionEncoder.h"
00047
00048 class VTK_RENDERING_EXPORT vtkRecursiveSphereDirectionEncoder : public vtkDirectionEncoder
00049 {
00050 public:
00051 vtkTypeRevisionMacro(vtkRecursiveSphereDirectionEncoder,vtkDirectionEncoder);
00052 void PrintSelf( ostream& os, vtkIndent indent );
00053
00056 static vtkRecursiveSphereDirectionEncoder *New();
00057
00058
00060 int GetEncodedDirection( float n[3] );
00061
00063 float *GetDecodedGradient( int value );
00064
00066 int GetNumberOfEncodedDirections( void );
00067
00072 float *GetDecodedGradientTable( void );
00073
00075
00087 vtkSetClampMacro( RecursionDepth, int, 0, 6 );
00088 vtkGetMacro( RecursionDepth, int );
00090
00091 protected:
00092 vtkRecursiveSphereDirectionEncoder();
00093 ~vtkRecursiveSphereDirectionEncoder();
00094
00095
00096 int RecursionDepth;
00097
00098
00099
00100
00101 int *IndexTable;
00102
00103
00104
00105
00106
00107 float *DecodedNormal;
00108
00109
00110
00111
00112 void InitializeIndexTable( void );
00113 int IndexTableRecursionDepth;
00114
00115 int OuterSize;
00116 int InnerSize;
00117 int GridSize;
00118 private:
00119 vtkRecursiveSphereDirectionEncoder(const vtkRecursiveSphereDirectionEncoder&);
00120 void operator=(const vtkRecursiveSphereDirectionEncoder&);
00121 };
00122
00123
00124 #endif
00125