CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbLine.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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#include "DwgDeclareMembers.h"
34
50{
51public:
53
62
63
77 virtual OdGePoint3d startPoint() const;
78
79
94 void setStartPoint( const OdGePoint3d& geStartPoint );
95
96
110 virtual OdGePoint3d endPoint() const;
111
112
127 void setEndPoint( const OdGePoint3d& geEndPoint );
128
129
143 virtual double thickness() const;
144
145
161 void setThickness( double vThickness );
162
163
175 virtual OdGeVector3d normal() const;
176
177
194 void setNormal( const OdGeVector3d& geVector );
195
196
198 OdDbDwgFiler* pFiler);
199
200 virtual void dwgOutFields(
201 OdDbDwgFiler* pFiler) const;
202
204 OdDbDxfFiler* pFiler);
205
206 virtual void dxfOutFields(
207 OdDbDxfFiler* pFiler) const;
208
210 OdDbDxfFiler* pFiler);
211
212 virtual void dxfOutFields_R12(
213 OdDbDxfFiler* pFiler) const;
214
215 virtual bool subWorldDraw(
216 OdGiWorldDraw* pWd) const;
217
219 OdGeExtents3d& extents) const;
220
222 void* pClsid) const;
223
225 const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
226
227 virtual bool isClosed() const;
228
229 virtual bool isPeriodic() const;
230
231
245 virtual bool isPlanar() const;
246
247
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 DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbLine > OdDbLinePtr
Definition: DbLine.h:467
tol
Definition: DimVarDefs.h:2287
#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)
TD_USING(OdDbCurve::getSecondDeriv)
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
void setStartPoint(const OdGePoint3d &geStartPoint)
virtual OdGePoint3d startPoint() const
virtual bool isClosed() const
void setThickness(double vThickness)
void setEndPoint(const OdGePoint3d &geEndPoint)
virtual OdGePoint3d endPoint() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
DWGMAP_DECLARE_MEMBERS(OdDbLine)
virtual bool isPlanar() const
virtual OdResult reverseCurve()
virtual OdGeVector3d normal() const
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
virtual double thickness() const
OdGeMatrix3d getEcs() const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
virtual OdResult getStartPoint(OdGePoint3d &startPoint) 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)
Definition: GeTol.h:49
Planarity
Definition: DbEntity.h:74
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65