17 #ifndef vtkCartesianGrid_h
18 #define vtkCartesianGrid_h
20 #include "vtkCommonDataModelModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
47 using Superclass::FindCell;
48 using Superclass::GetCell;
68 double pcoords[3],
double* weights)
override;
88 virtual int ComputeStructuredCoordinates(
const double x[3],
int ijk[3],
double pcoords[3]) = 0;
93 virtual vtkIdType ComputePointId(
int ijk[3]) = 0;
98 virtual vtkIdType ComputeCellId(
int ijk[3]) = 0;
112 int GetDataDimension();
140 void GetCellDims(
int cellDims[3]);
150 virtual
void UnBlankPoint(
vtkIdType ptId);
151 virtual
void BlankPoint(
int i,
int j,
int k);
152 virtual
void UnBlankPoint(
int i,
int j,
int k);
163 virtual
void UnBlankCell(
vtkIdType ptId);
164 virtual
void BlankCell(
int i,
int j,
int k);
165 virtual
void UnBlankCell(
int i,
int j,
int k);
173 unsigned char IsPointVisible(
vtkIdType ptId);
180 unsigned char IsCellVisible(
vtkIdType cellId);
185 vtkGetMacro(DataDescription,
int);
192 void SetDimensions(
int i,
int j,
int k) { this->SetExtent(0, i - 1, 0, j - 1, 0, k - 1); };
195 this->SetExtent(0, dim[0] - 1, 0, dim[1] - 1, 0, dim[2] - 1);
214 #if VTK_ID_TYPE_IMPL != VTK_INT
235 void SetExtent(VTK_FUTURE_CONST
int extent[6]);
236 void SetExtent(
int xMin,
int xMax,
int yMin,
int yMax,
int zMin,
int zMax);
237 vtkGetVector6Macro(Extent,
int);
258 static void SetNumberOfScalarComponents(
int n,
vtkInformation* meta_data);
259 static int GetNumberOfScalarComponents(
vtkInformation* meta_data);
260 static bool HasNumberOfScalarComponents(
vtkInformation* meta_data);
261 int GetNumberOfScalarComponents();
304 virtual void BuildPoints() = 0;
308 void BuildImplicitStructures();
310 void BuildCellTypes();
314 int Dimensions[3] = { 0, 0, 0 };
315 int Extent[6] = { 0, -1, 0, -1, 0, -1 };
318 double Point[3] = { 0, 0, 0 };
364 VTK_ABI_NAMESPACE_END
int GetDataDimension()
Return the dimensionality of the data.
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
VTKIOHDF_EXPORT std::vector< hsize_t > GetDimensions(hid_t fileID, const char *datasetName)
Returns the dimensions of a HDF dataset of a file.
virtual vtkPoints * GetPoints()
If the subclass has (implicit/explicit) points, then return them.
static vtkIdType GetNumberOfPoints(const int ext[6], int dataDescription=vtkStructuredData::VTK_STRUCTURED_EMPTY)
Given the grid extent, this method returns the total number of points within the extent.
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.
virtual vtkIdType GetNumberOfPoints()=0
Determine the number of points composing the dataset.
abstract class to specify dataset behavior
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
virtual vtkIdType GetCellSize(vtkIdType cellId)
Get the size of cell with cellId such that: 0 <= cellId < NumberOfCells.
A utility array for wrapping constant functions in implicit arrays.
static int GetDataDimension(int dataDescription)
Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
implicit object to represent cell connectivity
virtual int GetMaxSpatialDimension()
Get the maximum/minimum spatial dimensionality of the data which is the maximum/minimum dimension of ...
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.
int GetMinSpatialDimension() override
Standard vtkDataSet API methods.
static vtkIdType GetNumberOfCells(const int ext[6], int dataDescription=vtkStructuredData::VTK_STRUCTURED_EMPTY)
Given the grid extent, this method returns the total number of cells within the extent.
abstract class to specify cell behavior
#define VTK_DEPRECATED_IN_9_6_0(reason)
const char * GetScalarTypeAsString()
Set/Get the scalar data type for the points.
void SetDimensions(const int dim[3])
Set dimensions of rectilinear grid dataset.
a simple class to control print indentation
virtual bool HasAnyBlankPoints()
Returns 1 if there are any blanking points 0 otherwise.
list of point or cell ids
void GetPoint(vtkIdType id, double x[3]) override
Standard vtkDataSet API methods.
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
abstract superclass for arrays of numeric data
virtual void GetCellTypes(vtkCellTypes *types)
Get a list of types of cells in a dataset.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
virtual int GetMinSpatialDimension()
Get the maximum/minimum spatial dimensionality of the data which is the maximum/minimum dimension of ...
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e...
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
Locate cell based on global coordinate x and tolerance squared.
#define VTK_SIZEHINT(...)
void Initialize() override
Restore data object to initial state.
int GetMaxCellSize() override
Standard vtkDataSet API methods.
void GetPoint(int i, int j, int k, double pnt[3])
int GetMaxSpatialDimension() 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.
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
Abstract API for vtkImageData and vtkRectilinearGrid.
vtkIdType GetNumberOfCells() override
Standard vtkDataSet API methods.
general representation of visualization data
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
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.
int GetExtentType() VTK_FUTURE_CONST override
Structured extent.