Go to the documentation of this file.
33 #ifndef vtkUnstructuredGrid_h
34 #define vtkUnstructuredGrid_h
36 #include "vtkCommonDataModelModule.h"
94 void PrintSelf(ostream& os,
vtkIndent indent) override;
vtkQuadraticQuad * QuadraticQuad
void AddReferenceToCell(vtkIdType ptId, vtkIdType cellId)
void SetCells(int *types, vtkCellArray *cells)
A 3D cell that represents an arbitrary order Lagrange wedge.
void GetFaceStream(vtkIdType cellId, vtkIdList *ptIds)
Get the face stream of a polyhedron cell in the following format: (numCellFaces, numFace0Pts,...
vtkBiQuadraticTriangle * BiQuadraticTriangle
vtkQuadraticEdge * QuadraticEdge
~vtkUnstructuredGrid() override
vtkHexahedron * Hexahedron
void CopyStructure(vtkDataSet *ds) override
Copy the geometric structure of an input point set object.
vtkQuadraticPyramid * QuadraticPyramid
a 3D cell that represents a prism with hexagonal base
void Allocate(vtkIdType numCells=1000, int extSize=1000) override
Method allocates initial storage for the cell connectivity.
a cell that represents a linear 3D hexahedron
a 3D cell defined by a set of convex points
virtual int GetGhostLevel()
Get the ghost level.
void Reset()
Standard vtkDataSet methods; see vtkDataSet.h for documentation.
a cell that represents an n-sided polygon
vtkUnsignedCharArray * GetCellTypesArray()
an empty cell used as a place-holder during processing
void Initialize() override
Reset to an empty state and free any memory.
vtkLagrangeTriangle * LagrangeTriangle
vtkQuadraticTetra * QuadraticTetra
vtkPentagonalPrism * PentagonalPrism
vtkCellLinks * GetCellLinks()
cell represents a parabolic, isoparametric triangle
dynamic, self-adjusting array of unsigned char
dataset represents arbitrary combinations of all possible cell types.
int GetMaxCellSize() override
Convenience method returns largest cell size in dataset.
cell represents a parabolic, isoparametric triangle
vtkHexagonalPrism * HexagonalPrism
cell represents a parabolic, 20-node isoparametric hexahedron
a 3D cell that represents a linear pyramid
vtkIdTypeArray * FaceLocations
cell represents a biquadratic, 24-node isoparametric hexahedron
cell represents a parabolic, 8-node isoparametric quad
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Topological inquiry to get cells using point.
a cell that represents a 3D point
vtkIdTypeArray * GetFaceLocations()
vtkIdType GetNumberOfCells() override
Determine the number of cells composing the dataset.
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Topological inquiry to get points defining cell.
vtkPolyVertex * PolyVertex
cell represents a 1D line
void SetCells(int type, vtkCellArray *cells)
Special methods specific to vtkUnstructuredGrid for defining the cells composing the dataset.
void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array) override
Fill vtkIdTypeArray container with list of cell Ids.
vtkIdTypeArray * GetFaces()
Get pointer to faces and facelocations.
vtkBiQuadraticQuadraticWedge * BiQuadraticQuadraticWedge
cell represents a parabolic, 13-node isoparametric pyramid
void SetCells(vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations, vtkCellArray *cells)
vtkTriangleStrip * TriangleStrip
int GetCellType(vtkIdType cellId) override
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkBiQuadraticQuadraticHexahedron * BiQuadraticQuadraticHexahedron
a 3D cell that represents a convex prism with pentagonal base
vtkLagrangeCurve * LagrangeCurve
#define VTK_SIZEHINT(...)
cell represents a set of 1D lines
vtkBiQuadraticQuad * BiQuadraticQuad
static vtkUnstructuredGrid * New()
void GetCellBounds(vtkIdType cellId, double bounds[6]) override
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
cell represents a parabolic, 9-node isoparametric quad
static void DecomposeAPolyhedronCell(vtkCellArray *polyhedronCellArray, vtkIdType &nCellpts, vtkIdType &nCellfaces, vtkCellArray *cellArray, vtkIdTypeArray *faces)
A static method for converting a polyhedron vtkCellArray of format [nCellFaces, nFace0Pts,...
cell represents a parabolic, 10-node isoparametric tetrahedron
a 3D cell that represents a linear wedge
static void DecomposeAPolyhedronCell(vtkIdType nCellFaces, const vtkIdType *inFaceStream, vtkIdType &nCellpts, vtkCellArray *cellArray, vtkIdTypeArray *faces)
A static method for converting an input polyhedron cell stream of format [nFace0Pts,...
abstract class to specify cell behavior
vtkIdType InternalInsertNextCell(int type, vtkIdType npts, const vtkIdType ptIds[]) override
cell represents a parabolic, 15-node isoparametric wedge
a cell that represents a parabolic n-sided polygon
static void DecomposeAPolyhedronCell(vtkIdType *polyhedronCellStream, vtkIdType &nCellpts, vtkIdType &nCellfaces, vtkCellArray *cellArray, vtkIdTypeArray *faces)
vtkLagrangeTetra * LagrangeTetra
int IsHomogeneous() override
Traverse cells and determine if cells are all of the same type.
static vtkUnstructuredGrid * GetData(vtkInformationVector *v, int i=0)
static void ConvertFaceStreamPointIds(vtkIdList *faceStream, vtkIdType *idMap)
Convert pid in a face stream into idMap[pid].
a simple class to control print indentation
cell represents a cubic , isoparametric 1D line
object represents upward pointers from points to list of cells using each point
object to represent cell connectivity
void GetFaceStream(vtkIdType cellId, vtkIdType &nfaces, vtkIdType *&ptIds)
Get the number of faces and the face stream of a polyhedral cell.
int InitializeFacesRepresentation(vtkIdType numPrevCells)
Special function used by vtkUnstructuredGridReader.
list of point or cell ids
virtual int GetNumberOfPieces()
A 2D cell that represents an arbitrary order Lagrange triangle.
vtkQuadraticPolygon * QuadraticPolygon
virtual int GetPiece()
Set / Get the piece and the number of pieces.
vtkQuadraticHexahedron * QuadraticHexahedron
void GetCell(vtkIdType cellId, vtkGenericCell *cell) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
cell represents a, 12-node isoparametric wedge
void InternalReplaceCell(vtkIdType cellId, int npts, const vtkIdType pts[]) override
vtkTriQuadraticHexahedron * TriQuadraticHexahedron
vtkIdType InternalInsertNextCell(int type, vtkIdType npts, const vtkIdType ptIds[], vtkIdType nfaces, const vtkIdType faces[]) override
a cell that represents a triangle
vtkLagrangeWedge * LagrangeWedge
cell represents a parabolic, 27-node isoparametric hexahedron
virtual void GetCellPoints(vtkIdType cellId, vtkIdType &npts, vtkIdType *&pts)
static void ConvertFaceStreamPointIds(vtkIdType nfaces, vtkIdType *faceStream, vtkIdType *idMap)
Convert pid in a face stream into idMap[pid].
vtkCellIterator * NewCellIterator() override
Return an iterator that traverses the cells in this data set.
vtkIdType InternalInsertNextCell(int type, vtkIdList *ptIds) override
abstract class to specify dataset behavior
vtkQuadraticWedge * QuadraticWedge
void RemoveReferenceToCell(vtkIdType ptId, vtkIdType cellId)
vtkLagrangeQuadrilateral * LagrangeQuadrilateral
static vtkUnstructuredGrid * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
dynamic, self-adjusting array of vtkIdType
vtkIdType * GetFaces(vtkIdType cellId)
Special support for polyhedron.
void ResizeCellList(vtkIdType ptId, int size)
a cell that represents an orthogonal quadrilateral
A 3D cell that represents an arbitrary order Lagrange tetrahedron.
cell represents a quadratic-linear, 6-node isoparametric quad
vtkIdType InsertNextLinkedCell(int type, int npts, const vtkIdType pts[])
vtkQuadraticLinearWedge * QuadraticLinearWedge
cell represents a parabolic, 18-node isoparametric wedge
provides thread-safe access to cells
vtkLagrangeHexahedron * LagrangeHexahedron
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
vtkIdTypeArray * Locations
vtkPolyhedron * Polyhedron
vtkUnsignedCharArray * Types
dataset represents arbitrary combinations of all possible cell types
void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) override
Topological inquiry to get all cells using list of points exclusive of cell specified (e....
vtkIdTypeArray * GetCellLocationsArray()
Efficient cell iterator for vtkDataSet topologies.
a 3D cell that represents a tetrahedron
#define VTK_UNSTRUCTURED_GRID
vtkConvexPointSet * ConvexPointSet
void Squeeze() override
Reclaim any unused memory.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
general representation of visualization data
A 3D cell that represents an arbitrary order Lagrange hex.
cell represents a parabolic, isoparametric edge
void RemoveGhostCells()
This method will remove any cell that is marked as ghost (has the vtkDataSetAttributes::DUPLICATECELL...
vtkQuadraticTriangle * QuadraticTriangle
vtkCellArray * GetCells()
a 3D cell defined by a set of polygonal faces
a cell that represents a triangle strip
vtkQuadraticLinearQuad * QuadraticLinearQuad
vtkCell * GetCell(vtkIdType cellId) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
void DeepCopy(vtkDataObject *src) override
a cell that represents a 2D quadrilateral
void SetCells(vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations, vtkCellArray *cells, vtkIdTypeArray *faceLocations, vtkIdTypeArray *faces)
vtkCellArray * Connectivity
virtual vtkMTimeType GetMeshMTime()
Return the mesh (geometry/topology) modification time.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkTypeUInt32 vtkMTimeType
cell represents a set of 0D vertices
a cell that represents a 3D orthogonal parallelepiped