36 #ifndef vtkStructuredGrid_h
37 #define vtkStructuredGrid_h
39 #include "vtkCommonDataModelModule.h"
45 VTK_ABI_NAMESPACE_BEGIN
157 unsigned char IsPointVisible(
vtkIdType ptId);
164 unsigned char IsCellVisible(
vtkIdType cellId);
170 bool HasAnyBlankPoints() override;
175 bool HasAnyBlankCells() override;
180 vtkGetMacro(DataDescription,
int);
188 void GetCellDims(
int cellDims[3]);
194 void SetDimensions(
int i,
int j,
int k);
199 void SetDimensions(const
int dims[3]);
210 int GetDataDimension();
218 void SetExtent(VTK_FUTURE_CONST
int extent[6]);
219 void SetExtent(
int xMin,
int xMax,
int yMin,
int yMax,
int zMin,
int zMax);
220 vtkGetVector6Macro(Extent,
int);
231 unsigned long GetActualMemorySize() override;
251 void Crop(
const int updateExtent[6])
override;
270 void GetPoint(
int i,
int j,
int k,
double p[3],
bool adjustForExtent =
true);
292 void BuildImplicitStructures();
294 void BuildCellTypes();
328 VTK_ABI_NAMESPACE_END
vtkIdType GetCellSize(vtkIdType) override
This method always returns 1, as all cells are point in a pure vtkPointSet.
vtkIdType GetNumberOfPoints() override
See vtkDataSet for additional information.
VTKIOHDF_EXPORT std::vector< hsize_t > GetDimensions(hid_t fileID, const char *datasetName)
Returns the dimensions of a HDF dataset of a file.
int GetMinSpatialDimension() override
Standard vtkDataSet API methods.
virtual void ComputeScalarRange()
Compute the range of the scalars and cache it into ScalarRange only if the cache became invalid (Scal...
abstract class to specify dataset behavior
a cell that represents a 3D point
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
void GetCellPoints(vtkIdType, vtkIdList *idList) override
Topological inquiry to get points defining cell.
static vtkPointSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
a cell that represents a 2D quadrilateral
concrete class for storing a set of points
vtkIdType GetNumberOfCells() override
This method always returns 0, as there are no cells in a vtkPointSet.
virtual int GetMaxSpatialDimension()
Get the maximum/minimum spatial dimensionality of the data which is the maximum/minimum dimension of ...
an empty cell used as a place-holder during processing
int GetCellType(vtkIdType) override
This method always returns VTK_EMPTY_CELL, as there is no cell in a vtkPointSet.
provides thread-safe access to cells
int GetDataDimension()
Return the dimensionality of the data.
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
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.
cell represents a 1D line
abstract class to specify cell behavior
#define VTK_DEPRECATED_IN_9_6_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
a simple class to control print indentation
vtkSmartPointer< vtkConstantArray< unsigned char > > StructuredCellTypes
static vtkPointSet * New()
Standard instantiation method.
list of point or cell ids
void Initialize() override
Reset to an empty state and free any memory.
void GetPoint(vtkIdType ptId, double p[3]) override
Standard vtkDataSet API methods.
int GetMaxCellSize() override
Standard vtkDataSet API methods.
a cell that represents a linear 3D hexahedron
virtual void GetCellTypes(vtkCellTypes *types)
Get a list of types of cells in a dataset.
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...
#define VTK_SIZEHINT(...)
dynamic, self-adjusting array of unsigned char
vtkIdType GetNumberOfCells() override
Standard vtkDataSet API methods.
void GetPoint(vtkIdType ptId, double x[3]) override
See vtkDataSet for additional information.
static vtkPointSet * ExtendedNew()
topologically regular array of data
vtkSmartPointer< vtkConstantArray< int > > LegacyStructuredCellTypes
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, VTK_FUTURE_CONST int dim[3])
Get the cells using a point.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
virtual void Crop(const int updateExtent[6])
This method crops the data object (if necessary) so that the extent matches the update extent...
vtkCell * GetCell(vtkIdType) override
This method always return a vtkEmptyCell, as there is no cell in a vtkPointSet.
vtkSmartPointer< vtkStructuredCellArray > StructuredCells
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
general representation of visualization data
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
int GetMaxSpatialDimension() override
Standard vtkDataSet API methods.
double * GetPoint(vtkIdType ptId) override
Standard vtkDataSet API methods.
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.