Collection of data samples. SampleImageList.
More...
Inherits IEnumerable< TData >.
Inherited by SampleImageList.ImageCollection.
|
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...
|
|
Collection of data samples. SampleImageList.
- Template Parameters
-
TData | Type of data stored in the samples. |
◆ GetData()
abstract TData GetData |
( |
IntPtr |
dataHandle | ) |
|
|
protectedpure virtual |
Retrieve the data behind a TSILDATA handle.
- Parameters
-
dataHandle | Native 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
-
dataHandle | The 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
-
dataHandle | Native handle of the data object. |
- Returns
- The image associated with the dataHandle .
◆ Remove()
TData Remove |
( |
int |
index | ) |
|
Remove a sample.
- Parameters
-
index | index of the sample to be removed |
- Exceptions
-
ArgumentOutOfRangeException | If the index is invalid |
ObjectDisposedException | If the parent list has already been disposed. |
- Returns
- The removed data object.
- Exceptions
-
ObjectDisposedException | If the parent SampleImageList has already been disposed. |
ArgumentOutOfRangeException | if the index is outside the range [0...Count-1]. |
◆ Count
Get the number of samples for this collection.
- Exceptions
-
ObjectDisposedException | If the parent list has already been disposed. |
◆ this[int index]
Access one of the sample images.
- Parameters
-
index | index to be accessed |
- Returns
- image
- Exceptions
-
ObjectDisposedException | If the parent list has already been disposed. |
ArgumentOutOfRangeException | If the index is invalid |