5#include <iolink/IOLinkAPI.h>
6#include <iolink/view/ImageView.h>
24 inline static bool isImage(std::shared_ptr<View> view)
noexcept
26 return (
dynamic_cast<const ImageView*
>(view.get()) !=
nullptr);
38 inline static std::shared_ptr<ImageView>
toImage(std::shared_ptr<View> view)
noexcept
40 return std::dynamic_pointer_cast<ImageView>(view);
49 static std::shared_ptr<ImageView>
toReadOnly(std::shared_ptr<ImageView> image);
57 static std::shared_ptr<ImageView>
toWriteOnly(std::shared_ptr<ImageView> image);
Interface representing an N dimensional image.
Definition: ImageView.h:70
Utility class to check and convert a View into an ImagevView.
Definition: ImageViewProvider.h:15
static std::shared_ptr< ImageView > toReadOnly(std::shared_ptr< ImageView > image)
Remove all capacities except READ to an ImageView.
static bool isImage(std::shared_ptr< View > view) noexcept
Checks if a given View is an ImageView.
Definition: ImageViewProvider.h:24
static std::shared_ptr< ImageView > toWriteOnly(std::shared_ptr< ImageView > image)
Remove all capacities except WRITE to an ImageView.
static std::shared_ptr< ImageView > toImage(std::shared_ptr< View > view) noexcept
Extracts the ImageView interface from a given generic view.
Definition: ImageViewProvider.h:38
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:8