IOLink
IOL_v1.1.0_release
|
Interface representing a multi-image view, i.e. More...
#include <iolink/view/MultiImageView.h>
Public Member Functions | |
virtual MultiImageCapabilitySet | capabilities () const =0 |
Return the capabilities of this multi image. | |
bool | support (MultiImageCapabilitySet flags) |
Checks if the MultiImageView supports the given capabilities. | |
std::string | toString () const |
Return a string representation. | |
virtual size_t | frameCount () const |
Returns the number of frames in the set. More... | |
virtual std::shared_ptr< ImageView > | frame (size_t index) |
Gets the ith frame of the set. More... | |
virtual std::shared_ptr< const MetadataNode > | metadata () const |
Returns the root node of the metadata attached to this multi-image. | |
virtual void | addFrame (std::shared_ptr< ImageView > newFrame) |
Add a new frame at the end of the set. | |
virtual void | setFrame (size_t index, std::shared_ptr< ImageView > frame) |
Set the frame at the given index (index must already exist, no allocation) | |
virtual void | removeFrame (size_t index) |
Remove the ith frame. | |
virtual void | setMetadata (std::shared_ptr< MetadataNode > metadata) |
Attach a new metadata node to the image. | |
Public Member Functions inherited from iolink::View | |
virtual std::shared_ptr< Extension > | extension (size_t id) |
Get an extension of the view, corresponding to the given identifier. More... | |
Interface representing a multi-image view, i.e.
a stack of ImageView
This interface capabilities are indicated by the MultiImageCapabilitySet returned by the method MultiImageView::capabilities. Each capability enable the use of a specific set of methods. When one of those methods is called, if its corresponding capability is not supported, a NotImplemented exception will be thrown.
|
virtual |
Gets the ith frame of the set.
index | the index of the frame in the set |
|
virtual |
Returns the number of frames in the set.
Error | |
AccessError |