VTK  9.3.20240420
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
17VTK_ABI_NAMESPACE_BEGIN
18class vtkCellData;
19class vtkDoubleArray;
20class vtkIdList;
21class vtkLine;
22class vtkPointData;
23class vtkPoints;
24class vtkVector3d;
25class vtkVector3i;
26class vtkDataSet;
27
28class VTKCOMMONDATAMODEL_EXPORT vtkBezierCurve : public vtkHigherOrderCurve
29{
30public:
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
42protected:
44 int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
46 ~vtkBezierCurve() override;
47
49
50private:
51 vtkBezierCurve(const vtkBezierCurve&) = delete;
52 void operator=(const vtkBezierCurve&) = delete;
53};
54
55VTK_ABI_NAMESPACE_END
56#endif // vtkBezierCurve_h
~vtkBezierCurve() override
vtkNew< vtkDoubleArray > RationalWeights
int GetCellType() override
Return the type of cell.
void SetRationalWeightsFromPointData(vtkPointData *point_data, vtkIdType numPts)
vtkLine * GetApproximateLine(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
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
static vtkBezierCurve * New()
vtkDoubleArray * GetRationalWeights()
void InterpolateFunctions(const double pcoords[3], double *weights) override
represent and manipulate cell attribute data
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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
cell represents a 1D line
Definition vtkLine.h:132
Allocate and hold a VTK object.
Definition vtkNew.h:160
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:139
@ VTK_BEZIER_CURVE
int vtkIdType
Definition vtkType.h:315