VTK  9.0.3
vtkBezierCurve.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBezierCurve.h
5 
6  Copyright (c) Kevin Tew
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 vtkBezierCurve
16 // .SECTION Description
17 // .SECTION See Also
18 
19 #ifndef vtkBezierCurve_h
20 #define vtkBezierCurve_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 class vtkDataSet;
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkBezierCurve : public vtkHigherOrderCurve
39 {
40 public:
41  static vtkBezierCurve* New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45  int GetCellType() override { return VTK_BEZIER_CURVE; }
47  int& subId, const vtkIdType point_id, double x[3], double* weights);
48  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
49  void InterpolateFunctions(const double pcoords[3], double* weights) override;
50  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
51 
53 
54 protected:
56  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
58  ~vtkBezierCurve() override;
59 
61 
62 private:
63  vtkBezierCurve(const vtkBezierCurve&) = delete;
64  void operator=(const vtkBezierCurve&) = delete;
65 };
66 
67 #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 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 SetRationalWeightsFromPointData(vtkPointData *point_data, const vtkIdType numPts)
void EvaluateLocationProjectedNode(int &subId, const vtkIdType point_id, double x[3], double *weights)
void InterpolateFunctions(const double pcoords[3], double *weights) override
represent and manipulate cell attribute data
Definition: vtkCellData.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:31
a simple class to control print indentation
Definition: vtkIndent.h:34
cell represents a 1D line
Definition: vtkLine.h:30
represent and manipulate point attribute data
Definition: vtkPointData.h:32
represent and manipulate 3D points
Definition: vtkPoints.h:34
@ VTK_BEZIER_CURVE
Definition: vtkCellType.h:118
int vtkIdType
Definition: vtkType.h:338