VTK  9.2.6
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
25 #include "vtkHigherOrderCurve.h"
26 #include "vtkNew.h" // For member variable.
27 #include "vtkSmartPointer.h" // For member variable.
28 
29 class vtkCellData;
30 class vtkDoubleArray;
31 class vtkIdList;
32 class vtkLine;
33 class vtkPointData;
34 class vtkPoints;
35 class vtkVector3d;
36 class vtkVector3i;
37 class vtkDataSet;
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkBezierCurve : public vtkHigherOrderCurve
40 {
41 public:
42  static vtkBezierCurve* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
46  int GetCellType() override { return VTK_BEZIER_CURVE; }
48  "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
49  void EvaluateLocationProjectedNode(
50  int& subId, const vtkIdType point_id, double x[3], double* weights);
51  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
52  void InterpolateFunctions(const double pcoords[3], double* weights) override;
53  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
54 
55  vtkDoubleArray* GetRationalWeights();
56 
57 protected:
58  vtkLine* GetApproximateLine(
59  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
61  ~vtkBezierCurve() override;
62 
63  vtkNew<vtkDoubleArray> RationalWeights;
64 
65 private:
66  vtkBezierCurve(const vtkBezierCurve&) = delete;
67  void operator=(const vtkBezierCurve&) = delete;
68 };
69 
70 #endif // vtkBezierCurve_h
#define VTK_DEPRECATED_IN_9_1_0(reason)
represent and manipulate point attribute data
Definition: vtkPointData.h:41
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
represent and manipulate cell attribute data
Definition: vtkCellData.h:41
int vtkIdType
Definition: vtkType.h:332
dynamic, self-adjusting array of double
cell represents a 1D line
Definition: vtkLine.h:33
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
int GetCellType() override
Return the type of cell.
Allocate and hold a VTK object.
Definition: vtkMeta.h:30
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:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.