VTK  9.0.3
vtkBezierQuadrilateral.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBezierQuadrilateral.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 // .NAME vtkBezierQuadrilateral
16 // .SECTION Description
17 // .SECTION See Also
18 
19 #ifndef vtkBezierQuadrilateral_h
20 #define vtkBezierQuadrilateral_h
21 
22 #include "vtkCellType.h" // For GetCellType.
23 #include "vtkCommonDataModelModule.h" // For export macro
25 #include "vtkNew.h" // For member variable.
26 #include "vtkSmartPointer.h" // For member variable.
27 
28 class vtkCellData;
29 class vtkDoubleArray;
30 class vtkIdList;
31 class vtkBezierCurve;
32 class vtkPointData;
33 class vtkPoints;
34 class vtkQuad;
35 class vtkVector3d;
36 class vtkVector3i;
37 class vtkDataSet;
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkBezierQuadrilateral : public vtkHigherOrderQuadrilateral
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
46  int GetCellType() override { return VTK_BEZIER_QUADRILATERAL; }
47 
48  vtkCell* GetEdge(int edgeId) override;
50  int& subId, const vtkIdType point_id, double x[3], double* weights);
51  void InterpolateFunctions(const double pcoords[3], double* weights) override;
52  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
53 
54  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
56  virtual vtkHigherOrderCurve* getEdgeCell() override;
57 
58 protected:
59  // The verion of GetApproximateQuad between Lagrange and Bezier is different because Bezier is
60  // non-interpolatory
62  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
63 
66 
69 
70 private:
72  void operator=(const vtkBezierQuadrilateral&) = delete;
73 };
74 
75 #endif // vtkBezierQuadrilateral_h
void EvaluateLocationProjectedNode(int &subId, const vtkIdType point_id, double x[3], double *weights)
void InterpolateFunctions(const double pcoords[3], double *weights) override
static vtkBezierQuadrilateral * New()
void SetRationalWeightsFromPointData(vtkPointData *point_data, const vtkIdType numPts)
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
vtkNew< vtkBezierCurve > EdgeCell
~vtkBezierQuadrilateral() override
vtkDoubleArray * GetRationalWeights()
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.
vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
virtual vtkHigherOrderCurve * getEdgeCell() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
represent and manipulate cell attribute data
Definition: vtkCellData.h:33
abstract class to specify cell behavior
Definition: vtkCell.h:57
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:31
a simple class to control print indentation
Definition: vtkIndent.h:34
represent and manipulate point attribute data
Definition: vtkPointData.h:32
represent and manipulate 3D points
Definition: vtkPoints.h:34
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:36
@ VTK_BEZIER_QUADRILATERAL
Definition: vtkCellType.h:120
int vtkIdType
Definition: vtkType.h:338