CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbEllipse.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
25
26
27#ifndef _OD_DB_ELIPSE_H
28#define _OD_DB_ELIPSE_H
30#include "TD_PackPush.h"
31
32#include "DbCurve.h"
33#include "DwgDeclareMembers.h"
34
62{
63public:
65
74
75
90
91
107 void setCenter(const OdGePoint3d& center);
108
109
122
123
140
141
159
160
178 double radiusRatio() const;
179
180
200 void setRadiusRatio(double radiusRatio);
201
202
220 double startAngle() const;
221
222
246 OdResult setStartAngle(double startAngle);
247
248
266 double endAngle() const;
267
268
292 OdResult setEndAngle(double endAngle);
293
294
306 double paramAtAngle(double angle) const;
307
308
317 double angleAtParam(double param) const;
318
319
341 void get(OdGePoint3d& center,
342 OdGeVector3d& unitNormal,
343 OdGeVector3d& majorAxis,
344 double& radiusRatio,
345 double& startAngle,
346 double& endAngle) const;
347
348
374 void set(const OdGePoint3d& center,
375 const OdGeVector3d& unitNormal,
376 const OdGeVector3d& majorAxis,
377 double radiusRatio,
378 double startAngle = 0.0,
379 double endAngle = Oda2PI);
380
381
383 OdDbDwgFiler* pFiler);
384
385 virtual void dwgOutFields(
386 OdDbDwgFiler* pFiler) const;
387
389 OdDbDxfFiler* pFiler);
390
391 virtual void dxfOutFields(
392 OdDbDxfFiler* pFiler) const;
393
394 virtual bool subWorldDraw(
395 OdGiWorldDraw* pWd) const;
396
397 //FELIX_CHANGE_BEGIN
399 OdGeExtents3d& extents) const;
400 //FELIX_CHANGE_END
401
403 void* pClsid) const;
404
405 virtual bool isClosed() const;
406
407 virtual bool isPeriodic() const;
408
409
423 virtual bool isPlanar() const;
424
425
444 virtual OdResult getPlane(OdGePlane& gePlane, OdDb::Planarity& gePlanarity) const;
445
446
469 virtual OdResult getStartParam(double& startParam) const;
470
471
501 OdResult setStartParam(double startParam);
502
503
526 virtual OdResult getEndParam(double& endParam) const;
527
528
558 OdResult setEndParam(double endParam);
559
560
577 virtual OdResult getStartPoint(OdGePoint3d& startPoint) const;
578
579
596 virtual OdResult getEndPoint(OdGePoint3d& endPoint) const;
597
598
617 virtual OdResult getPointAtParam(double param, OdGePoint3d& pointOnCurve) const;
618
619
637 virtual OdResult getParamAtPoint(const OdGePoint3d& pointOnCurve, double& param) const;
638
639
656 virtual OdResult getDistAtParam(double param, double& dist) const;
657
658
675 virtual OdResult getParamAtDist(double dist, double& param) const;
676
677
694 virtual OdResult getFirstDeriv(double param, OdGeVector3d& firstDeriv) const;
695
696
713 virtual OdResult getSecondDeriv(double param, OdGeVector3d& secondDeriv) const;
714
715
732 virtual OdResult getArea(double& vArea) const;
733
734
737
739 const OdGeMatrix3d& xfm);
740
741 virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
742 virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
744};
745
754
755#include "TD_PackPop.h"
756
757#endif //_OD_DB_ELIPSE_H
758
OdSmartPtr< OdDbEllipse > OdDbEllipsePtr
Definition: DbEllipse.h:753
#define DBENT_EXPORT
Definition: DbExport.h:67
tol
Definition: DimVarDefs.h:2287
OdResult
Definition: OdResult.h:29
#define Oda2PI
Definition: OdaCommon.h:57
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
virtual OdResult getEndParam(double &endParam) const
OdResult setStartAngle(double startAngle)
DWGMAP_DECLARE_MEMBERS(OdDbEllipse)
TD_USING(OdDbCurve::getSecondDeriv)
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
virtual OdResult getStartParam(double &startParam) const
double paramAtAngle(double angle) const
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
virtual bool isPlanar() const
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
void setCenter(const OdGePoint3d &center)
void get(OdGePoint3d &center, OdGeVector3d &unitNormal, OdGeVector3d &majorAxis, double &radiusRatio, double &startAngle, double &endAngle) const
OdGeVector3d majorAxis() const
double angleAtParam(double param) const
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
OdGeVector3d normal() const
double radiusRatio() const
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual bool isClosed() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult subGetClassID(void *pClsid) const
double startAngle() const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual bool isPeriodic() const
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
double endAngle() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
OdGePoint3d center() const
virtual OdResult getDistAtParam(double param, double &dist) const
virtual OdResult reverseCurve()
OdGeVector3d minorAxis() const
void setRadiusRatio(double radiusRatio)
virtual OdResult getArea(double &vArea) const
virtual OdResult getParamAtDist(double dist, double &param) const
OdResult setStartParam(double startParam)
TD_USING(OdDbCurve::getFirstDeriv)
OdResult setEndAngle(double endAngle)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void set(const OdGePoint3d &center, const OdGeVector3d &unitNormal, const OdGeVector3d &majorAxis, double radiusRatio, double startAngle=0.0, double endAngle=Oda2PI)
OdResult setEndParam(double endParam)
Definition: GeTol.h:49
Planarity
Definition: DbEntity.h:74
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65