CFx SDK Documentation  2020SP3
DbRay.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_DBRAY_H
28 #define OD_DBRAY_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbCurve.h"
33 
34 class OdGePoint3d;
35 class OdGeVector3d;
36 
55 {
56 public:
58 
67 
68  /*
69  void getOffsetCurvesGivenPlaneNormal(
70  const OdGeVector3d& normal, double offsetDist,
71  OdRxObjectPtrArray& offsetCurves) const; //Replace OdRxObjectPtrArray
72  */
73 
74 
88 
89 
104  void setBasePoint( const OdGePoint3d& geBasePoint );
105 
106 
120 
121 
139  void setUnitDir( const OdGeVector3d& geDirVector );
140 
141 
143  OdDbDwgFiler* pFiler);
144 
145  virtual void dwgOutFields(
146  OdDbDwgFiler* pFiler) const;
147 
149  OdDbDxfFiler* pFiler);
150 
151  virtual void dxfOutFields(
152  OdDbDxfFiler* pFiler) const;
153 
155  void* pClsid) const;
156 
158  OdGiWorldDraw* pWd) const;
159 
164  OdGeExtents3d& extents) const;
165 
166  virtual bool isClosed() const;
167 
168  virtual bool isPeriodic() const;
169 
170 
183  virtual bool isPlanar() const;
184 
185 
203  virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
204 
205 
218  virtual OdResult getStartParam( double& startParam ) const;
219 
220 
226  virtual OdResult getEndParam( double& endParam ) const;
227 
228 
242  virtual OdResult getStartPoint( OdGePoint3d& startPoint ) const;
243 
244 
250  virtual OdResult getEndPoint( OdGePoint3d& endPoint ) const;
251 
252 
266  virtual OdResult getPointAtParam( double param, OdGePoint3d& pointOnCurve ) const;
267 
268 
283  virtual OdResult getParamAtPoint( const OdGePoint3d& pointOnCurve, double& param ) const;
284 
285 
300  virtual OdResult getDistAtParam( double param, double& dist ) const;
301 
302 
316  virtual OdResult getParamAtDist( double dist, double& param ) const;
317 
318 
334  virtual OdResult getFirstDeriv( double param, OdGeVector3d& firstDeriv ) const;
335 
336 
352  virtual OdResult getSecondDeriv( double param, OdGeVector3d& secondDeriv ) const;
353 
354 
358  virtual OdResult getArea( double& area ) const;
359 
362 
364  const OdGeMatrix3d& xfm);
365 
366  virtual OdResult getOdGeCurve(OdGeCurve3d*& pGeCurve, const OdGeTol& tol = OdGeContext::gTol) const;
367  virtual OdResult setFromOdGeCurve(const OdGeCurve3d& geCurve, OdGeVector3d *normal = NULL, const OdGeTol& tol = OdGeContext::gTol);
368 };
369 
378 
379 #include "TD_PackPop.h"
380 
381 #endif
382 
OdDbRay::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbRay::unitDir
OdGeVector3d unitDir() const
OdResult
OdResult
Definition: OdResult.h:29
OdDbRay::getPlane
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
OdDbCurve::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const =0
OdGePlane
Definition: GePlane.h:45
OdGeVector3d
Definition: GeVector3d.h:54
OdDbRay::getFirstDeriv
virtual OdResult getFirstDeriv(double param, OdGeVector3d &firstDeriv) const
NULL
#define NULL
Definition: GsProperties.h:177
OdDbRay::getParamAtPoint
virtual OdResult getParamAtPoint(const OdGePoint3d &pointOnCurve, double &param) const
OdDbRay::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
tol
tol
Definition: DimVarDefs.h:2287
OdDbRay::setFromOdGeCurve
virtual OdResult setFromOdGeCurve(const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
OdDbRay::subWorldDraw
bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbRay::subGetGeomExtents
OdResult subGetGeomExtents(OdGeExtents3d &extents) const
OdDbRay::isPeriodic
virtual bool isPeriodic() const
OdDbCurve::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
TD_PackPop.h
OdDbRay::TD_USING
TD_USING(OdDbCurve::getSecondDeriv)
OdDbRayPtr
OdSmartPtr< OdDbRay > OdDbRayPtr
Definition: DbRay.h:377
OdDbRay::getEndParam
virtual OdResult getEndParam(double &endParam) const
OdDbRay::getStartPoint
virtual OdResult getStartPoint(OdGePoint3d &startPoint) const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbRay::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbRay)
OdDbRay::getArea
virtual OdResult getArea(double &area) const
OdDbRay::isClosed
virtual bool isClosed() const
OdDbRay::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbRay::setBasePoint
void setBasePoint(const OdGePoint3d &geBasePoint)
OdDbRay::getDistAtParam
virtual OdResult getDistAtParam(double param, double &dist) const
OdDbRay::isPlanar
virtual bool isPlanar() const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbCurve.h
OdDbRay::getSecondDeriv
virtual OdResult getSecondDeriv(double param, OdGeVector3d &secondDeriv) const
OdDbRay::getPointAtParam
virtual OdResult getPointAtParam(double param, OdGePoint3d &pointOnCurve) const
OdDbRay::basePoint
OdGePoint3d basePoint() const
OdDbDxfFiler
Definition: DbFiler.h:194
TD_PackPush.h
OdDbRay::getOdGeCurve
virtual OdResult getOdGeCurve(OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
OdDbRay::getEndPoint
virtual OdResult getEndPoint(OdGePoint3d &endPoint) const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdGeCurve3d
Definition: GeCurve3d.h:56
OdDbCurve
Definition: DbCurve.h:53
OdDbRay::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdGeContext::gTol
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60
OdGeExtents3d
Definition: GeExtents3d.h:45
OdDbRay::getParamAtDist
virtual OdResult getParamAtDist(double dist, double &param) const
OdDbRay::getStartParam
virtual OdResult getStartParam(double &startParam) const
OdDbRay::TD_USING
TD_USING(OdDbCurve::getFirstDeriv)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbRay::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdGeTol
Definition: GeTol.h:49
OdDbRay::setUnitDir
void setUnitDir(const OdGeVector3d &geDirVector)
OdDbRay
Definition: DbRay.h:55
OdDbRay::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbRay::OdDbRay
OdDbRay()