36 #ifndef vtkStructuredGrid_h
37 #define vtkStructuredGrid_h
39 #include "vtkCommonDataModelModule.h"
45 VTK_ABI_NAMESPACE_BEGIN
94 this->GetDimensions(dims);
107 void SetDimensions(
int i,
int j,
int k);
112 void SetDimensions(
const int dims[3]);
125 virtual
void GetDimensions(
int dims[3]);
131 int GetDataDimension();
139 void SetExtent(VTK_FUTURE_CONST
int extent[6]);
140 void SetExtent(
int xMin,
int xMax,
int yMin,
int yMax,
int zMin,
int zMax);
141 vtkGetVector6Macro(Extent,
int);
152 unsigned long GetActualMemorySize() override;
194 unsigned char IsPointVisible(
vtkIdType ptId);
201 unsigned char IsCellVisible(
vtkIdType cellId);
220 void GetCellDims(
int cellDims[3]);
227 void Crop(
const int* updateExtent)
override;
246 void GetPoint(
int i,
int j,
int k,
double p[3],
bool adjustForExtent =
true);
259 #if !defined(VTK_LEGACY_REMOVE)
287 for (i = 0; i < 3; i++)
295 nCells *= (dims[i] - 1);
307 VTK_ABI_NAMESPACE_END
vtkIdType GetCellSize(vtkIdType) override
This method always returns 1, as all cells are point in a pure vtkPointSet.
int GetDataObjectType() override
Return what type of dataset this is.
vtkIdType GetNumberOfPoints() override
See vtkDataSet for additional information.
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
static int GetDataDimension(int dataDescription)
Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
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.
an empty cell used as a place-holder during processing
virtual bool HasAnyBlankCells()
Returns 1 if there are any blanking cells 0 otherwise.
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
virtual int * GetDimensions()
Get dimensions of this structured grid.
virtual void Crop(const int *updateExtent)
This method crops the data object (if necessary) so that the extent matches the update extent...
int GetDataDimension()
Return the dimensionality of the data.
cell represents a 1D line
abstract class to specify cell behavior
#define VTK_DEPRECATED_IN_9_3_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
a simple class to control print indentation
virtual bool HasAnyBlankPoints()
Returns 1 if there are any blanking points 0 otherwise.
static vtkPointSet * New()
Standard instantiation method.
list of point or cell ids
void Initialize() override
Reset to an empty state and free any memory.
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
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 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
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.
vtkCell * GetCell(vtkIdType) override
This method always return a vtkEmptyCell, as there is no cell in a vtkPointSet.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
general representation of visualization data
#define VTK_STRUCTURED_GRID
vtkHexahedron * Hexahedron
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
double * GetPoint(vtkIdType ptId) override
Standard vtkDataSet API methods.
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.