VTK  9.1.0
vtkLagrangeInterpolation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLagrangeInterpolation.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 vtkLagrangeInterpolation
16// .SECTION Description
17// .SECTION See Also
18#ifndef vtkLagrangeInterpolation_h
19#define vtkLagrangeInterpolation_h
20
21#include "vtkCommonDataModelModule.h" // For export macro.
23#include "vtkSmartPointer.h" // For API.
24
25#include <vector> // For scratch storage.
26
27// Define this to include support for a "complete" (21- vs 18-point) wedge.
28#define VTK_21_POINT_WEDGE true
29
30class vtkPoints;
31class vtkVector2i;
32class vtkVector3d;
33
34class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeInterpolation : public vtkHigherOrderInterpolation
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
40
41 static void EvaluateShapeFunctions(const int order, const double pcoord, double* shape);
43 const int order, const double pcoord, double* shape, double* grad);
44
45 static int Tensor1ShapeFunctions(const int order[1], const double* pcoords, double* shape);
46 static int Tensor1ShapeDerivatives(const int order[1], const double* pcoords, double* derivs);
47
48 static int Tensor2ShapeFunctions(const int order[2], const double* pcoords, double* shape);
49 static int Tensor2ShapeDerivatives(const int order[2], const double* pcoords, double* derivs);
50
51 static int Tensor3ShapeFunctions(const int order[3], const double* pcoords, double* shape);
52 static int Tensor3ShapeDerivatives(const int order[3], const double* pcoords, double* derivs);
53
54 void Tensor3EvaluateDerivative(const int order[3], const double* pcoords, vtkPoints* points,
55 const double* fieldVals, int fieldDim, double* fieldDerivs) override;
56
58 const int order[3], const vtkIdType numberOfPoints, const double* pcoords, double* shape);
60 const int order[3], const vtkIdType numberOfPoints, const double* pcoords, double* derivs);
61
62 void WedgeEvaluate(const int order[3], const vtkIdType numberOfPoints, const double* pcoords,
63 double* fieldVals, int fieldDim, double* fieldAtPCoords) override;
64
65 void WedgeEvaluateDerivative(const int order[3], const double* pcoords, vtkPoints* points,
66 const double* fieldVals, int fieldDim, double* fieldDerivs) override;
67
68protected:
71
72private:
74 void operator=(const vtkLagrangeInterpolation&) = delete;
75};
76
77#endif // vtkLagrangeInterpolation_h
a simple class to control print indentation
Definition: vtkIndent.h:113
static void EvaluateShapeFunctions(const int order, const double pcoord, double *shape)
~vtkLagrangeInterpolation() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static int Tensor1ShapeDerivatives(const int order[1], const double *pcoords, double *derivs)
static int Tensor3ShapeFunctions(const int order[3], const double *pcoords, double *shape)
static vtkLagrangeInterpolation * New()
static void WedgeShapeDerivatives(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *derivs)
static int Tensor3ShapeDerivatives(const int order[3], const double *pcoords, double *derivs)
void WedgeEvaluateDerivative(const int order[3], const double *pcoords, vtkPoints *points, const double *fieldVals, int fieldDim, double *fieldDerivs) override
void Tensor3EvaluateDerivative(const int order[3], const double *pcoords, vtkPoints *points, const double *fieldVals, int fieldDim, double *fieldDerivs) override
void WedgeEvaluate(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *fieldVals, int fieldDim, double *fieldAtPCoords) override
static int Tensor2ShapeFunctions(const int order[2], const double *pcoords, double *shape)
static void EvaluateShapeAndGradient(const int order, const double pcoord, double *shape, double *grad)
static int Tensor1ShapeFunctions(const int order[1], const double *pcoords, double *shape)
static int Tensor2ShapeDerivatives(const int order[2], const double *pcoords, double *derivs)
static void WedgeShapeFunctions(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *shape)
represent and manipulate 3D points
Definition: vtkPoints.h:143
Some derived classes for the different vectors commonly used.
Definition: vtkVector.h:478
@ points
Definition: vtkX3D.h:452
@ order
Definition: vtkX3D.h:446
int vtkIdType
Definition: vtkType.h:332