ToolPin ClassCognex VisionPro 9.21

Class used to expose Tool Input and Output data for linking in the GUI.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision.Implementation TrackedItemBase
        Cognex.Vision.Implementation ToolPin

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

public sealed class ToolPin : TrackedItemBase, 
	IObject

The ToolPin type exposes the following members.

Constructors

  NameDescription
Public methodToolPin(String)

Constructs a ToolPin with the given name and path.

Public methodToolPin(String, TypeMeta)

Constructs a ToolPin with the given name and pinType.

Public methodToolPin(String, Object)

Constructs a ToolPin with the given name and value.

Public methodToolPin(String, String)

Constructs a ToolPin with the given name and path.

Public methodToolPin(String, TypeMeta, Object)

Constructs a ToolPin with the given name and value.

Top
Methods

  NameDescription
Public methodAddLink

Adds a link between this pin and pinToLink.

Public methodCanLink

Determines if two pins can be linked.

Public methodStatic memberCheckTypeCompatibilty

Check two Vision types for compatibility.

Public methodEquals
Compares the equality of this object with another.
(Overrides TrackedItemBase Equals(Object).)
Public methodGetContainerAsILinkManager

Get the container which contains the Tool which contains this ToolPin.

Public methodGetHashCode
Returns the hash code of this object.
(Overrides TrackedItemBase GetHashCode .)
Public methodGetLinkablePins

Gets all the pins that may be linked with this pin.

Public methodGetLinkedPins 

Gets all the pins that are linked to/from this pin.

Public methodGetLinkedPins(LinkStateConstants)

Gets all the pins that are linked to/from this pin that match the given linkState.

Public methodGetToolOwner

Gets the Tool which contains this pin.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodIsInput

Gets whether the pin is an input.

Public methodIsOutput

Gets whether the pin is an output.

Public methodStatic memberIsValidName

COGNEX INTERNAL USE ONLY.

Public methodRemoveLink

Removes any links from this ToolPin to/from the ToolPin provided as an argument.

Public methodRemoveLinks

Removes all links from this ToolPin to/from any other ToolPins.

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.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
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.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two ToolPin objects.
Public operatorStatic memberInequality
Compares the inequality of two ToolPin objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfPath
Public fieldStatic memberSfPinType
Public fieldStatic memberSfValue
Top
Properties

  NameDescription
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyHandle (Overrides TrackedItemBase Handle.)
Public propertyID

Gets the ID of the tracked item.

(Overrides TrackedItemBase ID.)
Public propertyMode

Gets/sets whether the ToolPin has dedicated storage for its value or fetches its value from the given Path of the Tool.

Public propertyName
Get

Gets the name of the pin.

(Overrides TrackedItemBase Name.)
Public propertyParent

Return a reference to the containing tracking collection. May be null.

(Overrides TrackedItemBase Parent.)
Public propertyPath
Get

Gets/sets the string path to the property of the Tool which this pin exposes.

Public propertyPinType

Gets the type of the ToolPin's value, used when determining compatibility of two pins for linking.

Public propertyValue
Get

Gets/sets the actual value that this ToolPin exposes.

Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Public eventNameChanging

This event is raised when the Name is about to change. Note that this is a cancellable event.

(Overrides TrackedItemBase NameChanging.)
Top
See Also