VTK  9.4.20250206
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
27
28#include <vector> // For caching
29
30VTK_ABI_NAMESPACE_BEGIN
31class vtkDoubleArray;
33class vtkTriangle;
34
35class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeTriangle : public vtkHigherOrderTriangle
36{
37public:
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
49protected:
52
56
57private:
59 void operator=(const vtkLagrangeTriangle&) = delete;
60};
61
62VTK_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
static vtkLagrangeTriangle * New()
void InterpolateDerivs(const double pcoords[3], double *derivs) override
vtkIdType ComputeNumberOfSubtriangles()
vtkIdType GetNumberOfSubtriangles() const
vtkNew< vtkLagrangeCurve > EdgeCell
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkHigherOrderCurve * GetEdgeCell() override
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.
Allocate and hold a VTK object.
Definition vtkNew.h:167
a cell that represents a triangle
@ VTK_LAGRANGE_TRIANGLE
int vtkIdType
Definition vtkType.h:315