28 #ifndef vtkSpyPlotBlock_h 29 #define vtkSpyPlotBlock_h 52 void GetDimensions(
int dims[3])
const;
53 int GetDimension(
int i)
const;
54 void GetBounds(
double bounds[6])
const;
55 void GetSpacing(
double spacing[3])
const;
59 void GetExtents(
int extents[6])
const;
60 int IsAllocated()
const;
65 void GetRealBounds(
double realBounds[6])
const;
67 double origin[3],
int extents[6],
int realExtents[6],
int realDimensions[3])
const;
73 static int Scan(
vtkSpyPlotIStream* stream,
unsigned char* isAllocated,
int fileVersion);
75 static int Scan16(
vtkSpyPlotIStream* stream,
unsigned char* isAllocated,
int fileVersion);
78 int SetGeometry(
int dir,
const unsigned char* encodedInfo,
int infoSize);
79 int GetTotalSize()
const;
80 int FixInformation(
const vtkBoundingBox& globalBounds,
int extents[6],
int realExtents[6],
83 void SetDebug(
unsigned char i);
84 unsigned char GetDebug()
const;
88 void ComputeDerivedVariables(
vtkCellData*
data,
const int& numberOfMaterials,
90 const int& downConvertVolumeFraction)
const;
95 double GetCellVolume(
int i,
int j,
int k)
const;
98 vtkDoubleArray* materialdensity,
double* material_mass,
double* material_volume)
const;
101 double* material_mass,
double* material_volume)
const;
120 int SavedRealExtents[6];
121 int SavedRealDims[3];
124 enum CoordinateSystem
132 CoordinateSystem CoordSystem;
142 dims[0] = this->Dimensions[0];
143 dims[1] = this->Dimensions[1];
144 dims[2] = this->Dimensions[2];
149 return this->Status.Active;
154 return this->Status.Allocated;
159 return this->Status.AMR;
164 return this->Status.Fixed;
169 this->Status.Fixed = 1;
174 return this->Dimensions[i];
179 fa[0] = this->XYZArrays[0];
180 fa[1] = this->XYZArrays[1];
181 fa[2] = this->XYZArrays[2];
186 return this->XYZArrays[i];
191 extents[0] = extents[2] = extents[4] = 0;
192 extents[1] = (this->Dimensions[0] == 1) ? 0 : this->Dimensions[0];
193 extents[3] = (this->Dimensions[1] == 1) ? 0 : this->Dimensions[1];
194 extents[5] = (this->Dimensions[2] == 1) ? 0 : this->Dimensions[2];
199 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.