CVB.Net 14.0
SampleList.SampleCollection< TData > Class Template Referenceabstract

Collection of data samples. SampleImageList. More...

Inherits IEnumerable< TData >.

Inherited by SampleImageList.ImageCollection.

Public Member Functions

TData Remove (int index)
 Remove a sample. More...
 

Protected Member Functions

abstract TData GetData (IntPtr dataHandle)
 Retrieve the data behind a TSILDATA handle. More...
 
Image GetImage (IntPtr dataHandle)
 Retrieve the image behind a TSILDATA handle. More...
 
unsafe float[] GetFloatVector (IntPtr dataHandle)
 Retrieve the float vector behind a TSILDATA handle. More...
 

Properties

int Count [get]
 Get the number of samples for this collection. More...
 
TData this[int index] [get]
 Access one of the sample images. More...
 

Detailed Description

Collection of data samples. SampleImageList.

Template Parameters
TDataType of data stored in the samples.

Member Function Documentation

◆ GetData()

abstract TData GetData ( IntPtr  dataHandle)
protectedpure virtual

Retrieve the data behind a TSILDATA handle.

Parameters
dataHandleNative handle of the data object.
Returns
The data object referred to.

Implemented in SampleImageList.ImageCollection.

◆ GetFloatVector()

unsafe float[] GetFloatVector ( IntPtr  dataHandle)
protected

Retrieve the float vector behind a TSILDATA handle.

Parameters
dataHandleThe native data handle.
Returns
The vector data associated with the dataHandle .

◆ GetImage()

Image GetImage ( IntPtr  dataHandle)
protected

Retrieve the image behind a TSILDATA handle.

Parameters
dataHandleNative handle of the data object.
Returns
The image associated with the dataHandle .

◆ Remove()

TData Remove ( int  index)

Remove a sample.

Parameters
indexindex of the sample to be removed
Exceptions
ArgumentOutOfRangeExceptionIf the index is invalid
ObjectDisposedExceptionIf the parent list has already been disposed.
Returns
The removed data object.
Exceptions
ObjectDisposedExceptionIf the parent SampleImageList has already been disposed.
ArgumentOutOfRangeExceptionif the index is outside the range [0...Count-1].

Property Documentation

◆ Count

int Count
get

Get the number of samples for this collection.

Exceptions
ObjectDisposedExceptionIf the parent list has already been disposed.

◆ this[int index]

TData this[int index]
get

Access one of the sample images.

Parameters
indexindex to be accessed
Returns
image
Exceptions
ObjectDisposedExceptionIf the parent list has already been disposed.
ArgumentOutOfRangeExceptionIf the index is invalid