IShape InterfaceCognex VisionPro 9.25 SR1

Base interface for all shapes.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
Syntax

public interface IShape : IChangedEvent, IObject, 
	IDiamondGraphicShape

The IShape 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 ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent 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 IChangedEvent.)
Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Inherited from IChangedEvent.)
Top
Properties

  NameDescription
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Inherited from IChangedEvent.)
Public propertySelectedSpaceName
Get
(Inherited from IDiamondGraphicShape.)
Top
Events

  NameDescription
Public eventChanged

The actual event.

(Inherited from IChangedEvent.)
Top
Remarks

Base interface for all closed shapes.

See Also