VTK  9.3.20240419
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:
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 
48 
49 protected:
52 
56 
57 private:
59  void operator=(const vtkLagrangeTriangle&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
abstract class to specify cell behavior
Definition: vtkCell.h:130
dynamic, self-adjusting array of double
A 2D cell that represents an arbitrary order HigherOrder triangle.
a simple class to control print indentation
Definition: vtkIndent.h:108
A 2D cell that represents an arbitrary order Lagrange triangle.
int GetCellType() override
Return the type of cell.
~vtkLagrangeTriangle() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
vtkIdType ComputeNumberOfSubtriangles()
vtkIdType GetNumberOfSubtriangles() const
vtkNew< vtkLagrangeCurve > EdgeCell
vtkHigherOrderCurve * GetEdgeCell() override
void InterpolateFunctions(const double pcoords[3], double *weights) override
static vtkLagrangeTriangle * 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.
a cell that represents a triangle
Definition: vtkTriangle.h:137
@ VTK_LAGRANGE_TRIANGLE
Definition: vtkCellType.h:121
int vtkIdType
Definition: vtkType.h:315