28 #ifndef vtkUnstructuredGrid_h 29 #define vtkUnstructuredGrid_h 32 #include "vtkCommonDataModelModule.h" 124 return this->AllocateExact(numCells, numCells * maxCellSize);
149 this->AllocateExact(numCells, numCells);
198 this->Connectivity->GetCellAtId(cellId, npts, pts);
209 #ifndef VTK_LEGACY_REMOVE 316 virtual int GetPiece();
317 virtual int GetNumberOfPieces();
323 virtual int GetGhostLevel();
359 void RemoveGhostCells();
389 int InitializeFacesRepresentation(
vtkIdType numPrevCells);
415 static void DecomposeAPolyhedronCell(
const vtkIdType* polyhedronCellStream,
vtkIdType& nCellpts,
430 static void DecomposeAPolyhedronCell(
vtkIdType nCellFaces,
const vtkIdType* inFaceStream,
bool AllocateEstimate(vtkIdType numCells, vtkIdType maxCellSize)
Pre-allocate memory in internal data structures.
static vtkUnstructuredGridBase * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)=0
Topological inquiry to get cells using point.
vtkTriangleStrip * TriangleStrip
static vtkDataObject * New()
cell represents a parabolic, 13-node isoparametric pyramid
vtkTriQuadraticHexahedron * TriQuadraticHexahedron
vtkLagrangeTriangle * LagrangeTriangle
vtkTypeUInt32 vtkMTimeType
vtkLagrangeWedge * LagrangeWedge
vtkSmartPointer< vtkCellTypes > DistinctCellTypes
abstract class to specify dataset behavior
a cell that represents a 3D point
a 3D cell that represents a linear pyramid
vtkQuadraticWedge * QuadraticWedge
an abstract base class for classes that build topological links from points to cells ...
a cell that represents an orthogonal quadrilateral
cell represents a parabolic, 9-node isoparametric quad
vtkBezierTriangle * BezierTriangle
vtkBezierWedge * BezierWedge
A 2D cell that represents an arbitrary order Bezier triangle.
vtkBezierQuadrilateral * BezierQuadrilateral
vtkBezierHexahedron * BezierHexahedron
vtkQuadraticTriangle * QuadraticTriangle
vtkPentagonalPrism * PentagonalPrism
a cell that represents a 2D quadrilateral
A 3D cell that represents an arbitrary order Bezier hex.
dynamic, self-adjusting array of vtkIdType
an empty cell used as a place-holder during processing
vtkQuadraticHexahedron * QuadraticHexahedron
cell represents a set of 0D vertices
void Squeeze() override
Reclaim any unused memory.
A 3D cell that represents an arbitrary order Lagrange tetrahedron.
vtkQuadraticTetra * QuadraticTetra
cell represents a parabolic, 18-node isoparametric wedge
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methdos for type information and printing.
provides thread-safe access to cells
vtkPolyhedron * Polyhedron
cell represents a biquadratic, 24-node isoparametric hexahedron
a 3D cell that represents a prism with hexagonal base
virtual vtkIdType InternalInsertNextCell(int type, vtkIdList *ptIds)=0
vtkHexagonalPrism * HexagonalPrism
cell represents a cubic , isoparametric 1D line
vtkBiQuadraticQuad * BiQuadraticQuad
a cell that represents a triangle strip
vtkMTimeType DistinctCellTypesUpdateMTime
a 3D cell that represents a tetrahedron
a 3D cell that represents a convex prism with pentagonal base
vtkBezierCurve * BezierCurve
cell represents a 1D line
abstract class to specify cell behavior
A 3D cell that represents an arbitrary order Lagrange wedge.
a cell that represents a 3D orthogonal parallelepiped
A 2D cell that represents an arbitrary order Lagrange triangle.
cell represents a parabolic, 8-node isoparametric quad
virtual void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array)=0
Fill vtkIdTypeArray container with list of cell Ids.
a simple class to control print indentation
vtkQuadraticQuad * QuadraticQuad
virtual int GetMaxCellSize()=0
Convenience method returns largest cell size in dataset.
vtkSmartPointer< vtkAbstractCellLinks > Links
vtkLagrangeHexahedron * LagrangeHexahedron
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.
A 3D cell that represents an arbitrary order Bezier tetrahedron.
dataset represents arbitrary combinations of all possible cell types
void GetCellPoints(vtkIdType cellId, vtkIdType &npts, vtkIdType const *&pts)
A higher-performing variant of the virtual vtkDataSet::GetCellPoints() for unstructured grids...
vtkBiQuadraticTriangle * BiQuadraticTriangle
vtkSmartPointer< vtkUnsignedCharArray > Types
vtkHexahedron * Hexahedron
a cell that represents an n-sided polygon
vtkSmartPointer< vtkIdTypeArray > CellLocations
vtkLagrangeTetra * LagrangeTetra
cell represents a parabolic, isoparametric triangle
a cell that represents a linear 3D hexahedron
virtual void GetCellTypes(vtkCellTypes *types)
Get a list of types of cells in a dataset.
cell represents a parabolic, 10-node isoparametric tetrahedron
a 3D cell defined by a set of convex points
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
A 3D cell that represents an arbitrary order Bezier wedge.
vtkQuadraticLinearWedge * QuadraticLinearWedge
vtkLagrangeQuadrilateral * LagrangeQuadrilateral
vtkBiQuadraticQuadraticWedge * BiQuadraticQuadraticWedge
object to represent cell connectivity
vtkBiQuadraticQuadraticHexahedron * BiQuadraticQuadraticHexahedron
virtual void InternalReplaceCell(vtkIdType cellId, int npts, const vtkIdType pts[])=0
cell represents a parabolic, 27-node isoparametric hexahedron
vtkCellIterator * NewCellIterator() override
Return an iterator that traverses the cells in this data set.
a cell that represents a parabolic n-sided polygon
vtkLagrangeCurve * LagrangeCurve
cell represents a parabolic, isoparametric edge
virtual int IsHomogeneous()=0
Traverse cells and determine if cells are all of the same type.
a cell that represents a triangle
cell represents a parabolic, 20-node isoparametric hexahedron
int GetDataObjectType() override
Standard vtkDataSet API methods.
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
cell represents a parabolic, isoparametric triangle
vtkBezierTetra * BezierTetra
cell represents a parabolic, 15-node isoparametric wedge
vtkQuadraticLinearQuad * QuadraticLinearQuad
vtkConvexPointSet * ConvexPointSet
a 3D cell defined by a set of polygonal faces
vtkCellArray * GetCells()
Return the unstructured grid connectivity array.
Efficient cell iterator for vtkDataSet topologies.
vtkPolyVertex * PolyVertex
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
A 3D cell that represents an arbitrary order Lagrange hex.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
general representation of visualization data
cell represents a, 12-node isoparametric wedge
vtkSmartPointer< vtkIdTypeArray > Faces
vtkSmartPointer< vtkCellArray > Connectivity
object provides direct access to cells in vtkCellArray and type information
cell represents a quadratic-linear, 6-node isoparametric quad
vtkQuadraticPolygon * QuadraticPolygon
dataset represents arbitrary combinations of all possible cell types.
vtkQuadraticEdge * QuadraticEdge
vtkSmartPointer< vtkIdTypeArray > FaceLocations
a 3D cell that represents a linear wedge
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.
#define VTK_UNSTRUCTURED_GRID
vtkQuadraticPyramid * QuadraticPyramid
cell represents a set of 1D lines
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
void Allocate(vtkIdType numCells=1000, int vtkNotUsed(extSize)=1000) override
Method allocates initial storage for the cell connectivity.