CFx SDK Documentation  2020SP3
DbXline.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_DBXLINE_H
28 #define OD_DBXLINE_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbCurve.h"
33 
34 class OdGePoint3d;
35 class OdGeVector3d;
36 
56 {
57 public:
59 
68 
69 
83 
84 
98  void setBasePoint( const OdGePoint3d& geBasePoint );
99 
100 
115 
116 
134  void setUnitDir( const OdGeVector3d& geDirVector );
135 
136 
138  OdDbDwgFiler* pFiler);
139 
140  virtual void dwgOutFields(
141  OdDbDwgFiler* pFiler) const;
142 
144  OdDbDxfFiler* pFiler);
145 
146  virtual void dxfOutFields(
147  OdDbDxfFiler* pFiler) const;
148 
150  void* pClsid) const;
151 
152  virtual bool subWorldDraw(
153  OdGiWorldDraw* pWd) const;
154 
156  OdGeExtents3d& extents) const;
157 
158  /* OdDbEntity methods */
159 
161  const OdGeMatrix3d& xfm);
162 
163  virtual bool isClosed() const;
164 
165  virtual bool isPeriodic() const;
166 
167 
180  virtual bool isPlanar() const;
181 
182 
200  virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
201 
202 
208  virtual OdResult getStartParam( double& startParam ) const;
209 
210 
216  virtual OdResult getEndParam ( double& endParam ) const;
217 
218 
224  virtual OdResult getStartPoint( OdGePoint3d& startPoint ) const;
225 
226 
232  virtual OdResult getEndPoint( OdGePoint3d& endPoint ) const;
233 
234 
249  virtual OdResult getPointAtParam( double param, OdGePoint3d& pointOnCurve ) const;
250 
251 
266  virtual OdResult getParamAtPoint( const OdGePoint3d& pointOnCurve, double& param ) const;
267 
268 
283  virtual OdResult getDistAtParam( double param, double& dist ) const;
284 
285 
299  virtual OdResult getParamAtDist( double dist, double& param ) const;
300 
301 
317  virtual OdResult getFirstDeriv ( double param, OdGeVector3d& firstDeriv ) const;
318 
319 
335  virtual OdResult getSecondDeriv( double param, OdGeVector3d& secondDeriv ) const;
336 
337 
341  virtual OdResult getArea( double& area ) const;
342 
343 
346 
347  /*
348  void getOffsetCurvesGivenPlaneNormal(
349  const OdGeVector3d& normal, double offsetDist,
350  OdRxObjectPtrArray& offsetCurves) const; //Replace OdRxObjectPtrArray
351  */
352 
353  virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
354  virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
355 };
356 
365 
366 #include "TD_PackPop.h"
367 
368 #endif
369 
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
OdDbXline::basePoint
OdGePoint3d basePoint() const
OdDbXline::setBasePoint
void setBasePoint(const OdGePoint3d &geBasePoint)
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
OdDbXline::getParamAtPoint
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
tol
tol
Definition: DimVarDefs.h:2287
OdDbXline::getStartPoint
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
OdDbXline::setFromOdGeCurve
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
OdDbXline::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdDbXline::getParamAtDist
virtual OdResult getParamAtDist(double dist, double &param) const
OdDbXline::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbXline::getPointAtParam
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
OdDbCurve::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
OdDbXline::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
TD_PackPop.h
OdDbXline::isPeriodic
virtual bool isPeriodic() const
OdDbXline::unitDir
OdGeVector3d unitDir() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbXline::subGetGeomExtents
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
OdDbXline::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbXline::TD_USING
TD_USING(OdDbCurve::getFirstDeriv)
OdDbXline::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbXline::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbCurve.h
OdDbXline::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
OdDbXline::isClosed
virtual bool isClosed() const
OdDbXlinePtr
OdSmartPtr< OdDbXline > OdDbXlinePtr
Definition: DbXline.h:364
OdDbXline::getEndPoint
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
OdDbXline::getEndParam
virtual OdResult getEndParam(double &endParam) const
OdDbXline::OdDbXline
OdDbXline()
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbXline::getStartParam
virtual OdResult getStartParam(double &startParam) const
OdDbXline::setUnitDir
void setUnitDir(const OdGeVector3d &geDirVector)
TD_PackPush.h
OdDbXline::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbXline)
OdDbXline::getPlane
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbXline::TD_USING
TD_USING(OdDbCurve::getSecondDeriv)
OdGeCurve3d
Definition: GeCurve3d.h:56
OdDbCurve
Definition: DbCurve.h:53
OdDbXline::getArea
virtual OdResult getArea(double &area) const
OdDbXline::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGeContext::gTol
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbXline
Definition: DbXline.h:56
OdDbXline::isPlanar
virtual bool isPlanar() const
OdDbXline::getDistAtParam
virtual OdResult getDistAtParam(double param, double &dist) const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdGeTol
Definition: GeTol.h:49
OdDbXline::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbXline::getOdGeCurve
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
OdDbDwgFiler
Definition: DbFiler.h:1031