ICogGeneralContourLineSegmentIterator MethodsCognex VisionPro 9.22 SR1

The ICogGeneralContourLineSegmentIterator type exposes the following members.

Methods

  NameDescription
Public methodCopy
Makes a copy of this iterator. The copy will be positioned at the same item as this plus the given IndexOffset. For example, if IndexOffset is +1 the copy will be positioned at the next item, if IndexOffset is -1, the copy will be at the previous item.
Public methodCreateLineSegment
Creates a gcnew CogLineSegment with the same geometric and graphics properties as this segment.
Public methodGetEllipticalArcSegmentIterator
Gets the iterator interface that provides full access to arc segment properties.
Public methodGetLineSegmentIterator
Gets the iterator interface that provides full access to line segment properties.
Public methodGetStartEnd
Returns the start and end coordinates for the line segment.
Public methodMoveToNext
Moves the iterator to the next position, loading that item's properties into this iterator. If the iterator is at the end position, an error is returned. To avoid getting errors, you may wish to check IsEnd.
Public methodMoveToPosition
Moves the iterator to the specified position in the sequence, loading that item's properties into this iterator.
Public methodMoveToPrevious
Moves the iterator to the previous position, loading that item's properties into this iterator. If there are no items before this, an error is returned. To avoid getting errors, you may wish to check IsFirst.
Public methodSetFromLineSegment
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.
Public methodSetStartEnd
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.
Top
See Also