VTK  9.3.1
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; }
36  void SetRationalWeightsFromPointData(vtkPointData* point_data, vtkIdType numPts);
37  void InterpolateFunctions(const double pcoords[3], double* weights) override;
38  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
39 
40  vtkDoubleArray* GetRationalWeights();
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
represent and manipulate point attribute data
Definition: vtkPointData.h:29
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
represent and manipulate cell attribute data
Definition: vtkCellData.h:30
int vtkIdType
Definition: vtkType.h:315
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
dynamic, self-adjusting array of double
cell represents a 1D line
Definition: vtkLine.h:22
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual vtkLine * GetApproximateLine(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
int GetCellType() override
Return the type of cell.
vtkNew< vtkDoubleArray > RationalWeights
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:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.