22#include "vtkFiltersCellGridModule.h"
29VTK_ABI_NAMESPACE_BEGIN
33class vtkTypeFloat32Array;
34class vtkTypeInt32Array;
189 void operator=(
const vtkDGCell&) =
delete;
A function defined over the physical domain of a vtkCellGrid.
Visualization data composed of cells of arbitrary type.
Base class for a discontinuous Galerkin cells of all shapes.
void FillSideConnectivity(vtkTypeInt32Array *arr) const
Fill the passed array with the connectivity (point IDs) of all the element's sides.
virtual const std::array< double, 3 > & GetCornerParameter(int corner) const =0
Return the coordinates of the reference element's corner vertex.
Shape
All possible shapes for DG cells.
@ Hexahedron
An eight-cornered volume; a quadrilateral prism.
@ Triangle
A three-cornered face bounded by 3 edges.
@ Tetrahedron
A four-cornered volume bounded by 4 triangular shapes.
@ Quadrilateral
A four-cornered face bounded by 4 edges.
@ Wedge
A volumetric, triangular prism.
@ Edge
A curve connecting two vertices.
static int GetShapeDimension(Shape shape)
virtual Shape GetSideShape(int side) const =0
For a given side, return its cell shape.
static int GetShapeCornerCount(Shape shape)
void FillReferencePoints(vtkTypeFloat32Array *arr) const
Fill the passed array with the parametric coordinates of all the element's corners.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual Shape GetShape() const =0
Return the topological shape of this cell type.
virtual const std::vector< vtkIdType > & GetSideConnectivity(int side) const =0
Return the connectivity of the given side.
virtual vtkTypeInt32Array * GetSideConnectivity() const =0
Return a singleton array initialized with point-ids of each side's corners.
void FillSideOffsetsAndShapes(vtkTypeInt32Array *arr) const
Fill the passed array with tuples of (1) offsets into the side-connectivity and (2) shapes for each t...
virtual vtkTypeFloat32Array * GetReferencePoints() const =0
Return a singleton array initialized with the reference-cell's corner point coordinates.
virtual std::pair< int, int > GetSideRangeForType(int sideType) const =0
Return the range of sides of the ii-th type, where ii is in [0, this->GetNumberOfSideTypes()[.
virtual int GetDimension() const
Return the parametric dimension of this cell type (0, 1, 2, or 3).
virtual int GetNumberOfSideTypes() const =0
Return the number of different side shapes of this cell type.
virtual vtkTypeInt32Array * GetSideOffsetsAndShapes() const =0
Return a singleton array initialized with 2-tuples of (offset, shape) values.
static vtkStringToken GetShapeName(Shape shape)
virtual int GetNumberOfSidesOfDimension(int dimension) const =0
Return the number of boundaries this type of cell has of a given dimension.
virtual int GetNumberOfCorners() const
Return the number of corner points for this cell type.
represent and manipulate attribute data in a dataset
a simple class to control print indentation
Represent a string by its integer hash.