48 #ifndef vtkStructuredGrid_h
49 #define vtkStructuredGrid_h
51 #include "vtkCommonDataModelModule.h"
102 int GetMaxCellSize() VTK_OVERRIDE {
return 8;};
111 void SetDimensions(
int i,
int j,
int k);
112 void SetDimensions(
int dim[3]);
119 virtual int *GetDimensions ();
120 virtual void GetDimensions (
int dim[3]);
126 int GetDataDimension();
134 void SetExtent(
int extent[6]);
135 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
136 vtkGetVector6Macro(Extent,
int);
189 unsigned char IsPointVisible(
vtkIdType ptId);
196 unsigned char IsCellVisible(
vtkIdType cellId);
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);
245 ~vtkStructuredGrid() VTK_OVERRIDE;
263 void ComputeScalarRange() VTK_OVERRIDE;
275 static unsigned char MASKED_CELL_VALUE;
289 this->GetDimensions(dims);
298 nCells *= (dims[i]-1);
int GetDataObjectType() override
Return what type of dataset this is.
vtkIdType GetNumberOfPoints() override
See vtkDataSet for additional information.
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
static vtkDataObject * New()
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 DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
a cell that represents a 2D quadrilateral
abstract class for specifying dataset behavior
an empty cell used as a place-holder during processing
provides thread-safe access to cells
void GetPoint(const int i, const int j, const int k, double pnt[3])
int GetDataDimension()
Return the dimensionality of the data.
cell represents a 1D line
abstract class to specify cell behavior
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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 Initialize() override
Reset to an empty state and free any memory.
void GetPoint(vtkIdType ptId, double p[3]) 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...
dynamic, self-adjusting array of unsigned char
void GetPoint(vtkIdType ptId, double x[3]) override
See vtkDataSet for additional information.
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
Get the cells using a point.
topologically regular array of data
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
general representation of visualization data
#define VTK_STRUCTURED_GRID
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
double * GetPoint(vtkIdType ptId) override
Standard vtkDataSet API methods.
vtkIdType GetNumberOfPoints() override
Standard vtkDataSet API methods.