VTK  9.3.0
vtkBezierQuadrilateral.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 vtkBezierQuadrilateral
4 // .SECTION Description
5 // .SECTION See Also
6 
7 #ifndef vtkBezierQuadrilateral_h
8 #define vtkBezierQuadrilateral_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 vtkBezierCurve;
21 class vtkPointData;
22 class vtkPoints;
23 class vtkQuad;
24 class vtkVector3d;
25 class vtkVector3i;
26 class vtkDataSet;
27 
28 class VTKCOMMONDATAMODEL_EXPORT vtkBezierQuadrilateral : public vtkHigherOrderQuadrilateral
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
35  int GetCellType() override { return VTK_BEZIER_QUADRILATERAL; }
36 
37  vtkCell* GetEdge(int edgeId) override;
38  void InterpolateFunctions(const double pcoords[3], double* weights) override;
39  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
40 
44 
45 protected:
46  // The version of GetApproximateQuad between Lagrange and Bezier is different because Bezier is
47  // non-interpolatory
49  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
50 
53 
56 
57 private:
59  void operator=(const vtkBezierQuadrilateral&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif // vtkBezierQuadrilateral_h
void InterpolateFunctions(const double pcoords[3], double *weights) override
static vtkBezierQuadrilateral * New()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
vtkNew< vtkBezierCurve > EdgeCell
void SetRationalWeightsFromPointData(vtkPointData *point_data, vtkIdType numPts)
~vtkBezierQuadrilateral() override
vtkDoubleArray * GetRationalWeights()
vtkNew< vtkDoubleArray > RationalWeights
vtkHigherOrderCurve * GetEdgeCell() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetCellType() override
Return the type of cell.
vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
represent and manipulate cell attribute data
Definition: vtkCellData.h:31
abstract class to specify cell behavior
Definition: vtkCell.h:50
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:45
abstract class to specify dataset behavior
Definition: vtkDataSet.h:53
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:23
a simple class to control print indentation
Definition: vtkIndent.h:29
represent and manipulate point attribute data
Definition: vtkPointData.h:30
represent and manipulate 3D points
Definition: vtkPoints.h:29
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:28
@ VTK_BEZIER_QUADRILATERAL
Definition: vtkCellType.h:112
int vtkIdType
Definition: vtkType.h:315