ToolTrackingCollection ClassCognex VisionPro 9.24

An ordered collection of Vision Tools that raises events whenever a change is made.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision.Implementation TrackingCollectionOfIToolPtr
        Cognex.Vision ToolTrackingCollection

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

public sealed class ToolTrackingCollection : TrackingCollectionOfIToolPtr, 
	IObject

The ToolTrackingCollection type exposes the following members.

Constructors

  NameDescription
Public methodToolTrackingCollection 

Constructs a new instance of the collection class.

Public methodToolTrackingCollection(IObject)

Construct a new instance of the tracking collection class with a parent specified by the argument.

Public methodToolTrackingCollection(Int64)

Constructs a new instance of the collection class with an initial capacity specified by the argument.

Top
Methods

  NameDescription
Public methodAdd

Add an item to the end of this collection.

(Overrides TrackingCollectionOfIToolPtr Add(ITool).)
Public methodAddRange
Adds the elements of the specified collection to the end of the collection.
Public methodClear

Remove all items from this collection.

(Overrides TrackingCollectionOfIToolPtr Clear .)
Public methodContains(KeyValuePair String, ITool )

Determines whether this dictionary contains the specified nameOrID.

(Overrides TrackingCollectionOfIToolPtr Contains(KeyValuePair String, ITool ).)
Public methodContains(ITool)

Determine whether an item is in this collection.

(Overrides TrackingCollectionOfIToolPtr Contains(ITool).)
Public methodContainsKey

Determines whether this dictionary contains the specified nameOrID.

(Overrides TrackingCollectionOfIToolPtr ContainsKey(String).)
Public methodCopyTo( KeyValuePair String, ITool  , Int32) (Overrides TrackingCollectionOfIToolPtr CopyTo( KeyValuePair String, ITool  , Int32).)
Public methodCopyTo( ITool , Int32)
Copies all the elements of the collection to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 32-bit integer.
(Overrides TrackingCollectionOfIToolPtr CopyTo( ITool , Int32).)
Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodGenerateUniqueToolName

Generates a unique name for the input tool type name.

Public methodGetEnumerator
Returns an IEnumerator for the collection.
(Overrides TrackingCollectionOfIToolPtr GetEnumerator .)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetItem
Get the item at the specified index.
(Overrides TrackingCollectionOfIToolPtr GetItem(Int32).)
Public methodGetItemByKey
Get the item at the specified index.
(Overrides TrackingCollectionOfIToolPtr GetItemByKey(String).)
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 TrackingCollectionOfIToolPtr GetTypeMeta .)
Public methodIndexOf

Find the first item in this collection that matches the supplied item, and return its index.

(Overrides TrackingCollectionOfIToolPtr IndexOf(ITool).)
Public methodInsert

Insert the given item at the specified index.

(Overrides TrackingCollectionOfIToolPtr Insert(Int32, ITool).)
Public methodInsertFromToolTypeName

Insert a tool of the type specified by the input toolTypeName. Generate and assign this tool a unique name using its type.

Public methodKey

Get the key at the specified index.

(Overrides TrackingCollectionOfIToolPtr Key(Int32).)
Public methodMove

Move the selected item to a new index in this collection.

(Overrides TrackingCollectionOfIToolPtr Move(Int32, Int32).)
Public methodRemove(String)

Remove the item with the specified nameOrID from this dictionary.

(Overrides TrackingCollectionOfIToolPtr Remove(String).)
Public methodRemove(ITool)

Remove the specified item from this collection.

(Overrides TrackingCollectionOfIToolPtr Remove(ITool).)
Public methodRemoveAt

Remove the item at the specified index.

(Overrides TrackingCollectionOfIToolPtr RemoveAt(Int32).)
Public methodReserve

Set the collection capacity to be at least the specified number of items. If minimumCapacity is greater than the current collection capacity, this method will cause the collection to reallocate its storage, increasing its capacity to at least minimumCapacity. Attempts to set capacity to a value less than or equal to the current value are ignored.

(Overrides TrackingCollectionOfIToolPtr Reserve(Int64).)
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 TrackingCollectionOfIToolPtr ResumeAndRaiseChangedEvent .)
Public methodsetItem

Replace the element at the specified index.

(Overrides TrackingCollectionOfIToolPtr setItem(Int32, ITool).)
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 TrackingCollectionOfIToolPtr SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides TrackingCollectionOfIToolPtr ToString .)
Public methodTryGetByIndex

Get the key and value associated with the specified index.

(Overrides TrackingCollectionOfIToolPtr TryGetByIndex(Int32, String , ITool ).)
Public methodTryGetValue

Get the item associated with the specified nameOrID.

(Overrides TrackingCollectionOfIToolPtr TryGetValue(String, ITool ).)
Top
Operators

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

  NameDescription
Public fieldStatic memberSfParent
Top
Properties

  NameDescription
Public propertyCapacity

Get the capacity of this collection. This is the maximum number of items that may be stored in this collection without reallocation. Capacity is increased automatically as needed to hold added items.

(Overrides TrackingCollectionOfIToolPtr Capacity.)
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides TrackingCollectionOfIToolPtr ChangedEventSuspended.)
Public propertyCount

Get the number of elements contained in this collection.

(Overrides TrackingCollectionOfIToolPtr Count.)
Public propertyHandle (Overrides TrackingCollectionOfIToolPtr Handle.)
Public propertyIsReadOnly

Get whether or not this collection is read-only.

(Overrides TrackingCollectionOfIToolPtr IsReadOnly.)
Public propertyItem Int32  (Overrides TrackingCollectionOfIToolPtr Item Int32 .)
Public propertyItem String  (Overrides TrackingCollectionOfIToolPtr Item String .)
Public propertyKeys (Inherited from TrackingCollectionOfIToolPtr.)
Public propertyParent
Get

Gets the parent object of this CogToolTrackingCollection.

Public propertyValues (Inherited from TrackingCollectionOfIToolPtr.)
Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides TrackingCollectionOfIToolPtr Changed.)
Public eventCleared

Raised after the collection is cleared.

(Overrides TrackingCollectionOfIToolPtr Cleared.)
Public eventClearing

Raised before the collection is cleared.

(Overrides TrackingCollectionOfIToolPtr Clearing.)
Public eventInsertedItem

Raised after an item is inserted.

(Overrides TrackingCollectionOfIToolPtr InsertedItem.)
Public eventInsertingItem

Raised before an item is inserted.

(Overrides TrackingCollectionOfIToolPtr InsertingItem.)
Public eventMovedItem

Raised after an item is moved to a new index.

(Overrides TrackingCollectionOfIToolPtr MovedItem.)
Public eventMovingItem

Raised before an item is moved to a new index.

(Overrides TrackingCollectionOfIToolPtr MovingItem.)
Public eventRemovedItem

Raised after an item is removed.

(Overrides TrackingCollectionOfIToolPtr RemovedItem.)
Public eventRemovingItem

Raised before an item is removed.

(Overrides TrackingCollectionOfIToolPtr RemovingItem.)
Public eventReplacedItem

Raised after an item is replaced.

(Overrides TrackingCollectionOfIToolPtr ReplacedItem.)
Public eventReplacingItem

Raised before an item is replaced.

(Overrides TrackingCollectionOfIToolPtr ReplacingItem.)
Public eventTrackedItemLastRunRecordChanged

This event is raised when any of the contained tools raises a Changed event with the SfCreateLastRunRecord state flag.

Public eventTrackedItemNameChanging (Overrides TrackingCollectionOfIToolPtr TrackedItemNameChanging.)
Top
See Also