CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
GeCircArc2d.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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
26
27class OdGeLine2d;
28class OdGeLinearEnt2d;
29class OdGeExtents2d;
30
31
32#include "Ge/GeCurve2d.h"
33
34#include "TD_PackPush.h"
35
47{
48public:
50
57
66 const OdGeCircArc2d& source);
67
77 const OdGePoint2d& center,
78 double radius);
79
98 const OdGePoint2d& center,
99 double radius,
100 double startAng,
101 double endAng,
103 bool isClockWise = false);
104
115 const OdGePoint2d& startPoint,
116 const OdGePoint2d& secondPoint,
117 const OdGePoint2d& endPoint);
118
142 const OdGePoint2d& startPoint,
143 const OdGePoint2d& endPoint,
144 double bulge,
145 bool bulgeFlag = true);
146
162 const OdGeLinearEnt2d& line,
163 int& numInt,
164 OdGePoint2d& p1,
165 OdGePoint2d& p2,
166 const OdGeTol& tol = OdGeContext::gTol) const;
167
183 const OdGeCircArc2d& circarc,
184 int& numInt,
185 OdGePoint2d& p1,
186 OdGePoint2d& p2,
187 const OdGeTol& tol = OdGeContext::gTol) const;
188
198 const OdGePoint2d& point,
199 OdGeLine2d& line,
200 const OdGeTol& tol = OdGeContext::gTol) const;
201
219 const OdGePoint2d& point,
220 OdGeLine2d& line,
221 const OdGeTol& tol,
222 OdGeError& status) const;
223
232 const OdGePoint2d& point,
233 const OdGeTol& tol = OdGeContext::gTol) const;
234
239
243 double radius() const;
244
256 double startAng() const;
257
269 double endAng() const;
270
275 bool isClockWise() const;
276
281
286
291
298 const OdGePoint2d& center);
299
306 double radius);
307
318 double startAng,
319 double endAng);
320
326
333 const OdGeVector2d& vect);
334
343 const OdGePoint2d& center,
344 double radius);
345
365 const OdGePoint2d& center,
366 double radius,
367 double startAng,
368 double endAng,
370 bool isClockWise = false);
371
381 const OdGePoint2d& startPoint,
382 const OdGePoint2d& secondPoint,
383 const OdGePoint2d& endPoint);
384
403 const OdGePoint2d& startPoint,
404 const OdGePoint2d& secondPoint,
405 const OdGePoint2d& endPoint,
406 OdGeError& status);
407
425 const OdGePoint2d& startPoint,
426 const OdGePoint2d& endPoint,
427 double bulge,
428 bool bulgeFlag = true);
429
444 const OdGeCurve2d& curve1,
445 const OdGeCurve2d& curve2,
446 double radius,
447 double& param1,
448 double& param2,
449 bool& success);
450
466 const OdGeCurve2d& curve1,
467 const OdGeCurve2d& curve2,
468 const OdGeCurve2d& curve3,
469 double& param1,
470 double& param2,
471 double& param3,
472 bool& success);
473
482
489 OdGeExtents2d& extents) const;
490
497 double startAngFromXAxis() const;
498
505 double endAngFromXAxis() const;
506};
507
508#include "TD_PackPop.h"
509
510#endif // OD_GE_ARC2D_H
tol
OdGe::ErrorCondition OdGeError
Definition Ge.h:535
#define GE_TOOLKIT_EXPORT
Definition GeExport.h:35
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
GE_OPERATORS_OVERRIDE_2D(OdGeCircArc2d)
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)
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:67