VTK  9.3.0
vtkBezierCurve.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Kevin Tew
3 // SPDX-License-Identifier: BSD-3-Clause
4 // .NAME vtkBezierCurve
5 // .SECTION Description
6 // .SECTION See Also
7 
8 #ifndef vtkBezierCurve_h
9 #define vtkBezierCurve_h
10 
11 #include "vtkCellType.h" // For GetCellType.
12 #include "vtkCommonDataModelModule.h" // For export macro
13 #include "vtkHigherOrderCurve.h"
14 #include "vtkNew.h" // For member variable.
15 #include "vtkSmartPointer.h" // For member variable.
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkCellData;
19 class vtkDoubleArray;
20 class vtkIdList;
21 class vtkLine;
22 class vtkPointData;
23 class vtkPoints;
24 class vtkVector3d;
25 class vtkVector3i;
26 class vtkDataSet;
27 
28 class VTKCOMMONDATAMODEL_EXPORT vtkBezierCurve : public vtkHigherOrderCurve
29 {
30 public:
31  static vtkBezierCurve* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
35  int GetCellType() override { return VTK_BEZIER_CURVE; }
37  void InterpolateFunctions(const double pcoords[3], double* weights) override;
38  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
39 
41 
42 protected:
44  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
46  ~vtkBezierCurve() override;
47 
49 
50 private:
51  vtkBezierCurve(const vtkBezierCurve&) = delete;
52  void operator=(const vtkBezierCurve&) = delete;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif // vtkBezierCurve_h
vtkDoubleArray * GetRationalWeights()
~vtkBezierCurve() override
vtkNew< vtkDoubleArray > RationalWeights
static vtkBezierCurve * New()
int GetCellType() override
Return the type of cell.
vtkLine * GetApproximateLine(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
void SetRationalWeightsFromPointData(vtkPointData *point_data, vtkIdType numPts)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InterpolateDerivs(const double pcoords[3], double *derivs) override
void InterpolateFunctions(const double pcoords[3], double *weights) override
represent and manipulate cell attribute data
Definition: vtkCellData.h:40
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:32
a simple class to control print indentation
Definition: vtkIndent.h:38
cell represents a 1D line
Definition: vtkLine.h:32
represent and manipulate point attribute data
Definition: vtkPointData.h:39
represent and manipulate 3D points
Definition: vtkPoints.h:38
@ VTK_BEZIER_CURVE
Definition: vtkCellType.h:119
int vtkIdType
Definition: vtkType.h:315