ICogShape MethodsCognex VisionPro 9.25 SR1

The ICogShape type exposes the following members.

Methods

  NameDescription
Public methodDistanceToPoint
Shortest distance from a boundary of this shape to the given point. Points within closed shapes return a distance less than zero.
Public methodEnclosingRectangle
Minimum enclosing rectangle of this shape.
Public methodFitToBoundingBox
Adjust the shape's geometric properties so that the shape fits inside passed in rectangle.
Public methodFitToImage
Adjust the shape's geometric properties such that its default size is based on the image and its SelectedSpaceName. XScale and YScale are multipliers where 1.0 designates 100% scaling.
Public methodMap
Maps this shape through the given transform.
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
(Inherited from ICogChangedEvent.)
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from ICogChangedEvent.)
Top
See Also