 |
VTK
9.0.1
|
Go to the documentation of this file.
37 #ifndef vtkRectilinearGrid_h
38 #define vtkRectilinearGrid_h
40 #include "vtkCommonDataModelModule.h"
90 double pcoords[3],
double* weights)
override;
92 double tol2,
int& subId,
double pcoords[3],
double* weights)
override;
94 double pcoords[3],
double* weights)
override;
120 void SetDimensions(
int i,
int j,
int k);
121 void SetDimensions(
const int dim[3]);
128 vtkGetVectorMacro(Dimensions,
int, 3);
134 int GetDataDimension();
142 int ComputeStructuredCoordinates(
double x[3],
int ijk[3],
double pcoords[3]);
159 void GetPoint(
const int i,
const int j,
const int k,
double p[3]);
191 void SetExtent(
int extent[6]);
192 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
193 vtkGetVector6Macro(Extent,
int);
224 void Crop(
const int* updateExtent)
override;
254 double PointReturn[3];
270 for (i = 0; i < 3; i++)
represent and manipulate 3D points
virtual vtkIdType GetNumberOfPoints()=0
Determine the number of points composing the dataset.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
static int GetDataDimension(int dataDescription)
Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
int GetExtentType() override
Structured extent.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
a dataset that is topologically regular with variable spacing in the three coordinate directions
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Topological inquiry to get cells using point.
vtkIdType GetNumberOfPoints() override
Determine the number of points composing the dataset.
abstract superclass for arrays of numeric data
vtkIdType GetNumberOfCells() override
Standard vtkDataSet API methods.
vtkDataArray * YCoordinates
a cell that represents a 3D point
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.
cell represents a 1D line
virtual void ComputeBounds()
Compute the data bounding box from data points.
#define VTK_SIZEHINT(...)
static void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds, int dataDescription, int dim[3])
Get the points defining a cell.
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,...
vtkIdType FindPoint(double x, double y, double z)
Locate the closest point to the global coordinate x.
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e....
abstract class to specify cell behavior
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Topological inquiry to get points defining cell.
int GetDataDimension()
Return the dimensionality of the data.
int GetDataObjectType() override
Return what type of dataset this is.
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
Get the cells using a point.
int GetMaxCellSize() override
Convenience method returns largest cell size in dataset.
vtkIdType FindPoint(double x, double y, double z)
a simple class to control print indentation
void Initialize() override
Restore data object to initial state.
list of point or cell ids
vtkIdType ComputePointId(int ijk[3])
Given a location in structured coordinates (i-j-k), return the point id.
vtkIdType ComputeCellId(int ijk[3])
Given a location in structured coordinates (i-j-k), return the cell id.
virtual void Crop(const int *updateExtent)
This method crops the data object (if necessary) so that the extent matches the update extent.
abstract class to specify dataset behavior
vtkDataArray * XCoordinates
virtual double * GetPoint(vtkIdType ptId)=0
Get point coordinates with ptId such that: 0 <= ptId < NumberOfPoints.
a cell that represents an orthogonal quadrilateral
virtual void CopyStructure(vtkDataSet *ds)=0
Copy the geometric and topological structure of an object.
provides thread-safe access to cells
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
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,...
general representation of visualization data
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkDataArray * ZCoordinates
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.
#define VTK_RECTILINEAR_GRID
void DeepCopy(vtkDataObject *src) override
static vtkDataObject * New()
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
a cell that represents a 3D orthogonal parallelepiped