VTK  9.3.1
vtkLagrangeTriangle.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
22 #ifndef vtkLagrangeTriangle_h
23 #define vtkLagrangeTriangle_h
24 
25 #include "vtkCommonDataModelModule.h" // For export macro
26 #include "vtkHigherOrderTriangle.h"
27 
28 #include <vector> // For caching
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkDoubleArray;
32 class vtkLagrangeCurve;
33 class vtkTriangle;
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeTriangle : public vtkHigherOrderTriangle
36 {
37 public:
38  static vtkLagrangeTriangle* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41  int GetCellType() override { return VTK_LAGRANGE_TRIANGLE; }
42 
43  vtkCell* GetEdge(int edgeId) override;
44  void InterpolateFunctions(const double pcoords[3], double* weights) override;
45  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
46 
47  vtkHigherOrderCurve* GetEdgeCell() override;
48 
49 protected:
51  ~vtkLagrangeTriangle() override;
52 
56 
57 private:
59  void operator=(const vtkLagrangeTriangle&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
int GetCellType() override
Return the type of cell.
virtual vtkHigherOrderCurve * GetEdgeCell()=0
int vtkIdType
Definition: vtkType.h:315
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
dynamic, self-adjusting array of double
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
abstract class to specify cell behavior
Definition: vtkCell.h:49
A 2D cell that represents an arbitrary order Lagrange triangle.
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkIdType GetNumberOfSubtriangles() const
vtkNew< vtkLagrangeCurve > EdgeCell
a cell that represents a triangle
Definition: vtkTriangle.h:27
A 2D cell that represents an arbitrary order HigherOrder triangle.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
vtkIdType ComputeNumberOfSubtriangles()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.