VTK  9.4.20241221
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
16VTK_ABI_NAMESPACE_BEGIN
17class vtkCellData;
18class vtkDoubleArray;
19class vtkIdList;
21class vtkPointData;
22class vtkPoints;
23class vtkQuad;
24class vtkVector3d;
25class vtkVector3i;
26
27class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeQuadrilateral : public vtkHigherOrderQuadrilateral
28{
29public:
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
41protected:
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
52private:
54 void operator=(const vtkLagrangeQuadrilateral&) = delete;
55};
56
57VTK_ABI_NAMESPACE_END
58#endif // vtkLagrangeQuadrilateral_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
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
vtkHigherOrderCurve * GetEdgeCell() override
~vtkLagrangeQuadrilateral() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
static vtkLagrangeQuadrilateral * New()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
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.
Allocate and hold a VTK object.
Definition vtkNew.h:167
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:139
a cell that represents a 2D quadrilateral
Definition vtkQuad.h:87
@ VTK_LAGRANGE_QUADRILATERAL