Sets the line segment geometry from the given LineSegment. 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.InternalAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax
Parameters
- lineSegment
- Type: Cognex.VisionPro CogLineSegment
The line segment.
Implements
ICogGeneralContourLineSegmentIterator SetFromLineSegment(CogLineSegment)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. |
Remarks
Sets the line segment geometry from the given CogLineSegment. 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