VTK  9.3.20240919
vtkDGTet.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14#ifndef vtkDGTet_h
15#define vtkDGTet_h
16
17#include "vtkFiltersCellGridModule.h" // for export macro
18
19#include "vtkDeRhamCell.h"
20#include "vtkStringToken.h" // for vtkStringToken::Hash
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkCellGrid;
26
27class VTKFILTERSCELLGRID_EXPORT vtkDGTet : public vtkDeRhamCell
28{
29public:
30 static vtkDGTet* New();
31
32 vtkTypeMacro(vtkDGTet, vtkDeRhamCell);
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
42 bool IsInside(const vtkVector3d& rst, double tolerance) override;
43 Shape GetShape() const override { return Shape::Tetrahedron; }
44 int GetDimension() const override { return Dimension; }
45 const std::array<double, 3>& GetCornerParameter(int corner) const override;
46 int GetNumberOfSideTypes() const override;
47 std::pair<int, int> GetSideRangeForType(int sideType) const override;
48 int GetNumberOfSidesOfDimension(int dimension) const override;
49 const std::vector<vtkIdType>& GetSideConnectivity(int side) const override;
50 const std::vector<vtkIdType>& GetSidesOfSide(int side) const override;
51 Shape GetSideShape(int side) const override;
53
54 vtkTypeFloat32Array* GetReferencePoints() const override;
55 vtkTypeInt32Array* GetSideConnectivity() const override;
56 vtkTypeInt32Array* GetSideOffsetsAndShapes() const override;
57
58 static constexpr int Dimension = 3;
59 static const std::array<std::array<double, 3>, 4> Parameters;
60 static const std::array<std::vector<vtkIdType>, 15> Sides;
61 static const std::array<std::vector<vtkIdType>, 15> SidesOfSides;
62 static const std::array<int, Dimension + 2> SideOffsets;
63 static const std::array<Shape, Dimension + 2> SideShapes;
64
65protected:
67 ~vtkDGTet() override;
68
69private:
70 vtkDGTet(const vtkDGTet&) = delete;
71 void operator=(const vtkDGTet&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#endif
RealT rst
Definition TetF2Basis.h:17
A function defined over the physical domain of a vtkCellGrid.
Visualization data composed of cells of arbitrary type.
Definition vtkCellGrid.h:46
Shape
All possible shapes for DG cells.
Definition vtkDGCell.h:71
@ Tetrahedron
A four-cornered volume bounded by 4 triangular shapes.
Definition vtkDGCell.h:76
Metadata for a discontinuous Galerkin tetrahedron.
Definition vtkDGTet.h:28
static const std::array< int, Dimension+2 > SideOffsets
Definition vtkDGTet.h:62
const std::vector< vtkIdType > & GetSidesOfSide(int side) const override
static const std::array< std::vector< vtkIdType >, 15 > Sides
Definition vtkDGTet.h:60
const std::vector< vtkIdType > & GetSideConnectivity(int side) const override
const std::array< double, 3 > & GetCornerParameter(int corner) const override
static const std::array< std::array< double, 3 >, 4 > Parameters
Definition vtkDGTet.h:59
Shape GetSideShape(int side) const override
Shape GetShape() const override
Definition vtkDGTet.h:43
static const std::array< std::vector< vtkIdType >, 15 > SidesOfSides
Definition vtkDGTet.h:61
vtkTypeInt32Array * GetSideOffsetsAndShapes() const override
Return a singleton array initialized with 2-tuples of (offset, shape) values.
vtkTypeFloat32Array * GetReferencePoints() const override
Return a singleton array initialized with the reference-cell's corner point coordinates.
int GetNumberOfSidesOfDimension(int dimension) const override
static const std::array< Shape, Dimension+2 > SideShapes
Definition vtkDGTet.h:63
~vtkDGTet() override
int GetDimension() const override
Definition vtkDGTet.h:44
vtkInheritanceHierarchyOverrideMacro(vtkDGTet)
static vtkDGTet * New()
bool IsInside(const vtkVector3d &rst, double tolerance) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeInt32Array * GetSideConnectivity() const override
Return a singleton array initialized with point-ids of each side's corners.
std::pair< int, int > GetSideRangeForType(int sideType) const override
int GetNumberOfSideTypes() const override
represent and manipulate attribute data in a dataset
Base class for cells that form 2-d or 3-d DeRham complexes.
a simple class to control print indentation
Definition vtkIndent.h:108