IOLink 1.16.1
Loading...
Searching...
No Matches
iolink::ViewTools Class Reference

Class which provides tools to manipulate views. More...

#include <iolink/tool/ViewTools.h>

Public Member Functions

 ViewTools (const ViewTools &)=delete
 
 ViewTools (ViewTools &&)=delete
 
ViewToolsoperator= (const ViewTools &)=delete
 
ViewToolsoperator= (ViewTools &&)=delete
 

Static Public Member Functions

static void copy (std::shared_ptr< iolink::DataFrameView > src, std::shared_ptr< iolink::DataFrameView > dest)
 Method wich allows to copy the whole content of a DataFrame into another one.
 
static void copy (std::shared_ptr< iolink::ImageView > src, std::shared_ptr< iolink::ImageView > dest)
 Method wich allows to copy the whole content of an ImageView into another one.
 

Detailed Description

Class which provides tools to manipulate views.

Member Function Documentation

◆ copy() [1/2]

static void iolink::ViewTools::copy ( std::shared_ptr< iolink::DataFrameView src,
std::shared_ptr< iolink::DataFrameView dest 
)
static

Method wich allows to copy the whole content of a DataFrame into another one.

Destination dataFrame will be reshaped if needed.

Warning
If units are available in the source DataFrame, they will only be copied if the destination DataFrame supports the ColumnUnitExtension extension.
Parameters
srcThe DataFrame to copy from.
destThe DataFrame to copy to.
Exceptions
InvalidArgumentif the 'src' DataFrameView does not have the READ capability.
InvalidArgumentif the 'dst' DataFrameView does not have the WRITE or RESHAPE capabilities.

◆ copy() [2/2]

static void iolink::ViewTools::copy ( std::shared_ptr< iolink::ImageView src,
std::shared_ptr< iolink::ImageView dest 
)
static

Method wich allows to copy the whole content of an ImageView into another one.

Destination ImageView will be reshaped if shape or DataType are different.

Parameters
srcThe ImageView to copy from.
destThe ImageView to copy to.
Exceptions
InvalidArgumentif the 'src' ImageView does not support the READ capability.
InvalidArgumentif the 'dest' ImageView does not support the WRITE capability.
InvalidArgumentif the 'dest' ImageView needs reshaping and does not support the RESHAPE capability.

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