CFx SDK Documentation  2022 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbRay > OdDbRayPtr
Definition: DbRay.h:377
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
Definition: DbRay.h:55
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
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
ODDB_DECLARE_MEMBERS(OdDbRay)
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:60