|
IOLink
IOL_v1.1.0_release
|
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);
static bool isImage(std::shared_ptr< View > view) noexcept
Checks if a given View is an ImageView.
Definition: ImageViewProvider.h:24
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:7
Utility class to check and convert a View into an ImagevView.
Definition: ImageViewProvider.h:14
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
Interface representing an N dimensional image.
Definition: ImageView.h:67