VTK: Common/DataModel/vtkBezierCurve.h Source File

| 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();
32 vtkTypeMacro(vtkBezierCurve, vtkHigherOrderCurve);
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:
43 vtkLine* GetApproximateLine(
44 int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
45 vtkBezierCurve();
46 ~vtkBezierCurve() override;
47
48 vtkNew<vtkDoubleArray> RationalWeights;
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
vtkBezierCurve
Definition: vtkBezierCurve.h:29
vtkBezierCurve::GetRationalWeights
vtkDoubleArray * GetRationalWeights()
vtkBezierCurve::~vtkBezierCurve
~vtkBezierCurve() override
vtkBezierCurve::RationalWeights
vtkNew< vtkDoubleArray > RationalWeights
Definition: vtkBezierCurve.h:48
vtkBezierCurve::New
static vtkBezierCurve * New()
vtkBezierCurve::GetCellType
int GetCellType() override
Return the type of cell.
Definition: vtkBezierCurve.h:35
vtkBezierCurve::GetApproximateLine
vtkLine * GetApproximateLine(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
vtkBezierCurve::SetRationalWeightsFromPointData
void SetRationalWeightsFromPointData(vtkPointData *point_data, vtkIdType numPts)
vtkBezierCurve::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBezierCurve::InterpolateDerivs
void InterpolateDerivs(const double pcoords[3], double *derivs) override
vtkBezierCurve::vtkBezierCurve
vtkBezierCurve()
vtkBezierCurve::InterpolateFunctions
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:40
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:40
vtkHigherOrderCurve
Definition: vtkHigherOrderCurve.h:27
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkLine
cell represents a 1D line
Definition: vtkLine.h:32
vtkNew< vtkDoubleArray >
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:39
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkVector3d
Definition: vtkVector.h:519
vtkVector3i
Definition: vtkVector.h:493
vtkCellType.h
VTK_BEZIER_CURVE
@ VTK_BEZIER_CURVE
Definition: vtkCellType.h:119
vtkHigherOrderCurve.h
vtkNew.h
vtkSmartPointer.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315