48 #ifndef vtkStructuredGrid_h 49 #define vtkStructuredGrid_h 51 #include "vtkCommonDataModelModule.h" 114 void SetDimensions(
int i,
int j,
int k);
115 void SetDimensions(
const int dim[3]);
123 virtual void GetDimensions (
int dim[3]);
129 int GetDataDimension();
137 void SetExtent(
int extent[6]);
138 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
139 vtkGetVector6Macro(Extent,
int);
192 unsigned char IsPointVisible(
vtkIdType ptId);
199 unsigned char IsCellVisible(
vtkIdType cellId);
218 void GetCellDims(
int cellDims[3] );
225 void Crop(
const int* updateExtent)
override;
244 void GetPoint(
int i,
int j,
int k,
double p[3],
bool adjustForExtent =
true);
278 static unsigned char MASKED_CELL_VALUE;
292 this->GetDimensions(dims);
301 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()
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).
static vtkPointSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
a cell that represents a 2D quadrilateral
abstract class for specifying dataset behavior
an empty cell used as a place-holder during processing
virtual bool HasAnyBlankCells()
Returns 1 if there are any blanking cells 0 otherwise.
provides thread-safe access to cells
int GetExtentType() override
The extent type is a 3D extent.
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
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
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.
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 void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
Get the cells using a point.
topologically regular array of data
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Standard vtkDataSet API methods.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
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.
vtkHexahedron * Hexahedron
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.