VTK  9.1.0
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
24 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
26 #include "vtkNew.h" // For member variable.
27 #include "vtkSmartPointer.h" // For member variable.
28 
29 class vtkCellData;
30 class vtkDoubleArray;
31 class vtkIdList;
32 class vtkBezierCurve;
33 class vtkPointData;
34 class vtkPoints;
35 class vtkQuad;
36 class vtkVector3d;
37 class vtkVector3i;
38 class vtkDataSet;
39 
40 class VTKCOMMONDATAMODEL_EXPORT vtkBezierQuadrilateral : public vtkHigherOrderQuadrilateral
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47  int GetCellType() override { return VTK_BEZIER_QUADRILATERAL; }
48 
49  vtkCell* GetEdge(int edgeId) override;
51  "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
52  void EvaluateLocationProjectedNode(
53  int& subId, const vtkIdType point_id, double x[3], double* weights);
54  void InterpolateFunctions(const double pcoords[3], double* weights) override;
55  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
56 
57  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
58  vtkDoubleArray* GetRationalWeights();
59  vtkHigherOrderCurve* GetEdgeCell() override;
60 
61 protected:
62  // The verion of GetApproximateQuad between Lagrange and Bezier is different because Bezier is
63  // non-interpolatory
64  vtkQuad* GetApproximateQuad(
65  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
66 
69 
70  vtkNew<vtkDoubleArray> RationalWeights;
72 
73 private:
75  void operator=(const vtkBezierQuadrilateral&) = delete;
76 };
77 
78 #endif // vtkBezierQuadrilateral_h
static vtkBezierQuadrilateral * New()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
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.
represent and manipulate cell attribute data
Definition: vtkCellData.h:33
abstract class to specify cell behavior
Definition: vtkCell.h:58
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
Allocate and hold a VTK object.
Definition: vtkNew.h:56
represent and manipulate point attribute data
Definition: vtkPointData.h:33
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:121
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332