VTK  9.4.20250102
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
16VTK_ABI_NAMESPACE_BEGIN
17class vtkCellData;
18class vtkDoubleArray;
19class vtkIdList;
20class vtkBezierCurve;
21class vtkPointData;
22class vtkPoints;
23class vtkQuad;
24class vtkVector3d;
25class vtkVector3i;
26class vtkDataSet;
27
28class VTKCOMMONDATAMODEL_EXPORT vtkBezierQuadrilateral : public vtkHigherOrderQuadrilateral
29{
30public:
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
45protected:
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
57private:
59 void operator=(const vtkBezierQuadrilateral&) = delete;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif // vtkBezierQuadrilateral_h
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkNew< vtkBezierCurve > EdgeCell
void SetRationalWeightsFromPointData(vtkPointData *point_data, vtkIdType numPts)
~vtkBezierQuadrilateral() override
vtkHigherOrderCurve * GetEdgeCell() override
vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
vtkNew< vtkDoubleArray > RationalWeights
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.
static vtkBezierQuadrilateral * New()
vtkDoubleArray * GetRationalWeights()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
void InterpolateDerivs(const double pcoords[3], double *derivs) override
represent and manipulate cell attribute data
abstract class to specify cell behavior
Definition vtkCell.h:130
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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
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_BEZIER_QUADRILATERAL
int vtkIdType
Definition vtkType.h:315