IOLink 1.11.0
Loading...
Searching...
No Matches
CheckerboardImageView Class Reference
Inheritance diagram for CheckerboardImageView:
iolink::ImageView iolink::View

Classes

class  ViewOriginImpl
 This class is an implementation of the ViewOriginExtension interface. More...
 

Public Member Functions

 CheckerboardImageView (size_t width, size_t height, size_t tileCountByRow, size_t tileCountByColumn)
 
VectorXu64shape () override
 Return the shape of the image, each component containing the size in this dimension.
 
DataType dataType () override
 Return the data type of the samples of this image.
 
ImageCapabilitySet capabilities () const override
 Return the capabilities of this image.
 
std::shared_ptr< const ImagePropertiesproperties () override
 Return the view's properties.
 
std::shared_ptr< const MetadataNodemetadata () const override
 Return the root node of the metadata attached to this image.
 
void readRegion (const RegionXu64 &region, void *dst) override
 Read a region of the image into a buffer.
 
std::shared_ptr< Extensionextension (size_t id) override
 This method can be implemented to provide access to specific extensions for ImageView.
 

Detailed Description

Member Function Documentation

◆ capabilities()

ImageCapabilitySet CheckerboardImageView::capabilities ( ) const
inlineoverridevirtual

Return the capabilities of this image.

Implements iolink::ImageView.

Examples
customImageView.cpp.

◆ dataType()

DataType CheckerboardImageView::dataType ( )
inlineoverridevirtual

Return the data type of the samples of this image.

Implements iolink::ImageView.

Examples
customImageView.cpp.

◆ extension()

std::shared_ptr< Extension > CheckerboardImageView::extension ( size_t  id)
inlineoverridevirtual

This method can be implemented to provide access to specific extensions for ImageView.

We implemented the ViewOriginExtension which can be accessed with this method.

Reimplemented from iolink::View.

◆ metadata()

std::shared_ptr< const MetadataNode > CheckerboardImageView::metadata ( ) const
inlineoverridevirtual

Return the root node of the metadata attached to this image.

Available when the ImageView has the READ capability.

Exceptions
NotImplementedIf the implementation does not support reading.

Reimplemented from iolink::ImageView.

Examples
customImageView.cpp.

◆ properties()

std::shared_ptr< const ImageProperties > CheckerboardImageView::properties ( )
inlineoverridevirtual

Return the view's properties.

Implements iolink::ImageView.

Examples
customImageView.cpp.

◆ readRegion()

void CheckerboardImageView::readRegion ( const RegionXu64 region,
void *  dst 
)
inlineoverridevirtual

Read a region of the image into a buffer.

Available when the ImageView has the READ capability.

Parameters
regionThe region of the image to read from.
dstThe buffer where read data will be copied.
Exceptions
NotImplementedIf the implementation does not support reading.

Reimplemented from iolink::ImageView.

Examples
customImageView.cpp.

◆ shape()

VectorXu64 & CheckerboardImageView::shape ( )
inlineoverridevirtual

Return the shape of the image, each component containing the size in this dimension.

Example:

  • A 2D image will return a vector with two dimension, the first being the number of columns, and the second being the number of rows.
  • A 3D image will return a vector with two dimension, the first being the number of columns, the second being the number of rows, and the third being the number of slices.

Implements iolink::ImageView.

Examples
customImageView.cpp.

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