36 #ifndef vtkRectilinearGrid_h
37 #define vtkRectilinearGrid_h
39 #include "vtkCommonDataModelModule.h"
78 vtkIdType GetNumberOfCells() VTK_OVERRIDE;
79 vtkIdType GetNumberOfPoints() VTK_OVERRIDE;
83 vtkCell *GetCell(
int i,
int j,
int k) VTK_OVERRIDE;
85 void GetCellBounds(
vtkIdType cellId,
double bounds[6]) VTK_OVERRIDE;
89 int& subId,
double pcoords[3],
double *weights) VTK_OVERRIDE;
91 vtkIdType cellId,
double tol2,
int& subId,
92 double pcoords[3],
double *weights) VTK_OVERRIDE;
94 double tol2,
int& subId,
double pcoords[3],
95 double *weights) VTK_OVERRIDE;
103 int GetMaxCellSize() VTK_OVERRIDE {
return 8;};
119 void SetDimensions(
int i,
int j,
int k);
120 void SetDimensions(
int dim[3]);
127 vtkGetVectorMacro(Dimensions,
int,3);
133 int GetDataDimension();
141 int ComputeStructuredCoordinates(
double x[3],
int ijk[3],
double pcoords[3]);
158 void GetPoint(
const int i,
const int j,
const int k,
double p[3]);
190 void SetExtent(
int extent[6]);
191 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
192 vtkGetVector6Macro(Extent,
int);
223 void Crop(
const int* updateExtent) VTK_OVERRIDE;
253 double PointReturn[3];
271 if (this->Dimensions[i] <= 0)
275 if (this->Dimensions[i] > 1)
277 nCells *= (this->Dimensions[i]-1);
287 return static_cast<vtkIdType>(this->Dimensions[0]) *
288 this->Dimensions[1] * this->Dimensions[2];
int GetDataDimension()
Return the dimensionality of the data.
int GetDataObjectType() override
Return what type of dataset this is.
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
virtual vtkCell * FindAndGetCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
Locate the cell that contains a point and return the cell.
vtkIdType ComputeCellId(int ijk[3])
Given a location in structured coordinates (i-j-k), return the cell id.
static vtkDataObject * New()
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)=0
Locate cell based on global coordinate x and tolerance squared.
#define VTK_RECTILINEAR_GRID
abstract class to specify dataset behavior
a cell that represents a 3D point
static int GetDataDimension(int dataDescription)
Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
a cell that represents an orthogonal quadrilateral
virtual void ComputeBounds()
Compute the data bounding box from data points.
static vtkIdType ComputePointId(int dim[3], int ijk[3], int dataDescription=VTK_EMPTY)
Given a location in structured coordinates (i-j-k), and the dimensions of the structured dataset...
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Standard vtkDataSet API methods.
static vtkDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
provides thread-safe access to cells
void GetPoint(const int i, const int j, const int k, double pnt[3])
vtkIdType ComputePointId(int ijk[3])
Given a location in structured coordinates (i-j-k), return the point id.
virtual void Crop(const int *updateExtent)
This method crops the data object (if necessary) so that the extent matches the update extent...
cell represents a 1D line
abstract class to specify cell behavior
a cell that represents a 3D orthogonal parallelepiped
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
a simple class to control print indentation
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.
static void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds, int dataDescription, int dim[3])
Get the points defining a cell.
list of point or cell ids
abstract superclass for arrays of numeric data
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e...
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
Get the cells using a point.
static vtkIdType ComputeCellId(int dim[3], int ijk[3], int dataDescription=VTK_EMPTY)
Given a location in structured coordinates (i-j-k), and the dimensions of the structured dataset...
void Initialize() override
Restore data object to initial state.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
virtual void CopyStructure(vtkDataSet *ds)=0
Copy the geometric and topological structure of an object.
virtual double * GetPoint(vtkIdType ptId)=0
Get point coordinates with ptId such that: 0 <= ptId < NumberOfPoints.
general representation of visualization data
vtkIdType FindPoint(double x, double y, double z)
Locate the closest point to the global coordinate x.
represent and manipulate 3D points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.