API Reference > OdDb Classes > OdDbRay Class
OdDbRay Class
OdDbRayOdDbRayOdDbRayOdDbRay
Syntax
C++
class OdDbRay : public OdDbCurve;

DbRay.h

 

This class implements the ray object (Ray entity) in the database. This class inherits the base functionality of entities. A ray is a semi-infinite line.

TD_Db 

Example of Working with the Ray Object 

Working with Rays 

OdDbXline, OdDbLine classes

 
Name 
Description 
 
Builds an instance of the ray object. 
 
Name 
Description 
 
Returns the WCS coordinates of the base point from which the ray outs (DXF 10) as three-dimensional point instance. 
 
Reads the .dwg file data of this object.
 
 
This is DWGMAP_DECLARE_MEMBERS, a member of class OdDbRay. 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
This method is not applicable for the ray entity. 
 
Computes the distance along the ray measured from the base point in drawing units at the specified parameter.
 
 
This method is not applicable for the ray entity.
 
 
This method is not applicable for the ray entity.
 
 
Computes the first derivative for the specified parameter of the ray entity and returns the three-dimensional vector instance. The first derivative is constant for any point of the ray.
 
 
Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.  
 
Computes the parameter at the distance along the ray measured from the base point.
 
 
Computes the parameter at the point placed on the ray.
 
 
Gets an arbitrary plane passed through the ray entity. This method is inherited from the OdDbEntity class.
 
 
Computes the WCS coordinates of the point on the ray at the specified parameter value.
 
 
Computes the second derivative for the specified parameter of the ray entity and returns the three-dimensional vector instance. The second derivative has (0,0,0) coordinates for any point of the ray.
 
 
Gets the start parameter value. The start parameter equals a zero for rays.
 
 
Computes the WCS coordinates of the start point of the ray for which the parameter equals zero. The start point coincides with the base point.
 
 
Returns true if and only if this Curve object is closed. 
 
Returns true if and only if this Curve object is periodic. 
 
Determines whether the ray entity is planar as a Boolean value and returns True. This method is inherited from the OdDbEntity class. 
 
Sets the base point of the from which the ray outs (DXF 10). The initial value is (0,0,0) by default.
 
 
Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.  
 
Sets the direction vector of the ray (DXF 11) in WCS. The initial value is (0,0,1) by default.
 
 
overridables 
 
 
 
This is subTransformBy, a member of class OdDbRay. 
 
This is subWorldDraw, a member of class OdDbRay. 
 
This is the overview for the TD_USING method overload. 
 
Returns the WCS unit direction vector of the ray (DXF 11) as three-dimensional vector instance. This vector orients the ray in would space. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.