VTK  9.2.6
vtkLagrangeTriangle.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLagrangeTriangle.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 =========================================================================*/
34 #ifndef vtkLagrangeTriangle_h
35 #define vtkLagrangeTriangle_h
36 
37 #include "vtkCommonDataModelModule.h" // For export macro
38 #include "vtkHigherOrderTriangle.h"
39 
40 #include <vector> // For caching
41 
42 class vtkDoubleArray;
43 class vtkLagrangeCurve;
44 class vtkTriangle;
45 
46 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeTriangle : public vtkHigherOrderTriangle
47 {
48 public:
49  static vtkLagrangeTriangle* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52  int GetCellType() override { return VTK_LAGRANGE_TRIANGLE; }
53 
54  vtkCell* GetEdge(int edgeId) override;
55  void InterpolateFunctions(const double pcoords[3], double* weights) override;
56  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
57 
58  vtkHigherOrderCurve* GetEdgeCell() override;
59 
60 protected:
62  ~vtkLagrangeTriangle() override;
63 
67 
68 private:
70  void operator=(const vtkLagrangeTriangle&) = delete;
71 };
72 
73 #endif
int GetCellType() override
Return the type of cell.
virtual vtkHigherOrderCurve * GetEdgeCell()=0
int vtkIdType
Definition: vtkType.h:332
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:60
A 2D cell that represents an arbitrary order Lagrange triangle.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIdType GetNumberOfSubtriangles() const
vtkNew< vtkLagrangeCurve > EdgeCell
a cell that represents a triangle
Definition: vtkTriangle.h:38
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.