VTK  9.0.20200706
vtkLagrangeQuadrilateral.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLagrangeQuadrilateral.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 vtkLagrangeQuadrilateral
16 // .SECTION Description
17 // .SECTION See Also
18 
19 #ifndef vtkLagrangeQuadrilateral_h
20 #define vtkLagrangeQuadrilateral_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 vtkLagrangeCurve;
32 class vtkPointData;
33 class vtkPoints;
34 class vtkQuad;
35 class vtkVector3d;
36 class vtkVector3i;
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeQuadrilateral : public vtkHigherOrderQuadrilateral
39 {
40 public:
41  static vtkLagrangeQuadrilateral* New();
43 
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45  int GetCellType() override { return VTK_LAGRANGE_QUADRILATERAL; }
46 
47  vtkCell* GetEdge(int edgeId) override;
48  void InterpolateFunctions(const double pcoords[3], double* weights) override;
49  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
50  vtkHigherOrderCurve* getEdgeCell() override;
51 
52 protected:
53  // The verion of GetApproximateQuad between Lagrange and Bezier is different because Bezier is
54  // non-interpolatory
56  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
57 
59  ~vtkLagrangeQuadrilateral() override;
60 
62 
63 private:
65  void operator=(const vtkLagrangeQuadrilateral&) = delete;
66 };
67 
68 #endif // vtkLagrangeQuadrilateral_h
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkHigherOrderQuadrilateral::InterpolateDerivs
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:32
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkHigherOrderQuadrilateral::InterpolateFunctions
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
vtkHigherOrderCurve
Definition: vtkHigherOrderCurve.h:37
vtkHigherOrderQuadrilateral::GetApproximateQuad
virtual vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
vtkVector3i
Definition: vtkVector.h:462
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:57
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkHigherOrderQuadrilateral
Definition: vtkHigherOrderQuadrilateral.h:40
vtkCellType.h
vtkLagrangeQuadrilateral
Definition: vtkLagrangeQuadrilateral.h:38
vtkSmartPointer.h
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkNew< vtkLagrangeCurve >
vtkHigherOrderQuadrilateral::GetEdge
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
vtkHigherOrderQuadrilateral::getEdgeCell
virtual vtkHigherOrderCurve * getEdgeCell()=0
vtkNew.h
vtkLagrangeCurve
Definition: vtkLagrangeCurve.h:37
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkLagrangeQuadrilateral::EdgeCell
vtkNew< vtkLagrangeCurve > EdgeCell
Definition: vtkLagrangeQuadrilateral.h:61
vtkLagrangeQuadrilateral::GetCellType
int GetCellType() override
Return the type of cell.
Definition: vtkLagrangeQuadrilateral.h:45
vtkVector3d
Definition: vtkVector.h:488
VTK_LAGRANGE_QUADRILATERAL
Definition: vtkCellType.h:111
vtkHigherOrderQuadrilateral::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkQuad
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:35
vtkHigherOrderQuadrilateral.h