VTK  9.0.1
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; }
46  void EvaluateLocationProjectedNode(
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 
52  vtkDoubleArray* GetRationalWeights();
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
represent and manipulate point attribute data
Definition: vtkPointData.h:31
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
represent and manipulate cell attribute data
Definition: vtkCellData.h:32
int vtkIdType
Definition: vtkType.h:338
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
dynamic, self-adjusting array of double
cell represents a 1D line
Definition: vtkLine.h:29
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
a simple class to control print indentation
Definition: vtkIndent.h:33
list of point or cell ids
Definition: vtkIdList.h:30
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
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:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.