CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbXline.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_DBXLINE_H
28#define OD_DBXLINE_H
29
30#include "TD_PackPush.h"
31
32#include "DbCurve.h"
33#include "DwgDeclareMembers.h"
34
35class OdGePoint3d;
36class OdGeVector3d;
37
55{
56public:
58
67
68
82
83
97 void setBasePoint( const OdGePoint3d& geBasePoint );
98
99
114
115
133 void setUnitDir( const OdGeVector3d& geDirVector );
134
135
137 OdDbDwgFiler* pFiler);
138
139 virtual void dwgOutFields(
140 OdDbDwgFiler* pFiler) const;
141
143 OdDbDxfFiler* pFiler);
144
145 virtual void dxfOutFields(
146 OdDbDxfFiler* pFiler) const;
147
149 void* pClsid) const;
150
151 virtual bool subWorldDraw(
152 OdGiWorldDraw* pWd) const;
153
155 OdGeExtents3d& extents) const;
156
157 /* OdDbEntity methods */
158
160 const OdGeMatrix3d& xfm);
161
162 virtual bool isClosed() const;
163
164 virtual bool isPeriodic() const;
165
166
179 virtual bool isPlanar() const;
180
181
199 virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
200
201
207 virtual OdResult getStartParam( double& startParam ) const;
208
209
215 virtual OdResult getEndParam ( double& endParam ) const;
216
217
223 virtual OdResult getStartPoint( OdGePoint3d& startPoint ) const;
224
225
231 virtual OdResult getEndPoint( OdGePoint3d& endPoint ) const;
232
233
248 virtual OdResult getPointAtParam( double param, OdGePoint3d& pointOnCurve ) const;
249
250
265 virtual OdResult getParamAtPoint( const OdGePoint3d& pointOnCurve, double& param ) const;
266
267
282 virtual OdResult getDistAtParam( double param, double& dist ) const;
283
284
298 virtual OdResult getParamAtDist( double dist, double& param ) const;
299
300
316 virtual OdResult getFirstDeriv ( double param, OdGeVector3d& firstDeriv ) const;
317
318
334 virtual OdResult getSecondDeriv( double param, OdGeVector3d& secondDeriv ) const;
335
336
340 virtual OdResult getArea( double& area ) const;
341
342
345
346 /*
347 void getOffsetCurvesGivenPlaneNormal(
348 const OdGeVector3d& normal, double offsetDist,
349 OdRxObjectPtrArray& offsetCurves) const; //Replace OdRxObjectPtrArray
350 */
351
352 virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
353 virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
354};
355
364
365#include "TD_PackPop.h"
366
367#endif
368
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbXline > OdDbXlinePtr
Definition: DbXline.h:363
tol
Definition: DimVarDefs.h:2287
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
DWGMAP_DECLARE_MEMBERS(OdDbXline)
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
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:65