VTK  9.2.6
vtkLagrangeCurve.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLagrangeCurve.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 vtkLagrangeCurve
16 // .SECTION Description
17 // .SECTION See Also
18 
19 #ifndef vtkLagrangeCurve_h
20 #define vtkLagrangeCurve_h
21 
22 #include "vtkCellType.h" // For GetCellType.
23 #include "vtkCommonDataModelModule.h" // For export macro
24 #include "vtkHigherOrderCurve.h"
25 #include "vtkNew.h" // For member variable.
26 #include "vtkSmartPointer.h" // For member variable.
27 
28 class vtkCellData;
29 class vtkDoubleArray;
30 class vtkIdList;
31 class vtkLine;
32 class vtkPointData;
33 class vtkPoints;
34 class vtkVector3d;
35 class vtkVector3i;
36 
37 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeCurve : public vtkHigherOrderCurve
38 {
39 public:
40  static vtkLagrangeCurve* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43  int GetCellType() override { return VTK_LAGRANGE_CURVE; }
44 
45  void InterpolateFunctions(const double pcoords[3], double* weights) override;
46  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
47 
48 protected:
50  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
52  ~vtkLagrangeCurve() override;
53 
54 private:
55  vtkLagrangeCurve(const vtkLagrangeCurve&) = delete;
56  void operator=(const vtkLagrangeCurve&) = delete;
57 };
58 
59 #endif // vtkLagrangeCurve_h
represent and manipulate point attribute data
Definition: vtkPointData.h:41
represent and manipulate cell attribute data
Definition: vtkCellData.h:41
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
dynamic, self-adjusting array of double
cell represents a 1D line
Definition: vtkLine.h:33
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
virtual vtkLine * GetApproximateLine(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
int GetCellType() override
Return the type of cell.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.