31 #ifndef vtkRectilinearGrid_h
32 #define vtkRectilinearGrid_h
34 #include "vtkCommonDataModelModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
86 double pcoords[3],
double* weights)
override;
88 double tol2,
int& subId,
double pcoords[3],
double* weights)
override;
90 double pcoords[3],
double* weights)
override;
113 unsigned char IsPointVisible(
vtkIdType ptId);
120 unsigned char IsCellVisible(
vtkIdType cellId);
139 void GetCellDims(
int cellDims[3]);
152 void SetDimensions(
int i,
int j,
int k);
153 void SetDimensions(
const int dim[3]);
160 vtkGetVectorMacro(Dimensions,
int, 3);
166 int GetDataDimension();
174 int ComputeStructuredCoordinates(
double x[3],
int ijk[3],
double pcoords[3]);
191 void GetPoint(
int i,
int j,
int k,
double p[3]);
223 void SetExtent(
int extent[6]);
224 void SetExtent(
int xMin,
int xMax,
int yMin,
int yMax,
int zMin,
int zMax);
225 vtkGetVector6Macro(Extent,
int);
256 void Crop(
const int* updateExtent)
override;
282 static void SetNumberOfScalarComponents(
int n,
vtkInformation* meta_data);
283 static int GetNumberOfScalarComponents(
vtkInformation* meta_data);
284 static bool HasNumberOfScalarComponents(
vtkInformation* meta_data);
285 int GetNumberOfScalarComponents();
308 double PointReturn[3];
323 for (i = 0; i < 3; i++)
362 VTK_ABI_NAMESPACE_END
int GetDataDimension()
Return the dimensionality of the data.
vtkIdType FindPoint(double x, double y, double z)
Standard vtkDataSet API methods.
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.
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
vtkIdType ComputeCellId(int ijk[3])
Given a location in structured coordinates (i-j-k), return the cell id.
int GetMaxCellSize() override
Standard vtkDataSet API methods.
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
virtual vtkIdType GetNumberOfPoints()=0
Determine the number of points composing the dataset.
abstract class to specify dataset behavior
a cell that represents a 3D point
virtual vtkIdType GetCellSize(vtkIdType cellId)
Get the size of cell with cellId such that: 0 <= cellId < NumberOfCells.
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.
int GetExtentType() override
Structured extent.
vtkDataArray * XCoordinates
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Standard vtkDataSet API methods.
virtual bool HasAnyBlankCells()
Returns 1 if there are any blanking cells 0 otherwise.
static vtkDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
provides thread-safe access to cells
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...
static vtkIdType ComputePointId(const int dim[3], const int ijk[3], int dataDescription=VTK_EMPTY)
Given a location in structured coordinates (i-j-k), and the dimensions of the structured dataset...
const char * GetScalarTypeAsString()
Set/Get the scalar data type for the points.
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.
vtkDataArray * ZCoordinates
virtual bool HasAnyBlankPoints()
Returns 1 if there are any blanking points 0 otherwise.
list of point or cell ids
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
abstract superclass for arrays of numeric data
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e...
#define VTK_SIZEHINT(...)
void Initialize() override
Restore data object to initial state.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
static vtkIdType ComputeCellId(const int dim[3], const int ijk[3], int dataDescription=VTK_EMPTY)
Given a location in structured coordinates (i-j-k), and the dimensions of the structured dataset...
vtkDataArray * YCoordinates
vtkIdType GetNumberOfCells() override
Standard vtkDataSet API methods.
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, VTK_FUTURE_CONST int dim[3])
Get the cells using a point.
virtual void CopyStructure(vtkDataSet *ds)=0
Copy the geometric and topological structure of an object.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
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.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
represent and manipulate 3D points
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
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.