VTK: Common/DataModel/vtkBezierWedge.h Source File

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