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.InternalAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 79.0.0.0
Syntax
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 Type | Reason |
|---|---|
| CogGeneralContourSegmentIteratorChanged | Fires when the segment changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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