CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GeCircArc2d.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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_ARC2D_H
25#define OD_GE_ARC2D_H
27class OdGeLine2d;
28class OdGeLinearEnt2d;
29class OdGeExtents2d;
30
31
32#include "Ge/GeCurve2d.h"
33
34#include "TD_PackPush.h"
35
47{
48public:
49
56
65 const OdGeCircArc2d& source);
66
76 const OdGePoint2d& center,
77 double radius);
78
97 const OdGePoint2d& center,
98 double radius,
99 double startAng,
100 double endAng,
101 const OdGeVector2d& refVec = OdGeVector2d::kXAxis,
102 bool isClockWise = false);
103
114 const OdGePoint2d& startPoint,
115 const OdGePoint2d& secondPoint,
116 const OdGePoint2d& endPoint);
117
141 const OdGePoint2d& startPoint,
142 const OdGePoint2d& endPoint,
143 double bulge,
144 bool bulgeFlag = true);
145
161 const OdGeLinearEnt2d& line,
162 int& numInt,
163 OdGePoint2d& p1,
164 OdGePoint2d& p2,
165 const OdGeTol& tol = OdGeContext::gTol) const;
166
182 const OdGeCircArc2d& circarc,
183 int& numInt,
184 OdGePoint2d& p1,
185 OdGePoint2d& p2,
186 const OdGeTol& tol = OdGeContext::gTol) const;
187
197 const OdGePoint2d& point,
198 OdGeLine2d& line,
199 const OdGeTol& tol = OdGeContext::gTol) const;
200
218 const OdGePoint2d& point,
219 OdGeLine2d& line,
220 const OdGeTol& tol,
221 OdGeError& status) const;
222
231 const OdGePoint2d& point,
232 const OdGeTol& tol = OdGeContext::gTol) const;
233
238
242 double radius() const;
243
255 double startAng() const;
256
268 double endAng() const;
269
274 bool isClockWise() const;
275
280
285
290
297 const OdGePoint2d& center);
298
305 double radius);
306
317 double startAng,
318 double endAng);
319
325
332 const OdGeVector2d& vect);
333
342 const OdGePoint2d& center,
343 double radius);
344
364 const OdGePoint2d& center,
365 double radius,
366 double startAng,
367 double endAng,
368 const OdGeVector2d& refVec = OdGeVector2d::kXAxis,
369 bool isClockWise = false);
370
380 const OdGePoint2d& startPoint,
381 const OdGePoint2d& secondPoint,
382 const OdGePoint2d& endPoint);
383
402 const OdGePoint2d& startPoint,
403 const OdGePoint2d& secondPoint,
404 const OdGePoint2d& endPoint,
405 OdGeError& status);
406
424 const OdGePoint2d& startPoint,
425 const OdGePoint2d& endPoint,
426 double bulge,
427 bool bulgeFlag = true);
428
443 const OdGeCurve2d& curve1,
444 const OdGeCurve2d& curve2,
445 double radius,
446 double& param1,
447 double& param2,
448 bool& success);
449
465 const OdGeCurve2d& curve1,
466 const OdGeCurve2d& curve2,
467 const OdGeCurve2d& curve3,
468 double& param1,
469 double& param2,
470 double& param3,
471 bool& success);
472
481
488 OdGeExtents2d& extents) const;
489
496 double startAngFromXAxis() const;
497
504 double endAngFromXAxis() const;
505};
506
507#include "TD_PackPop.h"
508
509#endif // OD_GE_ARC2D_H
tol
Definition: DimVarDefs.h:2287
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
OdGeCircArc2d(const OdGePoint2d &center, double radius, double startAng, double endAng, const OdGeVector2d &refVec=OdGeVector2d::kXAxis, bool isClockWise=false)
double radius() const
OdGePoint2d center() const
OdGeCircArc2d & setRadius(double radius)
OdGeCircArc2d & set(const OdGePoint2d &startPoint, const OdGePoint2d &endPoint, double bulge, bool bulgeFlag=true)
OdGeCircArc2d & set(const OdGePoint2d &startPoint, const OdGePoint2d &secondPoint, const OdGePoint2d &endPoint)
OdGeCircArc2d(const OdGeCircArc2d &source)
OdGeCircArc2d & set(const OdGeCurve2d &curve1, const OdGeCurve2d &curve2, const OdGeCurve2d &curve3, double &param1, double &param2, double &param3, bool &success)
bool tangent(const OdGePoint2d &point, OdGeLine2d &line, const OdGeTol &tol, OdGeError &status) const
OdGeCircArc2d & setToComplement()
OdGeCircArc2d(const OdGePoint2d &center, double radius)
OdGeCircArc2d(const OdGePoint2d &startPoint, const OdGePoint2d &endPoint, double bulge, bool bulgeFlag=true)
OdGePoint2d startPoint() const
OdGeCircArc2d & set(const OdGePoint2d &center, double radius, double startAng, double endAng, const OdGeVector2d &refVec=OdGeVector2d::kXAxis, bool isClockWise=false)
double endAngFromXAxis() const
bool tangent(const OdGePoint2d &point, OdGeLine2d &line, const OdGeTol &tol=OdGeContext::gTol) const
OdGeCircArc2d & setAngles(double startAng, double endAng)
bool intersectWith(const OdGeCircArc2d &circarc, int &numInt, OdGePoint2d &p1, OdGePoint2d &p2, const OdGeTol &tol=OdGeContext::gTol) const
OdGePoint2d endPoint() const
bool intersectWith(const OdGeLinearEnt2d &line, int &numInt, OdGePoint2d &p1, OdGePoint2d &p2, const OdGeTol &tol=OdGeContext::gTol) const
bool isClockWise() const
OdGeCircArc2d & setCenter(const OdGePoint2d &center)
void getGeomExtents(OdGeExtents2d &extents) const
bool isInside(const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
OdGeCircArc2d & set(const OdGeCurve2d &curve1, const OdGeCurve2d &curve2, double radius, double &param1, double &param2, bool &success)
double endAng() const
OdGeCircArc2d(const OdGePoint2d &startPoint, const OdGePoint2d &secondPoint, const OdGePoint2d &endPoint)
OdGeCircArc2d & set(const OdGePoint2d &startPoint, const OdGePoint2d &secondPoint, const OdGePoint2d &endPoint, OdGeError &status)
OdGeCircArc2d & setRefVec(const OdGeVector2d &vect)
double startAngFromXAxis() const
double startAng() const
OdGeCircArc2d & set(const OdGePoint2d &center, double radius)
OdGeVector2d refVec() const
OdGeCurve2d & operator=(const OdGeCurve2d &curve)
Definition: GeTol.h:49
static GE_STATIC_EXPORT const OdGeVector2d kXAxis
Definition: GeVector2d.h:76
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65
ErrorCondition
Definition: Ge.h:413