CFx SDK Documentation  2022 SP0
DbLine.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_LINE_
28 #define _OD_DB_LINE_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbCurve.h"
33 
52 {
53 public:
55 
64 
65 
79 
80 
94  void setStartPoint( const OdGePoint3d& geStartPoint );
95 
96 
110 
111 
125  void setEndPoint( const OdGePoint3d& geEndPoint );
126 
127 
142  double thickness() const;
143 
144 
161  void setThickness( double vThickness );
162 
163 
177 
178 
196  void setNormal( const OdGeVector3d& geVector );
197 
198 
200  OdDbDwgFiler* pFiler);
201 
202  virtual void dwgOutFields(
203  OdDbDwgFiler* pFiler) const;
204 
206  OdDbDxfFiler* pFiler);
207 
208  virtual void dxfOutFields(
209  OdDbDxfFiler* pFiler) const;
210 
212  OdDbDxfFiler* pFiler);
213 
214  virtual void dxfOutFields_R12(
215  OdDbDxfFiler* pFiler) const;
216 
217  virtual bool subWorldDraw(
218  OdGiWorldDraw* pWd) const;
219 
221  OdGeExtents3d& extents) const;
222 
224  void* pClsid) const;
225 
227  const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
228 
229  virtual bool isClosed() const;
230 
231  virtual bool isPeriodic() const;
232 
233 
246  virtual bool isPlanar() const;
247 
248 
266  virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
267 
268 
282  virtual OdResult getStartParam( double& startParam ) const;
283 
284 
298  virtual OdResult getEndParam( double& endParam ) const;
299 
300 
314  virtual OdResult getStartPoint( OdGePoint3d& startPoint ) const;
315 
316 
330  virtual OdResult getEndPoint( OdGePoint3d& endPoint ) const;
331 
332 
347  virtual OdResult getPointAtParam( double param, OdGePoint3d& pointOnCurve ) const;
348 
349 
365  virtual OdResult getParamAtPoint( const OdGePoint3d& pointOnCurve, double& param ) const;
366 
367 
382  virtual OdResult getDistAtParam( double param, double& dist ) const;
383 
384 
399  virtual OdResult getParamAtDist( double dist, double& param ) const;
400 
401 
417  virtual OdResult getFirstDeriv( double param, OdGeVector3d& firstDeriv ) const;
418 
419 
435  virtual OdResult getSecondDeriv( double param, OdGeVector3d& secondDeriv ) const;
436 
437 
441  virtual OdResult getArea( double& area ) const;
442 
443 
446 
447  /*
448  void getOffsetCurvesGivenPlaneNormal(
449  const OdGeVector3d& normal, double offsetDist,
450  OdRxObjectPtrArray& offsetCurves) const;
451  */
452 
454 
455  virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
456  virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
458 };
459 
468 
469 #include "TD_PackPop.h"
470 
471 #endif
472 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbLine > OdDbLinePtr
Definition: DbLine.h:467
tol
Definition: DimVarDefs.h:2287
#define NULL
Definition: GsProperties.h:177
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
TD_USING(OdDbCurve::getFirstDeriv)
ODDB_DECLARE_MEMBERS(OdDbLine)
TD_USING(OdDbCurve::getSecondDeriv)
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
void setStartPoint(const OdGePoint3d &geStartPoint)
virtual bool isClosed() const
void setThickness(double vThickness)
void setEndPoint(const OdGePoint3d &geEndPoint)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual bool isPlanar() const
virtual OdResult reverseCurve()
virtual OdResult subGetClassID(void *pClsid) const
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
void setNormal(const OdGeVector3d &geVector)
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
virtual OdResult getArea(double &area) const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual bool isPeriodic() const
virtual OdResult getParamAtDist(double dist, double &param) const
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
OdGeMatrix3d getEcs() const
OdGeVector3d normal() const
OdGePoint3d startPoint() const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
OdGePoint3d endPoint() const
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
virtual OdResult getEndParam(double &endParam) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdResult getDistAtParam(double param, double &dist) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult getStartParam(double &startParam) const
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
double thickness() const
Definition: GeTol.h:49
Planarity
Definition: DbEntity.h:74
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60