 |
VTK
9.0.1
|
Go to the documentation of this file.
42 #ifndef vtkStructuredGrid_h
43 #define vtkStructuredGrid_h
45 #include "vtkCommonDataModelModule.h"
106 void SetDimensions(
int i,
int j,
int k);
107 void SetDimensions(
const int dim[3]);
115 virtual
void GetDimensions(
int dim[3]);
121 int GetDataDimension();
129 void SetExtent(
int extent[6]);
130 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
131 vtkGetVector6Macro(Extent,
int);
142 unsigned long GetActualMemorySize() override;
184 unsigned char IsPointVisible(
vtkIdType ptId);
191 unsigned char IsCellVisible(
vtkIdType cellId);
210 void GetCellDims(
int cellDims[3]);
217 void Crop(
const int* updateExtent)
override;
236 void GetPoint(
int i,
int j,
int k,
double p[3],
bool adjustForExtent =
true);
272 static unsigned char MASKED_CELL_VALUE;
286 for (i = 0; i < 3; i++)
294 nCells *= (dims[i] - 1);
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Topological inquiry to get cells using point.
virtual void ComputeScalarRange()
Compute the range of the scalars and cache it into ScalarRange only if the cache became invalid (Scal...
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.
an empty cell used as a place-holder during processing
dynamic, self-adjusting array of unsigned char
topologically regular array of data
static vtkPointSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
a cell that represents a 3D point
cell represents a 1D line
virtual int * GetDimensions()
Get dimensions of this structured points dataset.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDataDimension()
Return the dimensionality of the data.
#define VTK_SIZEHINT(...)
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.
vtkIdType GetNumberOfCells() override
Determine the number of cells composing the dataset.
a simple class to control print indentation
int GetMaxCellSize() override
Convenience method returns largest cell size in dataset.
list of point or cell ids
virtual bool HasAnyBlankCells()
Returns 1 if there are any blanking cells 0 otherwise.
void Initialize() override
Reset to an empty state and free any memory.
virtual void Crop(const int *updateExtent)
This method crops the data object (if necessary) so that the extent matches the update extent.
void GetPoint(vtkIdType ptId, double x[3]) override
Copy point coordinates into user provided array x[3] for specified point id.
virtual bool HasAnyBlankPoints()
Returns 1 if there are any blanking points 0 otherwise.
abstract class to specify dataset behavior
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
void GetPoint(vtkIdType ptId, double p[3]) override
Copy point coordinates into user provided array x[3] for specified point id.
abstract class for specifying dataset behavior
vtkHexahedron * Hexahedron
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.
general representation of visualization data
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
double * GetPoint(vtkIdType ptId) override
See vtkDataSet for additional information.
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
a cell that represents a 2D quadrilateral
static vtkDataObject * New()
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
#define VTK_STRUCTURED_GRID
vtkIdType GetNumberOfPoints() override
See vtkDataSet for additional information.