CFx SDK Documentation  2020SP3
DbCircle.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 
25 
26 
27 #ifndef _OD_DB_CIRCLE_
28 #define _OD_DB_CIRCLE_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbCurve.h"
33 
34 class OdDbCircleImpl;
35 
55 {
56 public:
58 
67 
68 
82 
83 
98  void setCenter( const OdGePoint3d& center );
99 
100 
112  double radius() const;
113 
114 
128  void setRadius( double radius );
129 
130 
146  double thickness() const;
147 
148 
165  void setThickness( double vThickness );
166 
167 
181 
182 
200  void setNormal( const OdGeVector3d& geVector );
201 
202 
204  OdDbDwgFiler* pFiler);
205 
206  virtual void dwgOutFields(
207  OdDbDwgFiler* pFiler) const;
208 
210  OdDbDxfFiler* pFiler);
211 
212  virtual void dxfOutFields(
213  OdDbDxfFiler* pFiler) const;
214 
216  OdDbDxfFiler* pFiler);
217 
218  virtual void dxfOutFields_R12(
219  OdDbDxfFiler* pFiler) const;
220 
221  virtual bool subWorldDraw(
222  OdGiWorldDraw* pWd) const;
223 
224  //FELIX_CHANGE_BEGIN
226  OdGeExtents3d& extents) const;
227  //FELIX_CHANGE_END
228 
230  const OdGeMatrix3d& xfm);
231 
233  const OdGeMatrix3d& xfm,
234  OdDbEntityPtr& pCopy) const;
235 
237  void* pClsid) const;
238 
239  virtual bool isClosed() const;
240 
241  virtual bool isPeriodic() const;
242 
243 
256  virtual bool isPlanar() const;
257 
258 
276  virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
277 
278 
293  virtual OdResult getStartParam( double& startParam ) const;
294 
295 
309  virtual OdResult getEndParam( double& endParam ) const;
310 
311 
325  virtual OdResult getStartPoint( OdGePoint3d& startPoint ) const;
326 
327 
341  virtual OdResult getEndPoint( OdGePoint3d& endPoint ) const;
342 
343 
360  virtual OdResult getPointAtParam( double param, OdGePoint3d& pointOnCurve ) const;
361 
362 
378  virtual OdResult getParamAtPoint( const OdGePoint3d& pointOnCurve, double& param ) const;
379 
380 
396  virtual OdResult getDistAtParam( double param, double& dist ) const;
397 
398 
413  virtual OdResult getParamAtDist( double dist, double& param ) const;
414 
415 
431  virtual OdResult getFirstDeriv( double param, OdGeVector3d& firstDeriv ) const;
432 
433 
449  virtual OdResult getSecondDeriv( double param, OdGeVector3d& secondDeriv ) const;
450 
451 
464  virtual OdResult getArea( double& vArea ) const;
465 
470 
471 
474 
475  virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
476  virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
477 };
478 
487 
488 #include "TD_PackPop.h"
489 
490 #endif
OdResult
OdResult
Definition: OdResult.h:29
OdDbCircle::thickness
double thickness() const
OdDbCurve::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
OdDbCircle::OdDbCircle
OdDbCircle()
OdGePlane
Definition: GePlane.h:45
OdGeVector3d
Definition: GeVector3d.h:54
NULL
#define NULL
Definition: GsProperties.h:177
OdDbCircle::radius
double radius() const
OdDbCircle::isPeriodic
virtual bool isPeriodic() const
OdDbCircle::TD_USING
TD_USING(OdDbCurve::getSecondDeriv)
OdDbCircle::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbCircle::getParamAtDist
virtual OdResult getParamAtDist(double dist, double &param) const
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
OdDbCircle::getEndParam
virtual OdResult getEndParam(double &endParam) const
OdDbCircle::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
tol
tol
Definition: DimVarDefs.h:2287
OdDbCirclePtr
OdSmartPtr< OdDbCircle > OdDbCirclePtr
Definition: DbCircle.h:486
OdDbCircle::getPointAtParam
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
OdDbCircle::setRadius
void setRadius(double radius)
OdDbCircle::subGetGeomExtents
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
OdDbCircle::getStartPoint
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
OdDbCurve::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
OdDbCircle::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbCircle::getParamAtPoint
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
TD_PackPop.h
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbCircle::getEcs
OdGeMatrix3d getEcs() const
OdDbCircle::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbCircle::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbCircle::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbCircle::subGetTransformedCopy
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const
OdSmartPtr< OdDbEntity >
OdDbCircle::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
OdGePoint3d
Definition: GePoint3d.h:55
OdDbCircle::normal
OdGeVector3d normal() const
DbCurve.h
OdDbCircle::isPlanar
virtual bool isPlanar() const
OdDbCircle::setThickness
void setThickness(double vThickness)
OdDbCircle::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbCircle::isClosed
virtual bool isClosed() const
OdDbCircle::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
TD_PackPush.h
OdDbCircle::getPlane
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
OdDbCircle::getStartParam
virtual OdResult getStartParam(double &startParam) const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbCircle::setNormal
void setNormal(const OdGeVector3d &geVector)
OdDbCircle::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbCircle)
OdGeCurve3d
Definition: GeCurve3d.h:56
OdDbCurve
Definition: DbCurve.h:53
OdGeContext::gTol
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbCircle::getOdGeCurve
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
OdDbCircle::TD_USING
TD_USING(OdDbCurve::getFirstDeriv)
OdDbCircle::getEndPoint
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
OdDbCircle::getArea
virtual OdResult getArea(double &vArea) const
OdDbCircle::center
OdGePoint3d center() const
OdDbCircle::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdGeTol
Definition: GeTol.h:49
OdDbCircle::getDistAtParam
virtual OdResult getDistAtParam(double param, double &dist) const
OdDbCircle::setFromOdGeCurve
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbCircle
Definition: DbCircle.h:55
OdDbCircle::setCenter
void setCenter(const OdGePoint3d &center)
OdDbCircle::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const