Interface representing a generic view on data.
More...
#include <iolink/view/View.h>
|
virtual std::shared_ptr< Extension > | extension (size_t id) |
| Get an extension of the view, corresponding to the given identifier.
|
|
template<typename T > |
std::shared_ptr< T > | extension () |
| Get an extension of the view, corresponding to the given type.
|
|
std::shared_ptr< ViewOriginExtension > | viewOrigin () |
| Shortcut to access to ViewOrigin extension.
|
|
Interface representing a generic view on data.
◆ extension() [1/2]
template<typename T >
std::shared_ptr< T > iolink::View::extension |
( |
| ) |
|
|
inline |
Get an extension of the view, corresponding to the given type.
- Template Parameters
-
- Examples
- customImageView.cpp.
◆ extension() [2/2]
virtual std::shared_ptr< Extension > iolink::View::extension |
( |
size_t |
id | ) |
|
|
virtual |
Get an extension of the view, corresponding to the given identifier.
- Parameters
-
id | The extension identifier. |
- Exceptions
-
Error | When the required extension is not available. |
- See also
- Extension
Reimplemented in CheckerboardImageView.
The documentation for this class was generated from the following file:
- iolink/public/include/iolink/view/View.h