CVB.Net 14.0
NodeMapDictionary Class Reference

Device dictionary holding all node maps. More...

Inherits ReadOnlyDictionaryBase< string, NodeMap >, and IDisposable.

Inherited by BufferNodeMapDictionary, DeviceNodeMapDictionary, and StreamNodeMapDictionary.

Public Member Functions

void Dispose ()
 Dispose of all node maps immediately.
 
override bool TryGetValue (string name, out NodeMap value)
 Tries to get the node map with the given name . More...
 
- Public Member Functions inherited from ReadOnlyDictionaryBase< string, NodeMap >
virtual bool ContainsKey (TKey key)
 Determines whether the key is in this collection. More...
 
virtual bool TryGetValue (TKey key, out TValue value)
 Retrieves the value that is associated with the specific key . More...
 

Static Public Member Functions

static NodeMapDictionary FromImage (MultiPartImage image)
 Creates a new NodeMapDictionary from a given MultiPartImage More...
 
static NodeMapDictionary FromPointCloud (PointCloud pointCloud)
 Creates a new NodeMapDictionary from a given PointCloud More...
 
static NodeMapDictionary FromComposite (Composite composite)
 Creates a new NodeMapDictionary from a given Composite More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Disposable implementation. More...
 
override bool Contains (KeyValuePair< string, NodeMap > item)
 Gets whether the given pair item is contained in this node map dictionary. More...
 
override void CopyTo (KeyValuePair< string, NodeMap >[] array, int arrayIndex)
 Copies the elements of this dictionary into the given array starting at index arrayIndex . More...
 
override IEnumerator< KeyValuePair< string, NodeMap > > GetEnumerator ()
 Gets the enumerator for the KeyValuePair<TKey, TValue>s. More...
 
- Protected Member Functions inherited from ReadOnlyDictionaryBase< string, NodeMap >
 ReadOnlyDictionaryBase (IDictionary< TKey, TValue > dictionary)
 Creates a new ReadOnlyDictionary wrapping the given dictionary . More...
 
virtual bool Contains (KeyValuePair< TKey, TValue > item)
 Determines whether the item is in this collection. More...
 
virtual void CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex)
 Copies the entire collection to a compatible one-dimensional array , starting at the specified arrayIndex . More...
 
virtual IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator ()
 Returns an enumerator that iterates through this collection. More...
 

Protected Attributes

IntPtr ParentHandle
 Native handle of the parent object holding the node maps.
 

Properties

virtual bool IsDisposed [get]
 Gets whether this object has been disposed.
 
override NodeMap this[string name] [get]
 Indexer to retrieve a node map with the given name . More...
 
override ICollection< NodeMapValues [get]
 Gets the value-collection containing all available nodes maps.
 
- Properties inherited from ReadOnlyDictionaryBase< string, NodeMap >
IDictionary< TKey, TValue > Dictionary [get]
 Gets the wrapped dictionary.
 
virtual TValue this[TKey key] [get]
 Gets the element that has the specified key . More...
 
int Count [get]
 Gets the number of items in the dictionary.
 
virtual ICollection< TKey > Keys [get]
 Gets a read-only collection of all keys in this dictionary.
 
virtual ICollection< TValue > Values [get]
 Gets a read-only collection of all values in this dictionary.
 

Detailed Description

Device dictionary holding all node maps.

Member Function Documentation

◆ Contains()

override bool Contains ( KeyValuePair< string, NodeMap item)
protected

Gets whether the given pair item is contained in this node map dictionary.

Parameters
itemElement to be checked.
Returns
true if the key/value pair exists; false otherwise.

◆ CopyTo()

override void CopyTo ( KeyValuePair< string, NodeMap >[]  array,
int  arrayIndex 
)
protected

Copies the elements of this dictionary into the given array starting at index arrayIndex .

Parameters
arrayArray to copy elements into.
arrayIndexStart index to copy to.

◆ Dispose()

virtual void Dispose ( bool  disposing)
protectedvirtual

Disposable implementation.

Parameters
disposingtrue if called from IDisposable.Dispose; false if called from finalizer.

◆ FromComposite()

static NodeMapDictionary FromComposite ( Composite  composite)
static

Creates a new NodeMapDictionary from a given Composite

Parameters
compositeComposite object.
Returns

◆ FromImage()

static NodeMapDictionary FromImage ( MultiPartImage  image)
static

Creates a new NodeMapDictionary from a given MultiPartImage

Parameters
image
Returns

◆ FromPointCloud()

static NodeMapDictionary FromPointCloud ( PointCloud  pointCloud)
static

Creates a new NodeMapDictionary from a given PointCloud

Parameters
pointCloudPoint cloud object.
Returns

◆ GetEnumerator()

override IEnumerator< KeyValuePair< string, NodeMap > > GetEnumerator ( )
protectedvirtual

Gets the enumerator for the KeyValuePair<TKey, TValue>s.

Returns
Typed enumerator.

Reimplemented from ReadOnlyDictionaryBase< string, NodeMap >.

◆ TryGetValue()

override bool TryGetValue ( string  name,
out NodeMap  value 
)

Tries to get the node map with the given name .

Parameters
nameName of the node map.
valueWill contain the NodeMap object if present.
Returns
true if name is contained in this dictionary; false otherwise.

Property Documentation

◆ this[string name]

override NodeMap this[string name]
get

Indexer to retrieve a node map with the given name .

Parameters
nameName of the node map.
Returns
NodeMap with the given name .
Exceptions
ArgumentNullExceptionThrown if name is null.
KeyNotFoundExceptionThrown if name does not exist in this collection.