Go to the documentation of this file.
48 #ifndef vtkStructuredGrid_h
49 #define vtkStructuredGrid_h
51 #include "vtkCommonDataModelModule.h"
102 int GetMaxCellSize() VTK_OVERRIDE {
return 8;};
126 int GetDataDimension();
135 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
136 vtkGetVector6Macro(Extent,
int);
207 bool HasAnyBlankCells() VTK_OVERRIDE;
215 void GetCellDims(
int cellDims[3] );
222 void Crop(const
int* updateExtent) VTK_OVERRIDE;
241 void GetPoint(
int i,
int j,
int k,
double p[3],
bool adjustForExtent = true);
263 void ComputeScalarRange() VTK_OVERRIDE;
275 static unsigned char MASKED_CELL_VALUE;
298 nCells *= (dims[i]-1);
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
void Initialize() override
Reset to an empty state and free any memory.
static int GetDataDimension(int dataDescription)
Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
a cell that represents a linear 3D hexahedron
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.
void BlankCell(vtkIdType ptId)
Methods for supporting blanking of cells.
an empty cell used as a place-holder during processing
void SetDimensions(int dim[3])
dynamic, self-adjusting array of unsigned char
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
topologically regular array of data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDimensions(int i, int j, int k)
following methods are specific to structured grid
bool HasAnyBlankPoints() override
Returns 1 if there is any visibility constraint on the points, 0 otherwise.
a cell that represents a 3D point
void GetPoint(const int i, const int j, const int k, double pnt[3])
void GetCell(vtkIdType cellId, vtkGenericCell *cell) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
cell represents a 1D line
void GetCellBounds(vtkIdType cellId, double bounds[6]) override
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
unsigned char IsCellVisible(vtkIdType cellId)
Return non-zero value if specified point is visible.
virtual int * GetDimensions()
Get dimensions of this structured points dataset.
int GetDataDimension()
Return the dimensionality of the data.
void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) override
Topological inquiry to get all cells using list of points exclusive of cell specified (e....
void CopyStructure(vtkDataSet *ds) override
Copy the geometric and topological structure of an input poly data object.
void SetExtent(int extent[6])
Different ways to set the extent of the data array.
unsigned char IsPointVisible(vtkIdType ptId)
Return non-zero value if specified point is visible.
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
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
Get the cells using a point.
int GetCellType(vtkIdType cellId) override
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkIdType GetNumberOfCells() override
Determine the number of cells composing the dataset.
static vtkStructuredGrid * New()
a simple class to control print indentation
list of point or cell ids
void GetPoint(vtkIdType ptId, double x[3]) override
Copy point coordinates into user provided array x[3] for specified point id.
abstract class to specify dataset behavior
vtkCell * GetCell(vtkIdType cellId) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
void BlankPoint(vtkIdType ptId)
Methods for supporting blanking of cells.
void SetExtent(int x1, int x2, int y1, int y2, int z1, int z2)
void GetPoint(vtkIdType ptId, double p[3]) override
Copy point coordinates into user provided array x[3] for specified point id.
void UnBlankPoint(vtkIdType ptId)
abstract class for specifying dataset behavior
provides thread-safe access to cells
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
int GetDataObjectType() override
Return what type of dataset this is.
void UnBlankCell(vtkIdType ptId)
general representation of visualization data
double * GetPoint(vtkIdType ptId) override
See vtkDataSet for additional information.
virtual void GetDimensions(int dim[3])
a cell that represents a 2D quadrilateral
#define VTK_STRUCTURED_GRID
vtkIdType GetNumberOfPoints() override
See vtkDataSet for additional information.