VTK  9.3.20240329
vtkLagrangeCurve.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
3 // .NAME vtkLagrangeCurve
4 // .SECTION Description
5 // .SECTION See Also
6 
7 #ifndef vtkLagrangeCurve_h
8 #define vtkLagrangeCurve_h
9 
10 #include "vtkCellType.h" // For GetCellType.
11 #include "vtkCommonDataModelModule.h" // For export macro
12 #include "vtkHigherOrderCurve.h"
13 #include "vtkNew.h" // For member variable.
14 #include "vtkSmartPointer.h" // For member variable.
15 
16 VTK_ABI_NAMESPACE_BEGIN
17 class vtkCellData;
18 class vtkDoubleArray;
19 class vtkIdList;
20 class vtkLine;
21 class vtkPointData;
22 class vtkPoints;
23 class vtkVector3d;
24 class vtkVector3i;
25 
26 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeCurve : public vtkHigherOrderCurve
27 {
28 public:
29  static vtkLagrangeCurve* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32  int GetCellType() override { return VTK_LAGRANGE_CURVE; }
33 
34  void InterpolateFunctions(const double pcoords[3], double* weights) override;
35  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
36 
37 protected:
39  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
41  ~vtkLagrangeCurve() override;
42 
43 private:
44  vtkLagrangeCurve(const vtkLagrangeCurve&) = delete;
45  void operator=(const vtkLagrangeCurve&) = delete;
46 };
47 
48 VTK_ABI_NAMESPACE_END
49 #endif // vtkLagrangeCurve_h
represent and manipulate cell attribute data
Definition: vtkCellData.h:141
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:133
a simple class to control print indentation
Definition: vtkIndent.h:108
vtkLine * GetApproximateLine(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
~vtkLagrangeCurve() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkLagrangeCurve * New()
int GetCellType() override
Return the type of cell.
void InterpolateFunctions(const double pcoords[3], double *weights) override
cell represents a 1D line
Definition: vtkLine.h:132
represent and manipulate point attribute data
Definition: vtkPointData.h:140
represent and manipulate 3D points
Definition: vtkPoints.h:139
@ VTK_LAGRANGE_CURVE
Definition: vtkCellType.h:120