CFx SDK Documentation  2020SP3
GeSplineEnt2d.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_SPLINE_ENT_2D_H
25 #define OD_GE_SPLINE_ENT_2D_H
27 class OdGeKnotVector;
28 
29 #include "Ge/GeCurve2d.h"
30 
31 #include "TD_PackPush.h"
32 
41 {
42 public:
43 
53  bool isRational() const;
54 
61  int degree() const;
62 
69  int order() const;
70 
77  int numKnots() const;
78 
85  const OdGeKnotVector& knots() const;
86 
93  int numControlPoints() const;
94 
105  int knotIndex,
106  const OdGeTol& tol = OdGeContext::gTol) const;
107 
114  double startParam() const;
115 
122  double endParam() const;
123 
131 
139 
146  bool hasFitData() const;
147 
156  double knotAt(
157  int knotIndex) const;
158 
169  int knotIndex,
170  double val);
171 
181  int controlPointIndex) const;
182 
192  int controlPointIndex,
193  const OdGePoint2d& point);
194 
196 
198 
199 protected:
202  const OdGeSplineEnt2d& spline);
203 };
204 
205 #include "TD_PackPop.h"
206 
207 #endif // OD_GE_SPLINE_ENT_2D_H
OdGeSplineEnt2d::endParam
double endParam() const
tol
tol
Definition: DimVarDefs.h:2287
OdGeCurve2d
Definition: GeCurve2d.h:53
TD_PackPop.h
OdGeSplineEnt2d::degree
int degree() const
OdGeSplineEnt2d
Definition: GeSplineEnt2d.h:41
OdGeSplineEnt2d::continuityAtKnot
int continuityAtKnot(int knotIndex, const OdGeTol &tol=OdGeContext::gTol) const
OdGeSplineEnt2d::setKnotAt
OdGeSplineEnt2d & setKnotAt(int knotIndex, double val)
OdGeSplineEnt2d::isRational
bool isRational() const
OdGeSplineEnt2d::startParam
double startParam() const
OdGeSplineEnt2d::controlPointAt
OdGePoint2d controlPointAt(int controlPointIndex) const
OdGeSplineEnt2d::endPoint
OdGePoint2d endPoint() const
OdGeSplineEnt2d::numKnots
int numKnots() const
TD_PackPush.h
OdGeKnotVector
Definition: GeKnotVector.h:44
OdGeSplineEnt2d::OdGeSplineEnt2d
OdGeSplineEnt2d(const OdGeSplineEnt2d &spline)
OdGeSplineEnt2d::startPoint
OdGePoint2d startPoint() const
OdGeSplineEnt2d::order
int order() const
OdGeSplineEnt2d::setControlPointAt
OdGeSplineEnt2d & setControlPointAt(int controlPointIndex, const OdGePoint2d &point)
OdGeSplineEnt2d::knots
const OdGeKnotVector & knots() const
GeCurve2d.h
OdGeContext::gTol
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60
GE_TOOLKIT_EXPORT
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
OdGeCurve2d::operator=
OdGeCurve2d & operator=(const OdGeCurve2d &curve)
OdGeTol
Definition: GeTol.h:49
OdGeSplineEnt2d::OdGeSplineEnt2d
OdGeSplineEnt2d()
OdGeSplineEnt2d::hasFitData
bool hasFitData() const
OdGeSplineEnt2d::knotAt
double knotAt(int knotIndex) const
OdGeSplineEnt2d::numControlPoints
int numControlPoints() const
OdGePoint2d
Definition: GePoint2d.h:60