VTK  9.3.20240425
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
26VTK_ABI_NAMESPACE_BEGIN
27class vtkCellData;
28class vtkDoubleArray;
29class vtkHexahedron;
30class vtkIdList;
34class vtkPointData;
35class vtkPoints;
36class vtkVector3d;
37class vtkVector3i;
38
39class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeHexahedron : public vtkHigherOrderHexahedron
40{
41public:
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;
54
55protected:
57 int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
60
64
65private:
67 void operator=(const vtkLagrangeHexahedron&) = delete;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif // vtkLagrangeHexahedron_h
represent and manipulate cell attribute data
abstract class to specify cell behavior
Definition vtkCell.h:130
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of double
a cell that represents a linear 3D hexahedron
A 3D cell that represents an arbitrary order HigherOrder hex.
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
A 3D cell that represents an arbitrary order Lagrange hex.
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
static vtkLagrangeHexahedron * New()
int GetCellType() override
Return the type of cell.
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkNew< vtkLagrangeInterpolation > Interp
vtkHexahedron * GetApproximateHex(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
vtkHigherOrderCurve * GetEdgeCell() override
vtkNew< vtkLagrangeCurve > EdgeCell
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
vtkHigherOrderInterpolation * GetInterpolation() override
vtkHigherOrderQuadrilateral * GetFaceCell() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkLagrangeQuadrilateral > FaceCell
~vtkLagrangeHexahedron() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
Allocate and hold a VTK object.
Definition vtkNew.h:160
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:139
@ VTK_LAGRANGE_HEXAHEDRON