ICogGeneralContourEllipticalArcSegmentIterator InterfaceCognex VisionPro 9.5
Iterator describing elliptical arc segments of a general contour.

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

public interface ICogGeneralContourEllipticalArcSegmentIterator

The ICogGeneralContourEllipticalArcSegmentIterator 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 methodCreateEllipticalArc
Creates a gcnew CogEllipticalArc 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 methodGetStartMidpointEndEllipseFraction
Gets StartX, StartY, MidpointX, MidpointY, EndX, EndY, and EllipseFraction of this elliptical arc.
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 methodSetFromEllipticalArc
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.
Public methodSetStartMidpointEndEllipseFraction
Sets StartX, StartY, MidpointX, MidpointY, EndX, EndY, and EllipseFraction of this elliptical arc segment. Note that this method will also change the geometry of any connected segments because it changes the Start and End of this segment.
Top
Properties

  NameDescription
Public propertyAttributes
Returns property bits describing which iterator methods can be called at the current position of the iterator.
Public propertyContainer
Returns a reference to the container object being iterated. This can be used for identifying the iterator's container.
Public propertyCustomPen
Returns/sets the key that refers to the custom pen properties used for drawing this segment. A key of 0 (the default) causes the segment to use the pen properties of the contour.
Public propertyEllipseFraction
Returns/sets the fraction of the ellipse that passes through the start, mid and end points. For slight arcs, using roughly a quarter of the ellipse will usually provide good results. This property must be between 0 and 1 (exclusive).
Public propertyEndAdornmentCustomPen
Returns/sets the custom pen used to draw the adornment at the end point of the segment.
Public propertyEndAngle
Computes the angle (in radians) of the tangent to this segment's shape at the end of the segment.
Public propertyEndFlags
Returns the flags describing the contour's behavior at end point of the segment.
Public propertyEndX
Returns/sets the X coordinate of the end point of the segment.
Public propertyEndY
Returns/sets the Y coordinate of the end point of the segment.
Public propertyIsEnd
Returns True if this iterator is positioned past the last item of the sequence. If True, calling MoveToNext will return an error, and attempting to read item properties will produce an error. Moving the iterator to a valid item will validate it.
Public propertyIsFirst
Returns True if this is the first item. If True, a call to MoveToPrevious would return an error.
Public propertyIsInvalid
Returns True if this iterator is not positioned at a valid item. If True, reading or writing any item properties will produce errors.
Public propertyLength
Computes the length of this segment of the contour.
Public propertyMidpointX
Returns/sets the X coordinate of the elliptical arc midpoint.
Public propertyMidpointY
Returns/sets the Y coordinate of the elliptical arc midpoint.
Public propertyPosition
Returns the position of the iterator in the container.
Public propertySegmentType
Returns the type of this segment of the contour. The segment type can be used to choose the most specific iterator to extract all information about the segment.
Public propertyStartAdornmentCustomPen
Returns/sets the custom pen used to draw the adornment at the start point of the segment.
Public propertyStartAngle
Computes the angle (in radians) of the tangent to this segment's shape at the start of the segment.
Public propertyStartFlags
Returns the flags describing the contour's behavior at start point of the segment.
Public propertyStartX
Returns/sets the X coordinate of the start point of the segment.
Public propertyStartY
Returns/sets the Y coordinate of the start point of the segment.
Top
Remarks

Iterator describing elliptical arc segments of a general contour.

See Also