17 #ifndef vtkSpyPlotBlock_h 18 #define vtkSpyPlotBlock_h 41 void GetDimensions(
int dims[3])
const;
42 int GetDimension(
int i)
const;
43 void GetBounds(
double bounds[6])
const;
44 void GetSpacing(
double spacing[3])
const;
48 void GetExtents(
int extents[6])
const;
49 int IsAllocated()
const;
54 void GetRealBounds(
double realBounds[6])
const;
56 double origin[3],
int extents[6],
int realExtents[6],
int realDimensions[3])
const;
62 static int Scan(
vtkSpyPlotIStream* stream,
unsigned char* isAllocated,
int fileVersion);
64 static int Scan16(
vtkSpyPlotIStream* stream,
unsigned char* isAllocated,
int fileVersion);
67 int SetGeometry(
int dir,
const unsigned char* encodedInfo,
int infoSize);
68 int GetTotalSize()
const;
69 int FixInformation(
const vtkBoundingBox& globalBounds,
int extents[6],
int realExtents[6],
72 void SetDebug(
unsigned char i);
73 unsigned char GetDebug()
const;
77 void ComputeDerivedVariables(
vtkCellData*
data,
const int& numberOfMaterials,
79 const int& downConvertVolumeFraction)
const;
84 double GetCellVolume(
int i,
int j,
int k)
const;
87 vtkDoubleArray* materialdensity,
double* material_mass,
double* material_volume)
const;
90 double* material_mass,
double* material_volume)
const;
109 int SavedRealExtents[6];
110 int SavedRealDims[3];
113 enum CoordinateSystem
121 CoordinateSystem CoordSystem;
131 dims[0] = this->Dimensions[0];
132 dims[1] = this->Dimensions[1];
133 dims[2] = this->Dimensions[2];
138 return this->Status.Active;
143 return this->Status.Allocated;
148 return this->Status.AMR;
153 return this->Status.Fixed;
158 this->Status.Fixed = 1;
163 return this->Dimensions[i];
168 fa[0] = this->XYZArrays[0];
169 fa[1] = this->XYZArrays[1];
170 fa[2] = this->XYZArrays[2];
175 return this->XYZArrays[i];
180 extents[0] = extents[2] = extents[4] = 0;
181 extents[1] = (this->Dimensions[0] == 1) ? 0 : this->Dimensions[0];
182 extents[3] = (this->Dimensions[1] == 1) ? 0 : this->Dimensions[1];
183 extents[5] = (this->Dimensions[2] == 1) ? 0 : this->Dimensions[2];
188 return (this->Dimensions[0] * this->Dimensions[1] * this->Dimensions[2]);
int GetDimension(int i) const
void GetExtents(int extents[6]) const
void GetVectors(vtkDataArray *coordinates[3]) const
void GetDimensions(int dims[3]) const
vtkSpyPlotIStream represents input functionality required by the vtkSpyPlotReader and vtkSpyPlotUniRe...
#define VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
Represents a SpyPlot Block Grid.