CogGeneralContourEllipticalArcSegmentIterator SetFromEllipticalArc Method Cognex VisionPro
Sets the arc segment geometry from the specified elliptical arc. Only the geometry is copied, graphics properties are ignored. Note that this method also changes the geometry of any connected segments because it changes both Start and End of this segment.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public virtual void SetFromEllipticalArc(
	CogEllipticalArc ellipticalArc
)

Implements

ICogGeneralContourEllipticalArcSegmentIterator SetFromEllipticalArc(CogEllipticalArc)
Events

Event TypeReason
CogGeneralContourSegmentIteratorChanged

Fires when the segment changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    CogShapeBadContourSegTypeException

    The SegmentType is not EllipticalArc

    CogIteratorInvalidIteratorException

    This iterator is not valid.

    ArgumentException

    The ellipse fraction computed from the arc's AngleSpan is <= 0 or >= 1.

    ArgumentException

    ellipticalArc is Nothing.

    Remarks

    Sets the arc segment geometry from the specified elliptical arc. Only the geometry is copied; graphics properties are ignored.

    Note: This method also changes the geometry of any connected segments because it changes the start and end of this segment.

    See Also