GetEllipseEdgeData Method (IHatchBoundaryLoop) Send Feedback
See Also  Example
Index
Index of the Ellipse edge whose data to get
CenterX[out]
x coordinate of the Ellipse center
CenterY[out]
y coordinate of the Ellipse center
MajorAxisX[out]
x coordinate of a point on the major axis of the Ellipse
MajorAxisY[out]
y coordinate of a point on the major axis of the Ellipse
MinorAxisLengthRatio[out]
Ratio of the length of the minor axis to the major axis
StartAngle[out]
Angle from the chord that is tangent to the start point of the Ellipse
EndAngle[out]
Angle from the chord that is tangent to the end point of the Ellipse
IsCounterclockwiseFlag[out]
True if the Ellipse is drawn in a counterclockwise direction, false if in a clockwise direction
Gets the specified Ellipse edge data for the Hatch boundary.

Syntax

Visual Basic 
Sub GetEllipseEdgeData( _
   ByVal Index As System.Integer, _
   ByRef CenterX As System.Double, _
   ByRef CenterY As System.Double, _
   ByRef MajorAxisX As System.Double, _
   ByRef MajorAxisY As System.Double, _
   ByRef MinorAxisLengthRatio As System.Double, _
   ByRef StartAngle As System.Double, _
   ByRef EndAngle As System.Double, _
   ByRef IsCounterclockwiseFlag As System.Boolean _
) 
C# 
void GetEllipseEdgeData( 
   System.int Index,
   out System.double CenterX,
   out System.double CenterY,
   out System.double MajorAxisX,
   out System.double MajorAxisY,
   out System.double MinorAxisLengthRatio,
   out System.double StartAngle,
   out System.double EndAngle,
   out System.bool IsCounterclockwiseFlag
)
JavaScript 
GetEllipseEdgeData( 
   Index : Number
) : {
   CenterX : Number,
   CenterY : Number,
   MajorAxisX : Number,
   MajorAxisY : Number,
   MinorAxisLengthRatio : Number,
   StartAngle : Number,
   EndAngle : Number,
   IsCounterclockwiseFlag : Boolean
}
COM native C++ 
HRESULT GetEllipseEdgeData( 
   LONG Index,
   DOUBLE* CenterX,
   DOUBLE* CenterY,
   DOUBLE* MajorAxisX,
   DOUBLE* MajorAxisY,
   DOUBLE* MinorAxisLengthRatio,
   DOUBLE* StartAngle,
   DOUBLE* EndAngle,
   VARIANT_BOOL* IsCounterclockwiseFlag
) 
C++ 
DSRESULT GetEllipseEdgeData( 
   long Index,
   double* CenterX,
   double* CenterY,
   double* MajorAxisX,
   double* MajorAxisY,
   double* MinorAxisLengthRatio,
   double* StartAngle,
   double* EndAngle,
   bool* IsCounterclockwiseFlag
) 

Parameters

Index
Index of the Ellipse edge whose data to get
CenterX[out]
x coordinate of the Ellipse center
CenterY[out]
y coordinate of the Ellipse center
MajorAxisX[out]
x coordinate of a point on the major axis of the Ellipse
MajorAxisY[out]
y coordinate of a point on the major axis of the Ellipse
MinorAxisLengthRatio[out]
Ratio of the length of the minor axis to the major axis
StartAngle[out]
Angle from the chord that is tangent to the start point of the Ellipse
EndAngle[out]
Angle from the chord that is tangent to the end point of the Ellipse
IsCounterclockwiseFlag[out] or Return Value
True if the Ellipse is drawn in a counterclockwise direction, false if in a clockwise direction

Example

Remarks

This method is valid only when IHatchBoundaryLoop::GetEdgeType is dsHatchEdgeType_e.dsHatchEdgeType_EllArc.

Before calling this method, call IHatchBoundaryLoop::GetEdgesCount to determine a valid value for Index.

 

See Also

Availability

DraftSight V1R1.3