CFx SDK Documentation  2023 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbXline > OdDbXlinePtr
Definition: DbXline.h:364
tol
Definition: DimVarDefs.h:2287
#define NULL
Definition: GsProperties.h:177
OdResult
Definition: OdResult.h:29
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
virtual OdResult getEndParam(double &endParam) const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult getDistAtParam(double param, double &dist) const
OdGePoint3d basePoint() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
TD_USING(OdDbCurve::getSecondDeriv)
virtual bool isClosed() const
void setBasePoint(const OdGePoint3d &geBasePoint)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setUnitDir(const OdGeVector3d &geDirVector)
virtual OdResult subGetClassID(void *pClsid) const
ODDB_DECLARE_MEMBERS(OdDbXline)
virtual OdResult getStartParam(double &startParam) const
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
virtual OdResult getParamAtDist(double dist, double &param) const
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual bool isPeriodic() const
OdGeVector3d unitDir() const
virtual OdResult getArea(double &area) const
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
TD_USING(OdDbCurve::getFirstDeriv)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
virtual bool isPlanar() const
Definition: GeTol.h:49
Planarity
Definition: DbEntity.h:74
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60