VTK  9.7.1
vtkBezierWedge.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
23 #ifndef vtkBezierWedge_h
24 #define vtkBezierWedge_h
25 
26 #include "vtkCellType.h" // For GetCellType.
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkHigherOrderWedge.h"
29 #include "vtkNew.h" // For member variable.
30 #include "vtkSmartPointer.h" // For member variable.
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkCellData;
34 class vtkDoubleArray;
35 class vtkWedge;
36 class vtkIdList;
37 class vtkPointData;
38 class vtkPoints;
39 class vtkVector3d;
40 class vtkVector3i;
41 class vtkBezierCurve;
44 class vtkBezierTriangle;
45 class vtkDataSet;
46 
47 class VTKCOMMONDATAMODEL_EXPORT vtkBezierWedge : public vtkHigherOrderWedge
48 {
49 public:
50  static vtkBezierWedge* New();
52 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54  int GetCellType() override { return VTK_BEZIER_WEDGE; }
55  vtkCell* GetEdge(int edgeId) override;
56  vtkCell* GetFace(int faceId) override;
57  void InterpolateFunctions(const double pcoords[3], double* weights) override;
58  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
59 
60  void SetRationalWeightsFromPointData(vtkPointData* point_data, vtkIdType numPts);
61 
64  vtkHigherOrderCurve* GetEdgeCell() override;
66 
67  vtkDoubleArray* GetRationalWeights();
68 
69 protected:
71  ~vtkBezierWedge() override;
72 
79 
80 private:
81  vtkBezierWedge(const vtkBezierWedge&) = delete;
82  void operator=(const vtkBezierWedge&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #endif // vtkBezierWedge_h
virtual vtkHigherOrderCurve * GetEdgeCell()=0
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkBezierCurve > BdyEdge
represent and manipulate point attribute data
Definition: vtkPointData.h:30
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
represent and manipulate cell attribute data
Definition: vtkCellData.h:31
A 2D cell that represents an arbitrary order Bezier triangle.
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
Compute the interpolation functions/derivatives (aka shape functions/derivatives) No-ops at this leve...
int vtkIdType
Definition: vtkType.h:363
vtkNew< vtkBezierInterpolation > Interp
virtual vtkHigherOrderQuadrilateral * GetBoundaryQuad()=0
vtkNew< vtkBezierCurve > EdgeCell
dynamic, self-adjusting array of double
int GetCellType() override
Return the type of cell.
abstract class to specify cell behavior
Definition: vtkCell.h:50
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:25
virtual vtkHigherOrderTriangle * GetBoundaryTri()=0
A 3D cell that represents an arbitrary order HigherOrder wedge.
A 3D cell that represents an arbitrary order Bezier wedge.
vtkNew< vtkDoubleArray > RationalWeights
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
vtkNew< vtkBezierTriangle > BdyTri
A 2D cell that represents an arbitrary order HigherOrder triangle.
vtkCell * GetFace(int faceId) override=0
Return the face cell from the faceId of the cell.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkNew< vtkBezierQuadrilateral > BdyQuad
a 3D cell that represents a linear wedge
Definition: vtkWedge.h:35
virtual vtkHigherOrderInterpolation * GetInterpolation()=0
represent and manipulate 3D points
Definition: vtkPoints.h:30