API Reference > OdDb Classes > OdDbEllipse Class
OdDbEllipse Class
OdDbEllipseOdDbEllipseOdDbEllipseOdDbEllipse
Syntax
C++
class OdDbEllipse : public OdDbCurve;

DbEllipse.h

 

This class implements the ellipse object (Ellipse entity) in the database. This class inherits the base functionality of entities. The ellipse entity can represent either an elliptical closed figure (ellipse) or unclosed elliptical segment (elliptical arc) in world space. When the start angle coincides with the end angle, the figure is closed and this class represents an ellipse. When the start angle differs from the end angle on 1e-6, the figure is unclosed and this class represents an elliptical arc.

The ellipse must have (StartAngle = 0) and (EndAngle = Oda2PI). The elliptical arc has (EndAngle - StartAngle) > 1e-6. The radius ratio must be in the range [1e-6 to 1.0].

 
Name 
Description 
 
Builds an instance of the ellipse object. 
 
Name 
Description 
 
Returns the angle value corresponding to the specified parameter value.
 
 
Returns the WCS coordinates of the center for the elliptical figure (ellipse or arc) (DXF 10) as three-dimensional point instance. 
 
Reads the .dwg file data of this object.
 
 
This is DWGMAP_DECLARE_MEMBERS, a member of class OdDbEllipse. 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the end angle of the elliptical figure (ellipse or arc) in radians (DXF 51). 
 
get 
{NoAutoLink} Gets the properties for the ellipse entity. This method passes the properties through own arguments.
 
 
When an elliptical figure is unclosed, this method returns the area calculated for the closed figure formed by the elliptical arc and a line passed from the end point to the start point. When an elliptical figure is closed, this method returns the area of the ellipse.
 
 
Computes the distance along the elliptical figure (ellipse or arc) measured from the start point to the point on the elliptical curve specified the parameter.
 
 
Gets the end parameter value of the elliptical figure (ellipse or arc). The OdDbEllipse::setEndParam() method sets this value. Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.
 
 
Computes the WCS coordinates of the end point on the elliptical figure (ellipse or arc) for which the parameter equals the end value. When the elliptical figure is closed, the end point coincides with the start point. When the elliptical figure is unclosed, the end point corresponds to the end angle.
 
 
Computes the first derivative for the specified parameter of the elliptical figure (ellipse or arc) and returns the three-dimensional vector instance.
 
 
Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.  
 
Computes the parameter at the distance along the elliptical figure (ellipse or arc). Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.
 
 
Computes the parameter at the point placed on the elliptical figure (ellipse or arc). Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.
 
 
Gets a plane in which the ellipse entity places. This method is inherited from the OdDbEntity class.
 
 
Computes the WCS coordinates of the point on the elliptical figure (ellipse or arc) at the specified parameter value. Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.
 
 
Computes the second derivative for the specified parameter of the elliptical figure (ellipse or arc) and returns the three-dimensional vector instance.
 
 
Gets the start parameter value of the elliptical figure (ellipse or arc). The OdDbEllipse::setStartParam() method sets this value. Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.
 
 
Computes the WCS coordinates of the start point on the elliptical figure (ellipse or arc) for which the parameter equals the start value. When the elliptical figure is closed, the end point coincides with the start point. When the elliptical figure is unclosed, the start point corresponds to the start angle.
 
 
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 elliptical figure is planar as a Boolean value and returns True. This method is inherited from the OdDbEntity class. 
 
Returns the WCS major axis vector for the elliptical figure (ellipse or arc). The major axis defines the major radius and rotation of the elliptical figure in the plane. 
 
Returns the WCS minor axis vector for the elliptical figure (ellipse or arc). The minor axis defines the minor radius. The minor axis is perpendicular to the major axis. The minor radius less than or equal the major radius. 
 
Returns the WCS unit vector which is the normal to the plane of the ellipse entity (DXF 210). The normal defines the orientation of the ellipse plane in world space. 
 
Returns the parameter value corresponding to the specified angle value.
 
 
Returns the ratio of the minor radius to the major radius for the elliptical figure (ellipse or arc). The radius ratio is in the range [1e-6 to 1.0]. 
 
This is reverseCurve, a member of class OdDbEllipse. 
 
set 
{NoAutoLink} Sets the properties for the ellipse entity.
 
 
Sets the center of the elliptical figure (ellipse or arc) (DXF 10) in WCS. The initial value is (0,0,0) by default.
 
 
Sets the end angle for the elliptical figure (ellipse or arc) in the range ±2PI radians (DXF 51). A positive value specifies the angle measured from the major axis counterclockwise. A negative value specifies the angle measured from the major axis clockwise. The initial value is 2PI by default.
 
 
Sets the end parameter for the elliptical figure (ellipse or arc) (DXF 42). Parameter is an angle measured from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius. A positive value specifies the end parameter measured counterclockwise A negative value specifies the end parameter measured clockwise. The initial value is 2PI by default.
 
 
Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.  
 
Sets the ratio of the minor radius to the major radius for the elliptical figure (ellipse or arc) in the range [1e-6 to 1.0]. The initial value is 1.0 by default.
 
 
Sets the start angle for the elliptical figure (ellipse or arc) in the range ±2PI radians (DXF 50). A positive value specifies the angle measured from the major axis counterclockwise. A negative value specifies the angle measured from the major axis clockwise. The initial value is zero by default.
 
 
Sets the start parameter for the elliptical figure (ellipse or arc) (DXF 41). Parameter is an angle measured from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius. A positive value specifies the start parameter measured counterclockwise A negative value specifies the start parameter measured clockwise. The initial value is zero by default.
 
 
Returns the start angle of the elliptical figure (ellipse or arc) in radians (DXF 50). 
 
overridables 
 
This is subTransformBy, a member of class OdDbEllipse. 
 
This is subWorldDraw, a member of class OdDbEllipse. 
 
This is the overview for the TD_USING method overload. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.