 |
VTK
9.1.0
|
Go to the documentation of this file.
136 #ifndef vtkRectilinearGrid_h
137 #define vtkRectilinearGrid_h
139 #include "vtkCommonDataModelModule.h"
190 double pcoords[3],
double* weights)
override;
192 double tol2,
int& subId,
double pcoords[3],
double* weights)
override;
194 double pcoords[3],
double* weights)
override;
262 vtkGetVectorMacro(Dimensions,
int, 3);
268 int GetDataDimension();
293 void GetPoint(
const int i,
const int j,
const int k,
double p[3]);
326 void SetExtent(
int xMin,
int xMax,
int yMin,
int yMax,
int zMin,
int zMax);
327 vtkGetVector6Macro(Extent,
int);
358 void Crop(
const int* updateExtent)
override;
410 double PointReturn[3];
426 for (i = 0; i < 3; i++)
represent and manipulate 3D points
void SetDimensions(const int dim[3])
Set dimensions of rectilinear grid dataset.
virtual vtkIdType GetNumberOfPoints()=0
Determine the number of points composing the dataset.
static int GetDataDimension(int dataDescription)
Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
int GetExtentType() override
Structured extent.
int ComputeStructuredCoordinates(double x[3], int ijk[3], double pcoords[3])
Convenience function computes the structured coordinates for a point x[3].
void Initialize() override
Restore object to initial state.
a dataset that is topologically regular with variable spacing in the three coordinate directions
void ComputeBounds() override
Standard vtkDataSet API methods.
vtkIdType FindPoint(double x[3]) override
Standard vtkDataSet API methods.
void GetPoint(const int i, const int j, const int k, double p[3])
Given the IJK-coordinates of the point, it returns the corresponding xyz-coordinates.
static vtkRectilinearGrid * GetData(vtkInformationVector *v, int i=0)
Retrieve an instance of this class from an information object.
int GetCellType(vtkIdType cellId) override
Standard vtkDataSet API methods.
int GetNumberOfScalarComponents()
Set/Get the number of scalar components for points.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.
abstract superclass for arrays of numeric data
vtkIdType GetNumberOfCells() override
Standard vtkDataSet API methods.
vtkDataArray * YCoordinates
static int GetNumberOfScalarComponents(vtkInformation *meta_data)
Set/Get the number of scalar components for points.
virtual void SetZCoordinates(vtkDataArray *)
Specify the grid coordinates in the z-direction.
a cell that represents a 3D point
cell represents a 1D line
void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override
Standard vtkDataSet API methods.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
bool HasAnyBlankPoints() override
Returns 1 if there is any visibility constraint on the points, 0 otherwise.
void GetPoint(vtkIdType id, double x[3]) override
Standard vtkDataSet API methods.
static vtkRectilinearGrid * New()
unsigned char IsPointVisible(vtkIdType ptId)
Return non-zero value if specified point is visible.
~vtkRectilinearGrid() override
#define VTK_SIZEHINT(...)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds, int dataDescription, int dim[3])
Get the points defining a cell.
vtkCell * GetCell(int i, int j, int k) override
Standard vtkDataSet API methods.
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.
void GetCellBounds(vtkIdType cellId, double bounds[6]) override
Standard vtkDataSet API methods.
void SetDimensions(int i, int j, int k)
Set dimensions of rectilinear grid dataset.
void SetExtent(int extent[6])
Different ways to set the extent of the data array.
abstract class to specify cell behavior
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Standard vtkDataSet API methods.
int GetDataDimension()
Return the dimensionality of the data.
virtual void SetXCoordinates(vtkDataArray *)
Specify the grid coordinates in the x-direction.
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
Standard vtkDataSet API methods.
vtkIdType FindPoint(double x, double y, double z)
Standard vtkDataSet API methods.
a simple class to control print indentation
virtual void SetYCoordinates(vtkDataArray *)
Specify the grid coordinates in the y-direction.
list of point or cell ids
const char * GetScalarTypeAsString()
Set/Get the scalar data type for the points.
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.
static vtkRectilinearGrid * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
double * GetPoint(vtkIdType ptId) override
Standard vtkDataSet API methods.
void SetExtent(int xMin, int xMax, int yMin, int yMax, int zMin, int zMax)
Different ways to set the extent of the data array.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
unsigned char IsCellVisible(vtkIdType cellId)
Return non-zero value if specified point is visible.
abstract class to specify dataset behavior
vtkIdType FindCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override
Standard vtkDataSet API methods.
void GetCellDims(int cellDims[3])
Given the node dimensions of this grid instance, this method computes the node dimensions.
vtkDataArray * XCoordinates
void Crop(const int *updateExtent) override
Reallocates and copies to set the Extent to the UpdateExtent.
static bool HasNumberOfScalarComponents(vtkInformation *meta_data)
Set/Get the number of scalar components for points.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
a cell that represents an orthogonal quadrilateral
static void SetNumberOfScalarComponents(int n, vtkInformation *meta_data)
Set/Get the number of scalar components for points.
static int GetScalarType(vtkInformation *meta_data)
Set/Get the scalar data type for the points.
void CopyStructure(vtkDataSet *ds) override
Copy the geometric and topological structure of an input rectilinear grid object.
static vtkRectilinearGrid * ExtendedNew()
provides thread-safe access to cells
void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds, int *seedLoc)
Standard vtkDataSet API methods.
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
void GetCell(vtkIdType cellId, vtkGenericCell *cell) override
Standard vtkDataSet API methods.
vtkCell * GetCell(vtkIdType cellId) override
Standard vtkDataSet API methods.
vtkCell * FindAndGetCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override
Standard vtkDataSet API methods.
static void SetScalarType(int, vtkInformation *meta_data)
Set/Get the scalar data type for the points.
vtkDataArray * ZCoordinates
static bool HasScalarType(vtkInformation *meta_data)
Set/Get the scalar data type for the points.
#define VTK_RECTILINEAR_GRID
bool HasAnyBlankCells() override
Returns 1 if there is any visibility constraint on the cells, 0 otherwise.
int GetScalarType()
Set/Get the scalar data type for the points.
void GetPoints(vtkPoints *pnts)
Given a user-supplied vtkPoints container object, this method fills in all the points of the Rectilin...
a cell that represents a 3D orthogonal parallelepiped