CFx SDK Documentation  2023 SP0
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
tol
Definition: DimVarDefs.h:2287
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
OdGeCurve2d & operator=(const OdGeCurve2d &curve)
const OdGeKnotVector & knots() const
double startParam() const
int numKnots() const
int continuityAtKnot(int knotIndex, const OdGeTol &tol=OdGeContext::gTol) const
int order() const
int degree() const
double knotAt(int knotIndex) const
OdGeSplineEnt2d(const OdGeSplineEnt2d &spline)
OdGeSplineEnt2d & setControlPointAt(int controlPointIndex, const OdGePoint2d &point)
OdGePoint2d startPoint() const
double endParam() const
OdGePoint2d controlPointAt(int controlPointIndex) const
OdGePoint2d endPoint() const
OdGeSplineEnt2d & setKnotAt(int knotIndex, double val)
bool isRational() const
int numControlPoints() const
bool hasFitData() const
Definition: GeTol.h:49
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60