CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbRay.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_DBRAY_H
28#define OD_DBRAY_H
29
30#include "TD_PackPush.h"
31
32#include "DbCurve.h"
33#include "DwgDeclareMembers.h"
34
35class OdGePoint3d;
36class OdGeVector3d;
37
54{
55public:
57
66
67 /*
68 void getOffsetCurvesGivenPlaneNormal(
69 const OdGeVector3d& normal, double offsetDist,
70 OdRxObjectPtrArray& offsetCurves) const; //Replace OdRxObjectPtrArray
71 */
72
73
87
88
103 void setBasePoint( const OdGePoint3d& geBasePoint );
104
105
119
120
138 void setUnitDir( const OdGeVector3d& geDirVector );
139
140
142 OdDbDwgFiler* pFiler);
143
144 virtual void dwgOutFields(
145 OdDbDwgFiler* pFiler) const;
146
148 OdDbDxfFiler* pFiler);
149
150 virtual void dxfOutFields(
151 OdDbDxfFiler* pFiler) const;
152
154 void* pClsid) const;
155
157 OdGiWorldDraw* pWd) const;
158
163 OdGeExtents3d& extents) const;
164
165 virtual bool isClosed() const;
166
167 virtual bool isPeriodic() const;
168
169
182 virtual bool isPlanar() const;
183
184
202 virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
203
204
217 virtual OdResult getStartParam( double& startParam ) const;
218
219
225 virtual OdResult getEndParam( double& endParam ) const;
226
227
241 virtual OdResult getStartPoint( OdGePoint3d& startPoint ) const;
242
243
249 virtual OdResult getEndPoint( OdGePoint3d& endPoint ) const;
250
251
265 virtual OdResult getPointAtParam( double param, OdGePoint3d& pointOnCurve ) const;
266
267
282 virtual OdResult getParamAtPoint( const OdGePoint3d& pointOnCurve, double& param ) const;
283
284
299 virtual OdResult getDistAtParam( double param, double& dist ) const;
300
301
315 virtual OdResult getParamAtDist( double dist, double& param ) const;
316
317
333 virtual OdResult getFirstDeriv( double param, OdGeVector3d& firstDeriv ) const;
334
335
351 virtual OdResult getSecondDeriv( double param, OdGeVector3d& secondDeriv ) const;
352
353
357 virtual OdResult getArea( double& area ) const;
358
361
363 const OdGeMatrix3d& xfm);
364
365 virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
366 virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
367};
368
377
378#include "TD_PackPop.h"
379
380#endif
381
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbRay > OdDbRayPtr
Definition: DbRay.h:376
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
Definition: DbRay.h:54
OdGeVector3d unitDir() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual bool isPeriodic() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
void setUnitDir(const OdGeVector3d &geDirVector)
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
virtual OdResult getArea(double &area) const
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
virtual OdResult getParamAtDist(double dist, double &param) const
virtual OdResult getStartParam(double &startParam) const
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
DWGMAP_DECLARE_MEMBERS(OdDbRay)
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
OdGePoint3d basePoint() const
virtual bool isClosed() const
OdResult subGetGeomExtents(OdGeExtents3d &extents) const
TD_USING(OdDbCurve::getSecondDeriv)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual bool isPlanar() const
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
virtual OdResult getEndParam(double &endParam) const
TD_USING(OdDbCurve::getFirstDeriv)
virtual OdResult getDistAtParam(double param, double &dist) const
virtual OdResult subGetClassID(void *pClsid) const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
void setBasePoint(const OdGePoint3d &geBasePoint)
Definition: GeTol.h:49
Planarity
Definition: DbEntity.h:74
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65