VTK  9.3.1
vtkLagrangeHexahedron.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
17 #ifndef vtkLagrangeHexahedron_h
18 #define vtkLagrangeHexahedron_h
19 
20 #include "vtkCellType.h" // For GetCellType.
21 #include "vtkCommonDataModelModule.h" // For export macro
23 #include "vtkNew.h" // For member variable.
24 #include "vtkSmartPointer.h" // For member variable.
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkCellData;
28 class vtkDoubleArray;
29 class vtkHexahedron;
30 class vtkIdList;
31 class vtkLagrangeCurve;
34 class vtkPointData;
35 class vtkPoints;
36 class vtkVector3d;
37 class vtkVector3i;
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeHexahedron : public vtkHigherOrderHexahedron
40 {
41 public:
42  static vtkLagrangeHexahedron* New();
44 
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46  int GetCellType() override { return VTK_LAGRANGE_HEXAHEDRON; }
47  vtkCell* GetEdge(int edgeId) override;
48  vtkCell* GetFace(int faceId) override;
49  void InterpolateFunctions(const double pcoords[3], double* weights) override;
50  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
51  vtkHigherOrderCurve* GetEdgeCell() override;
54 
55 protected:
57  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
59  ~vtkLagrangeHexahedron() override;
60 
64 
65 private:
67  void operator=(const vtkLagrangeHexahedron&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif // vtkLagrangeHexahedron_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate point attribute data
Definition: vtkPointData.h:29
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
vtkNew< vtkLagrangeInterpolation > Interp
virtual vtkHexahedron * GetApproximateHex(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
represent and manipulate cell attribute data
Definition: vtkCellData.h:30
virtual vtkHigherOrderQuadrilateral * GetFaceCell()=0
vtkNew< vtkLagrangeQuadrilateral > FaceCell
int GetCellType() override
Return the type of cell.
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:49
vtkCell * GetFace(int faceId) override=0
Return the face cell from the faceId of the cell.
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual vtkHigherOrderInterpolation * GetInterpolation()=0
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:33
A 3D cell that represents an arbitrary order HigherOrder hex.
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
virtual vtkHigherOrderCurve * GetEdgeCell()=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A 3D cell that represents an arbitrary order Lagrange hex.
vtkNew< vtkLagrangeCurve > EdgeCell
represent and manipulate 3D points
Definition: vtkPoints.h:28