Go to the documentation of this file.
50 int ilo,
int jlo,
int klo,
51 int ihi,
int jhi,
int khi);
66 const double* globalOrigin,
int gridDescription=
VTK_XYZ_GRID);
84 this->LoCorner[0]=this->LoCorner[1]=this->LoCorner[2]=0;
85 this->HiCorner[0]=this->HiCorner[1]=this->HiCorner[2]=-2;
96 int ilo,
int jlo,
int klo,
142 {
return this->IsInvalid();}
148 return ((this->HiCorner[0] < this->LoCorner[0]-1) ||
149 (this->HiCorner[1] < this->LoCorner[1]-1) ||
150 (this->HiCorner[2] < this->LoCorner[2]-1));
164 {
return( !(*
this == other) ); }
255 const double h[3],
const double x[3],
int ijk[3],
double pcoords[3]);
277 const int ilo,
const int jlo,
const int klo,
278 const int ihi,
const int jhi,
const int khi );
287 template <
typename T>
301 arrayDims.
Shift(ofs);
305 if (!arrayRegion.
Contains(destRegion))
308 <<
"ERROR: Array must enclose the destination region. "
309 <<
"Aborting the fill.");
319 for (
int k=destLo[2]; k<=destHi[2]; ++k)
322 for (
int j=destLo[1]; j<=destHi[1]; ++j)
324 vtkIdType idx=kOfs+j*arrayHi[0]+destLo[0];
325 for (
int i=destLo[0]; i<=destHi[0]; ++i)
327 pArray[idx]=fillValue;
Encloses a rectangular region of voxel like cells.
bool Intersect(const vtkAMRBox &other)
bool Contains(const int I[3]) const
void SetDimensions(int ilo, int jlo, int klo, int ihi, int jhi, int khi, int desc=VTK_XYZ_GRID)
GLfloat GLfloat GLfloat GLfloat h
ostream & Print(ostream &os) const
bool DoesBoxIntersectAlongDimension(const vtkAMRBox &other, const int q) const
static void GetBounds(const vtkAMRBox &box, const double origin[3], const double spacing[3], double bounds[6])
void Deserialize(unsigned char *buffer, const vtkIdType &bytesize)
void Shift(const int I[3])
bool EmptyDimension(int i) const
vtkAMRBox(int ilo, int jlo, int klo, int ihi, int jhi, int khi)
void Serialize(int *buffer) const
GLint GLint GLint GLint GLint x
const int * GetHiCorner() const
vtkAMRBox(const int lo[3], const int hi[3])
void FillRegion(T *pArray, const vtkAMRBox &arrayRegion, const vtkAMRBox &destRegion, T fillValue)
const int * GetLoCorner() const
void GetNumberOfNodes(int ext[3]) const
vtkIdType GetNumberOfNodes() const
vtkAMRBox(const int dims[6])
vtkAMRBox(const double *origin, const int *dimensions, const double *spacing, const double *globalOrigin, int gridDescription=VTK_XYZ_GRID)
void Shift(int i, int j, int k)
bool Contains(const vtkAMRBox &) const
bool operator==(const vtkAMRBox &other) const
void SetDimensions(const int dims[6], int desc=VTK_XYZ_GRID)
bool Contains(int i, int j, int k) const
vtkIdType GetNumberOfCells() const
void GetDimensions(int lo[3], int hi[3]) const
static vtkIdType GetBytesize()
vtkAMRBox(const vtkAMRBox &other)
static void GetBoxOrigin(const vtkAMRBox &box, const double X0[3], const double spacing[3], double x0[3])
void GetDimensions(int dims[6]) const
void GetValidHiCorner(int hi[3]) const
GLdouble GLdouble GLdouble r
GLint GLint GLint GLint GLint GLint y
#define vtkGenericWarningMacro(x)
bool DoesIntersect(const vtkAMRBox &other) const
int ComputeDimension() const
void Serialize(unsigned char *&buffer, vtkIdType &bytesize)
#define VTKCOMMONDATAMODEL_EXPORT
void GetNumberOfCells(int num[3]) const
vtkAMRBox & operator=(const vtkAMRBox &other)
VTKWRAPPINGJAVA_EXPORT jlong q(JNIEnv *env, jobject obj)
static bool HasPoint(const vtkAMRBox &box, const double origin[3], const double spacing[3], double x, double y, double z)
void SetDimensions(const int lo[3], const int hi[3], int desc=VTK_XYZ_GRID)
bool operator!=(const vtkAMRBox &other) const
bool IntersectBoxAlongDimension(const vtkAMRBox &other, const int q)
static int GetCellLinearIndex(const vtkAMRBox &box, const int i, const int j, const int k, int imageDimension[3])
static int ComputeStructuredCoordinates(const vtkAMRBox &box, const double dataOrigin[3], const double h[3], const double x[3], int ijk[3], double pcoords[3])
vtkAMRBox(int ilo, int jlo, int ihi, int jhi)
void GetGhostVector(int r, int nghost[6]) const