VTK  9.1.0
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
28class vtkCellData;
29class vtkDoubleArray;
30class vtkIdList;
32class vtkPointData;
33class vtkPoints;
34class vtkQuad;
35class vtkVector3d;
36class vtkVector3i;
37
38class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeQuadrilateral : public vtkHigherOrderQuadrilateral
39{
40public:
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;
51
52protected:
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
60
62
63private:
65 void operator=(const vtkLagrangeQuadrilateral&) = delete;
66};
67
68#endif // vtkLagrangeQuadrilateral_h
represent and manipulate cell attribute data
Definition: vtkCellData.h:142
abstract class to specify cell behavior
Definition: vtkCell.h:147
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkHigherOrderCurve * GetEdgeCell() override
~vtkLagrangeQuadrilateral() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
static vtkLagrangeQuadrilateral * New()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
vtkQuad * GetApproximateQuad(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkNew< vtkLagrangeCurve > EdgeCell
int GetCellType() override
Return the type of cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Allocate and hold a VTK object.
Definition: vtkNew.h:165
represent and manipulate point attribute data
Definition: vtkPointData.h:142
represent and manipulate 3D points
Definition: vtkPoints.h:143
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:95
@ VTK_LAGRANGE_QUADRILATERAL
Definition: vtkCellType.h:151