CFx SDK Documentation  2020SP3
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 
OdResult
OdResult
Definition: OdResult.h:29
OdDbCurve::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
OdGePlane
Definition: GePlane.h:45
OdGeVector3d
Definition: GeVector3d.h:54
NULL
#define NULL
Definition: GsProperties.h:177
OdDbLine::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
OdDbLine::startPoint
OdGePoint3d startPoint() const
OdDbLine::TD_USING
TD_USING(OdDbCurve::getFirstDeriv)
OdDbLine::getPointAtParam
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
tol
tol
Definition: DimVarDefs.h:2287
OdDbLine::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbLine::getEcs
OdGeMatrix3d getEcs() const
OdDbCurve::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
OdDbLinePtr
OdSmartPtr< OdDbLine > OdDbLinePtr
Definition: DbLine.h:467
OdDbLine::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbLine::getEndParam
virtual OdResult getEndParam(double &endParam) const
OdDbLine::TD_USING
TD_USING(OdDbCurve::getSecondDeriv)
OdDbLine::isPlanar
virtual bool isPlanar() const
TD_PackPop.h
OdDbLine::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbLine)
OdDbLine::getOdGeCurve
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbLine::getStartParam
virtual OdResult getStartParam(double &startParam) const
OdDbLine::endPoint
OdGePoint3d endPoint() const
OdDbLine::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbLine::getStartPoint
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
OdDbLine::getEndPoint
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
OdDbLine::setEndPoint
void setEndPoint(const OdGePoint3d &geEndPoint)
OdDbLine::setFromOdGeCurve
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
OdDbLine::normal
OdGeVector3d normal() const
OdDbLine::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbCurve.h
OdDbLine::reverseCurve
virtual OdResult reverseCurve()
OdDbLine::isClosed
virtual bool isClosed() const
OdDbLine::getPlane
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
OdDbLine::setStartPoint
void setStartPoint(const OdGePoint3d &geStartPoint)
OdDbDxfFiler
Definition: DbFiler.h:194
TD_PackPush.h
OdDbLine
Definition: DbLine.h:52
OdDbLine::isPeriodic
virtual bool isPeriodic() const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbLine::thickness
double thickness() const
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
OdDbLine::getArea
virtual OdResult getArea(double &area) const
OdDbLine::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbLine::getDistAtParam
virtual OdResult getDistAtParam(double param, double &dist) const
OdDbLine::getParamAtDist
virtual OdResult getParamAtDist(double dist, double &param) const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbLine::setNormal
void setNormal(const OdGeVector3d &geVector)
OdDbLine::OdDbLine
OdDbLine()
OdDbLine::setThickness
void setThickness(double vThickness)
OdGeTol
Definition: GeTol.h:49
OdDbLine::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
OdDbLine::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbLine::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbLine::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdDbLine::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbLine::getParamAtPoint
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
OdDbLine::subGetGeomExtents
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const