CFx SDK Documentation  2023 SP0
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
OdSmartPtr< OdDbCircle > OdDbCirclePtr
Definition: DbCircle.h:486
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
tol
Definition: DimVarDefs.h:2287
#define NULL
Definition: GsProperties.h:177
OdResult
Definition: OdResult.h:29
double thickness() const
void setCenter(const OdGePoint3d &center)
void setNormal(const OdGeVector3d &geVector)
virtual bool isPlanar() const
virtual OdResult getStartParam(double &startParam) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult getDistAtParam(double param, double &dist) const
TD_USING(OdDbCurve::getSecondDeriv)
virtual OdResult getEndParam(double &endParam) const
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
void setThickness(double vThickness)
TD_USING(OdDbCurve::getFirstDeriv)
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
virtual bool isClosed() const
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdGePoint3d center() const
virtual OdResult subGetClassID(void *pClsid) const
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const
virtual bool isPeriodic() const
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
OdGeVector3d normal() const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
ODDB_DECLARE_MEMBERS(OdDbCircle)
virtual OdResult getParamAtDist(double dist, double &param) const
void setRadius(double radius)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdResult getArea(double &vArea) const
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
double radius() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdGeMatrix3d getEcs() const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
Definition: GeTol.h:49
Planarity
Definition: DbEntity.h:74
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60