Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00028 #ifndef __vtkKWEExtentCalculator_h
00029 #define __vtkKWEExtentCalculator_h
00030
00031 #include "VTKEdgeConfigure.h"
00032 #include "vtkObject.h"
00033 #include "vtkStructuredData.h"
00034
00035 class vtkRenderWindow;
00036 class VTKEdge_HYBRID_EXPORT vtkKWEExtentCalculator : public vtkObject
00037 {
00038 public:
00039 static vtkKWEExtentCalculator* New();
00040 vtkTypeRevisionMacro(vtkKWEExtentCalculator, vtkObject);
00041 void PrintSelf(ostream& os, vtkIndent indent);
00042
00044
00045 vtkSetVector6Macro(WholeExtent, int);
00046 vtkGetVector6Macro(WholeExtent, int);
00048
00050
00051 vtkSetMacro(ChunkDescription, int);
00052 vtkGetMacro(ChunkDescription, int);
00054
00055
00056 enum ChunkDescriptions
00057 {
00058 XY_PLANE = VTK_XY_PLANE,
00059 YZ_PLANE = VTK_YZ_PLANE,
00060 XZ_PLANE = VTK_XZ_PLANE,
00061 XYZ_GRID = VTK_XYZ_GRID,
00062 DEFAULT = XYZ_GRID
00063 };
00064
00065
00067
00068 vtkSetVector3Macro(GhostLevels, int);
00069 vtkGetVector3Macro(GhostLevels, int);
00071
00073
00075 vtkSetMacro(Max3DTextureSize, int);
00076 vtkGetMacro(Max3DTextureSize, int);
00078
00080
00082 vtkSetMacro(MaxTextureSize, int);
00083 vtkGetMacro(MaxTextureSize, int);
00085
00087
00091 vtkSetMacro(MaxTextureMemorySizeInBytes,int);
00092 vtkGetMacro(MaxTextureMemorySizeInBytes,int);
00094
00096
00097 vtkSetMacro(InTupleSize,int);
00098 vtkGetMacro(InTupleSize,int);
00100
00102
00103 vtkSetMacro(OutTupleSize,int);
00104 vtkGetMacro(OutTupleSize,int);
00106
00108 void Begin();
00109
00111 bool IsDone();
00112
00114 void Next();
00115
00117
00120 vtkGetVector6Macro(InChunkExtent, int);
00122
00124
00126 vtkGetVector6Macro(OutChunkExtent, int);
00128
00130
00131 void LoadLimits(vtkRenderWindow* context);
00132
00133 protected:
00134 vtkKWEExtentCalculator();
00135 ~vtkKWEExtentCalculator();
00137
00138 int WholeExtent[6];
00139 int ChunkDescription;
00140 int GhostLevels[3];
00141 int InChunkExtent[6];
00142 int OutChunkExtent[6];
00143
00144 int Max3DTextureSize;
00145 int MaxTextureSize;
00146 int MaxTextureMemorySizeInBytes;
00147 int InTupleSize;
00148 int OutTupleSize;
00149
00150
00151
00152 int Cursor[3];
00153 int Max[3];
00154 int Order[3];
00155
00156
00157 int Step[3];
00158
00159 void ComputeChunkExtents();
00160 private:
00161 vtkKWEExtentCalculator(const vtkKWEExtentCalculator&);
00162 void operator=(const vtkKWEExtentCalculator&);
00163
00164 };
00165
00166 #endif
00167
00168