open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Functions
iAValueTypeVectorHelpers.h File Reference
#include <QVariant>
#include <QVector>

Functions

template<typename T , typename U >
void setFromVectorVariant (U &dest, QVariant const &src)
 Set any indexed type from a QVector stored in a QVariant (as in the QVariantMap used throughout open_iA)
 
template<typename T >
QVariant variantVector (std::initializer_list< T > s)
 Create a QVariant with a QVector<T> (first templated type) from an initializer list.
 
template<typename T >
QVariant variantVector (T const *d, int n)
 

Function Documentation

◆ setFromVectorVariant()

template<typename T , typename U >
void setFromVectorVariant ( U &  dest,
QVariant const &  src 
)

Set any indexed type from a QVector stored in a QVariant (as in the QVariantMap used throughout open_iA)

◆ variantVector() [1/2]

template<typename T >
QVariant variantVector ( std::initializer_list< T >  s)

Create a QVariant with a QVector<T> (first templated type) from an initializer list.

◆ variantVector() [2/2]

template<typename T >
QVariant variantVector ( T const *  d,
int  n 
)