CogGeneralContourLineSegmentIterator SetStartEnd Method Cognex VisionPro 9.5
Sets the start and end coordinates for the line segment. Note that this may change the start or end coordinates of any segments connected to this one.

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

public virtual void SetStartEnd(
	double startX,
	double startY,
	double endX,
	double endY
)

Parameters

startX
Type: System Double

X-coordinate of the start point of the segment.

startY
Type: System Double

Y-coordinate of the start point of the segment.

endX
Type: System Double

X-coordinate of the end point of the segment.

endY
Type: System Double

Y-coordinate of the end point of the segment.

Implements

ICogGeneralContourLineSegmentIterator SetStartEnd(Double, Double, Double, Double)
Events

Event TypeReason
CogGeneralContourSegmentIteratorChanged

Fires when the segment changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    CogShapeBadContourSegTypeException

    The SegmentType is not Line

    CogIteratorInvalidIteratorException

    This iterator is not valid.

    CogShapeCoordinatesMustDifferException

    Points in the new segment are coincident.

    Remarks

    Sets the start and end coordinates for the line segment. Note that this may change the start or end coordinates of any segments connected to this one.

    See Also