CFx SDK Documentation  2020SP3
GeCubicSplineCurve2d.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef OD_GE_CUBIC_SPLINE_CURVE_2D_H
25 #define OD_GE_CUBIC_SPLINE_CURVE_2D_H
27 //
28 
34 #include "Ge/GeSplineEnt2d.h"
35 #include "Ge/GePoint2dArray.h"
36 #include "Ge/GeVector2dArray.h"
37 
38 #include "TD_PackPush.h"
39 
49 {
50 public:
72  const OdGePoint2dArray& fitPnts,
73  const OdGeTol& tol = OdGeContext::gTol);
75  const OdGePoint2dArray& fitPnts,
76  const OdGeVector2d& startDeriv,
77  const OdGeVector2d& endDeriv,
78  const OdGeTol& tol = OdGeContext::gTol);
80  const OdGeCurve2d& curve,
81  double tol
82 #ifndef SWIG
83  = OdGeContext::gTol.equalPoint()
84 #endif
85  );
87  const OdGeKnotVector& knots,
88  const OdGePoint2dArray& fitPnts,
89  const OdGeVector2dArray& firstDerivs,
90  bool isPeriodic = false);
91 
98  int numFitPoints() const;
99 
109  int fitPointIndex) const;
110 
121  int fitPointIndex,
122  const OdGePoint2d& point);
123 
133  int fitPointIndex) const;
134 
145  int fitPointIndex,
146  const OdGeVector2d& deriv);
147 
152  const OdGeCubicSplineCurve2d& spline);
153 };
154 
155 #include "TD_PackPop.h"
156 
157 #endif // OD_GE_CUBIC_SPLINE_CURVE_2D_H
tol
tol
Definition: DimVarDefs.h:2287
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d
OdGeCubicSplineCurve2d(const OdGeCurve2d &curve, double tol=OdGeContext::gTol.equalPoint())
OdGeCurve2d
Definition: GeCurve2d.h:53
source
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
OdArray< OdGePoint2d, OdMemoryAllocator< OdGePoint2d > >
TD_PackPop.h
GeVector2dArray.h
OdGeSplineEnt2d
Definition: GeSplineEnt2d.h:41
OdGeCubicSplineCurve2d::numFitPoints
int numFitPoints() const
OdGeCubicSplineCurve2d
Definition: GeCubicSplineCurve2d.h:49
OdGeCubicSplineCurve2d::firstDerivAt
OdGeVector2d firstDerivAt(int fitPointIndex) const
OdGeCubicSplineCurve2d::setFitPointAt
OdGeCubicSplineCurve2d & setFitPointAt(int fitPointIndex, const OdGePoint2d &point)
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d
OdGeCubicSplineCurve2d(const OdGePoint2dArray &fitPnts, const OdGeTol &tol=OdGeContext::gTol)
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d
OdGeCubicSplineCurve2d(const OdGeKnotVector &knots, const OdGePoint2dArray &fitPnts, const OdGeVector2dArray &firstDerivs, bool isPeriodic=false)
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d
OdGeCubicSplineCurve2d()
OdGeVector2d
Definition: GeVector2d.h:51
OdGeCubicSplineCurve2d::fitPointAt
OdGePoint2d fitPointAt(int fitPointIndex) const
TD_PackPush.h
GePoint2dArray.h
OdGeCubicSplineCurve2d::setFirstDerivAt
OdGeCubicSplineCurve2d & setFirstDerivAt(int fitPointIndex, const OdGeVector2d &deriv)
OdGeKnotVector
Definition: GeKnotVector.h:44
OdGeContext::gTol
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60
GE_TOOLKIT_EXPORT
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
OdGeSplineEnt2d::operator=
OdGeSplineEnt2d & operator=(const OdGeSplineEnt2d &spline)
OdGeTol
Definition: GeTol.h:49
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d
OdGeCubicSplineCurve2d(const OdGePoint2dArray &fitPnts, const OdGeVector2d &startDeriv, const OdGeVector2d &endDeriv, const OdGeTol &tol=OdGeContext::gTol)
OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d
OdGeCubicSplineCurve2d(const OdGeCubicSplineCurve2d &source)
GeSplineEnt2d.h
OdGePoint2d
Definition: GePoint2d.h:60