CogGeneralContourSegmentIterator ClassCognex VisionPro 9.20
A general contour segment iterator object provides access to all the segment data in the contour.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro CogGeneralContourSegmentIterator

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

public class CogGeneralContourSegmentIterator : CogObjectBase, 
	ICogNetInternal, IDisposable

The CogGeneralContourSegmentIterator type exposes the following members.

Constructors

  NameDescription
Public methodCogGeneralContourSegmentIterator 
Constructs a new instance of this class.
Public methodCogGeneralContourSegmentIterator(IntPtr)
Constructs a new instance of this class using com pointer.
Top
Methods

  NameDescription
Protected methodattachCom
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 methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
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 methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected field__com
Protected field__disposed
Protected fieldStatic member__factory
Protected fieldStatic memberCreator
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 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 propertyOwnedEllipticalArcSegmentIterator
Gets the full set of elliptical arc segment parameters for this iterator. The parameters are owned by this iterator object, but are conveniently grouped together inside the returned interface.
Public propertyOwnedLineSegmentIterator
Gets the full set of line segment parameters for this iterator. The parameters are owned by this iterator object, but are conveniently grouped together inside the returned interface.
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

The general contour segment iterator iterates all the segments in a CogGeneralContour, and allows reading and writing of the segment's common properties.

See Also