41 #ifndef __vtkRectilinearGrid_h
42 #define __vtkRectilinearGrid_h
44 #include "vtkCommonDataModelModule.h"
45 #include "vtkDataSet.h"
61 void PrintSelf(ostream& os,
vtkIndent indent);
68 void CopyStructure(vtkDataSet *ds);
81 void GetCellBounds(
vtkIdType cellId,
double bounds[6]);
82 vtkIdType FindPoint(
double x,
double y,
double z) {
return this->vtkDataSet::FindPoint(x, y, z);};
85 int& subId,
double pcoords[3],
double *weights);
87 vtkIdType cellId,
double tol2,
int& subId,
88 double pcoords[3],
double *weights);
89 vtkCell *FindAndGetCell(
double x[3], vtkCell *cell,
vtkIdType cellId,
90 double tol2,
int& subId,
double pcoords[3],
111 void SetDimensions(
int i,
int j,
int k);
112 void SetDimensions(
int dim[3]);
117 vtkGetVectorMacro(Dimensions,
int,3);
121 int GetDataDimension();
128 int ComputeStructuredCoordinates(
double x[3],
int ijk[3],
double pcoords[3]);
141 void GetPoint(
const int i,
const int j,
const int k,
double p[3]);
165 void SetExtent(
int extent[6]);
166 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
167 vtkGetVector6Macro(Extent,
int);
175 unsigned long GetActualMemorySize();
189 virtual void Crop(
const int* updateExtent);
219 double PointReturn[3];
vtkIdType FindPoint(double x, double y, double z)
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
vtkIdType ComputeCellId(int ijk[3])
#define VTK_RECTILINEAR_GRID
static vtkIdType ComputePointId(int dim[3], int ijk[3], int dataDescription=VTK_EMPTY)
static int GetDataDimension(int dataDescription)
vtkDataArray * XCoordinates
provides thread-safe access to cells
vtkIdType ComputePointId(int ijk[3])
vtkIdType GetNumberOfPoints()
cell represents a 1D line
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)
static vtkIdType ComputeCellId(int dim[3], int ijk[3], int dataDescription=VTK_EMPTY)
a simple class to control print indentation
static void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds, int dataDescription, int dim[3])
vtkIdType GetNumberOfCells()
vtkDataArray * ZCoordinates
list of point or cell ids
abstract superclass for arrays of numeric data
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
vtkDataArray * YCoordinates
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)
helper class to get VTK data object types as string and instantiate them
represent and manipulate 3D points