Used to hold a list of image objects. More...
#include <ImageList.h>
Public Member Functions | |
ImageList (void) | |
Default constructor. | |
virtual | ~ImageList (void) |
Virtual destructor. | |
ImageList (const ImageList &iface) | |
Copy constructor. | |
ImageList & | operator= (const ImageList &iface) |
Assignment operator. | |
ImagePtr | operator[] (unsigned int index) |
Array subscription operators. | |
const ImagePtr | operator[] (unsigned int index) const |
void | Release () |
unsigned int | GetSize () const |
Returns the size of the image list. | |
ImagePtr | GetByIndex (unsigned int index) const |
Returns a pointer to an image object at the "index". | |
ImagePtr | GetByPixelFormat (PixelFormatEnums pixelFormat) const |
Returns a pointer to the first image object with the pixel format from the list. | |
ImagePtr | GetByStreamIndex (const uint64_t streamIndex) const |
Returns a pointer to an image object with the specified stream index. | |
ImagePtr | GetByPayloadType (const ImagePayloadType payloadType) const |
Returns a pointer to an image object with the specified image payload type. | |
void | Clear () |
Clears the list of images and destroys their corresponding reference counted objects. | |
void | Add (ImagePtr image) |
Adds a copy of an image object. | |
void | RemoveByIndex (unsigned int index) |
Removes an image at "index" and destroys its corresponding reference counted object. | |
void | RemoveByPixelFormat (PixelFormatEnums pixelFormat) |
Removes an image object with the image pixel format from the list. | |
void | RemoveByStreamIndex (const uint64_t streamIndex) |
Removes an image object with the stream index from the list. | |
void | RemoveByPayloadType (const ImagePayloadType payloadType) |
Removes an image object with the specified payload type from the list. | |
void | Append (const ImageList &list) |
Appends a copy of the image list. | |
void | Save (const char *filename) |
Saves an image list as an object to a file. | |
Public Member Functions inherited from IImageList | |
virtual | ~IImageList (void) |
virtual ImagePtr | operator[] (unsigned int index)=0 |
virtual unsigned int | GetSize () const =0 |
virtual ImagePtr | GetByIndex (unsigned int index) const =0 |
virtual ImagePtr | GetByPixelFormat (PixelFormatEnums pixelFormat) const =0 |
virtual ImagePtr | GetByStreamIndex (const uint64_t streamIndex) const =0 |
virtual ImagePtr | GetByPayloadType (const ImagePayloadType payloadType) const =0 |
virtual void | Clear ()=0 |
virtual void | RemoveByIndex (unsigned int index)=0 |
virtual void | RemoveByPixelFormat (PixelFormatEnums pixelFormat)=0 |
virtual void | RemoveByStreamIndex (const uint64_t streamIndex)=0 |
virtual void | RemoveByPayloadType (const ImagePayloadType payloadType)=0 |
virtual void | Append (const ImageList &list)=0 |
virtual void | Add (ImagePtr image)=0 |
virtual void | Release ()=0 |
virtual void | Save (const char *filename)=0 |
Static Public Member Functions | |
static ImageList | Load (const char *filename) |
Creates an image list object from file. | |
Additional Inherited Members | |
Protected Member Functions inherited from IImageList | |
IImageList () | |
IImageList (const IImageList &) | |
IImageList & | operator= (const IImageList &) |
Protected Attributes inherited from IImageList | |
ImageListData * | m_pImageListData |
Used to hold a list of image objects.
ImageList | ( | void | ) |
Default constructor.
|
virtual |
Virtual destructor.
|
virtual |
Adds a copy of an image object.
image | An image object to be added to this list. |
Implements IImageList.
|
virtual |
Appends a copy of the image list.
list | Another ImageList object, whose elements are added to this list. |
Implements IImageList.
|
virtual |
Clears the list of images and destroys their corresponding reference counted objects.
This is necessary in order to clean up the parent interface. It is important that the camera list is destroyed or is cleared before calling system->ReleaseInstance() or else the call to system->ReleaseInstance() will result in an error message thrown that a reference to the camera is still held.
Implements IImageList.
|
virtual |
Returns a pointer to an image object at the "index".
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the input index is out of range.
index | The index at which to retrieve the Image object |
Implements IImageList.
|
virtual |
Returns a pointer to an image object with the specified image payload type.
This function will return a NULL ImagePtr if no image with matching image payload type is found.
payloadType | The stream index of the Image object to retrieve |
Implements IImageList.
|
virtual |
Returns a pointer to the first image object with the pixel format from the list.
This function will return a NULL ImagePtr if no image with matching pixel format is found.
pixelFormat | The pixel format of the Image object to retrieve |
Implements IImageList.
|
virtual |
Returns a pointer to an image object with the specified stream index.
This function will return a NULL ImagePtr if no image with matching stream index is found.
streamIndex | The stream index of the Image object to retrieve |
Implements IImageList.
|
virtual |
Returns the size of the image list.
The size is the number of Image objects stored in the list.
Implements IImageList.
|
static |
Creates an image list object from file.
filename | Name of the file to load an image object from. |
|
virtual |
Array subscription operators.
Implements IImageList.
const ImagePtr operator[] | ( | unsigned int | index | ) | const |
|
virtual |
Implements IImageList.
|
virtual |
Removes an image at "index" and destroys its corresponding reference counted object.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the input index is out of range.
index | The index at which to remove the Image object |
Implements IImageList.
|
virtual |
Removes an image object with the specified payload type from the list.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the list does not have any image with the specified payload type.
payloadType | The payload type of the Image object to retrieve |
Implements IImageList.
|
virtual |
Removes an image object with the image pixel format from the list.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the list does not have any image with the specified pixel format.
pixelFormat | The pixel format of the image object to remove |
Implements IImageList.
|
virtual |
Removes an image object with the stream index from the list.
This function will throw a Spinnaker exception with SPINNAKER_ERR_INVALID_PARAMETER error if the list does not have any image with the specified stream index.
streamIndex | The stream index of the Image object to retrieve |
Implements IImageList.
|
virtual |
Saves an image list as an object to a file.
filename | Name of the file to save the current image list object to. It is recommended to use the file extension 'sil'. |
Implements IImageList.