IOLink 1.11.0
Loading...
Searching...
No Matches
iolink::View Class Reference

Interface representing a generic view on data. More...

#include <iolink/view/View.h>

Inheritance diagram for iolink::View:
iolink::DataFrameView iolink::ImageView iolink::LodImageView iolink::MultiImageView CheckerboardImageView

Public Member Functions

virtual std::shared_ptr< Extensionextension (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< ViewOriginExtensionviewOrigin ()
 Shortcut to access to ViewOrigin extension.
 

Detailed Description

Interface representing a generic view on data.

Member Function Documentation

◆ 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
TThe extension type.
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
idThe extension identifier.
Exceptions
ErrorWhen the required extension is not available.
See also
Extension

Reimplemented in CheckerboardImageView.


The documentation for this class was generated from the following file: