VTK  9.3.1
vtkBezierHexahedron.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
17 #ifndef vtkBezierHexahedron_h
18 #define vtkBezierHexahedron_h
19 
20 #include "vtkCellType.h" // For GetCellType.
21 #include "vtkCommonDataModelModule.h" // For export macro
23 #include "vtkNew.h" // For member variable.
24 #include "vtkSmartPointer.h" // For member variable.
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkCellData;
28 class vtkDoubleArray;
29 class vtkHexahedron;
30 class vtkIdList;
31 class vtkBezierCurve;
34 class vtkPointData;
35 class vtkPoints;
36 class vtkVector3d;
37 class vtkVector3i;
38 class vtkDataSet;
39 
40 class VTKCOMMONDATAMODEL_EXPORT vtkBezierHexahedron : public vtkHigherOrderHexahedron
41 {
42 public:
43  static vtkBezierHexahedron* New();
45 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47  int GetCellType() override { return VTK_BEZIER_HEXAHEDRON; }
48  vtkCell* GetEdge(int edgeId) override;
49  vtkCell* GetFace(int faceId) override;
50  void InterpolateFunctions(const double pcoords[3], double* weights) override;
51  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
52 
53  void SetRationalWeightsFromPointData(vtkPointData* point_data, vtkIdType numPts);
54 
55  vtkDoubleArray* GetRationalWeights();
56  vtkHigherOrderCurve* GetEdgeCell() override;
59 
60 protected:
62  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
64  ~vtkBezierHexahedron() override;
65 
70 
71 private:
73  void operator=(const vtkBezierHexahedron&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif // vtkBezierHexahedron_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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
virtual vtkHexahedron * GetApproximateHex(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
represent and manipulate cell attribute data
Definition: vtkCellData.h:30
virtual vtkHigherOrderQuadrilateral * GetFaceCell()=0
A 3D cell that represents an arbitrary order Bezier hex.
int vtkIdType
Definition: vtkType.h:315
vtkNew< vtkBezierCurve > EdgeCell
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:49
vtkCell * GetFace(int faceId) override=0
Return the face cell from the faceId of the cell.
a simple class to control print indentation
Definition: vtkIndent.h:28
int GetCellType() override
Return the type of cell.
list of point or cell ids
Definition: vtkIdList.h:22
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual vtkHigherOrderInterpolation * GetInterpolation()=0
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:33
vtkNew< vtkBezierQuadrilateral > FaceCell
vtkNew< vtkDoubleArray > RationalWeights
A 3D cell that represents an arbitrary order HigherOrder hex.
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
virtual vtkHigherOrderCurve * GetEdgeCell()=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkNew< vtkBezierInterpolation > Interp
represent and manipulate 3D points
Definition: vtkPoints.h:28