VTK  9.3.1
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:
31  static vtkBezierQuadrilateral* New();
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 
41  void SetRationalWeightsFromPointData(vtkPointData* point_data, vtkIdType numPts);
42  vtkDoubleArray* GetRationalWeights();
43  vtkHigherOrderCurve* GetEdgeCell() override;
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 
52  ~vtkBezierQuadrilateral() override;
53 
56 
57 private:
59  void operator=(const vtkBezierQuadrilateral&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif // vtkBezierQuadrilateral_h
represent and manipulate point attribute data
Definition: vtkPointData.h:29
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate cell attribute data
Definition: vtkCellData.h:30
vtkNew< vtkBezierCurve > EdgeCell
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:27
int vtkIdType
Definition: vtkType.h:315
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:49
vtkNew< vtkDoubleArray > RationalWeights
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual vtkHigherOrderCurve * GetEdgeCell()=0
int GetCellType() override
Return the type of cell.
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
virtual vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
represent and manipulate 3D points
Definition: vtkPoints.h:28