VTK  9.3.0
vtkLagrangeQuadrilateral.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
3 // .NAME vtkLagrangeQuadrilateral
4 // .SECTION Description
5 // .SECTION See Also
6 
7 #ifndef vtkLagrangeQuadrilateral_h
8 #define vtkLagrangeQuadrilateral_h
9 
10 #include "vtkCellType.h" // For GetCellType.
11 #include "vtkCommonDataModelModule.h" // For export macro
13 #include "vtkNew.h" // For member variable.
14 #include "vtkSmartPointer.h" // For member variable.
15 
16 VTK_ABI_NAMESPACE_BEGIN
17 class vtkCellData;
18 class vtkDoubleArray;
19 class vtkIdList;
20 class vtkLagrangeCurve;
21 class vtkPointData;
22 class vtkPoints;
23 class vtkQuad;
24 class vtkVector3d;
25 class vtkVector3i;
26 
27 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeQuadrilateral : public vtkHigherOrderQuadrilateral
28 {
29 public:
32 
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34  int GetCellType() override { return VTK_LAGRANGE_QUADRILATERAL; }
35 
36  vtkCell* GetEdge(int edgeId) override;
37  void InterpolateFunctions(const double pcoords[3], double* weights) override;
38  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
40 
41 protected:
42  // The version of GetApproximateQuad between Lagrange and Bezier is different because Bezier is
43  // non-interpolatory
45  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
46 
49 
51 
52 private:
54  void operator=(const vtkLagrangeQuadrilateral&) = delete;
55 };
56 
57 VTK_ABI_NAMESPACE_END
58 #endif // vtkLagrangeQuadrilateral_h
represent and manipulate cell attribute data
Definition: vtkCellData.h:40
abstract class to specify cell behavior
Definition: vtkCell.h:59
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:32
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkHigherOrderCurve * GetEdgeCell() override
static vtkLagrangeQuadrilateral * New()
~vtkLagrangeQuadrilateral() override
vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkNew< vtkLagrangeCurve > EdgeCell
int GetCellType() override
Return the type of cell.
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:39
represent and manipulate 3D points
Definition: vtkPoints.h:38
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:37
@ VTK_LAGRANGE_QUADRILATERAL
Definition: vtkCellType.h:112