10#include <ThirdPartyWarningsDisable.h>
12#include <ThirdPartyWarningsRestore.h>
17namespace parameter_info_utils {
19 template <
class ValueType >
23 for (
size_t i = 0; i < TImageVector< ValueType >::NumberOfDimensions; ++i )
30 template <
class ValueType,
size_t N,
class DC >
34 for (
size_t i = 0; i <
N; ++i )
46 template <
class ValueType >
49 result << QVariant::fromValue( v );
54 result << QString::fromUtf8( v );
59 result << QString::fromStdString( v );
62 template <
class Iterable >
66 for (
const auto& v: iterable )
87 template <
class ValueType,
size_t N >
93 template <
class ValueType >
94 QVariantList
ToQVariant(
const std::vector< ValueType >& vec )
104 inline QVariant
ToQVariant(
const std::string& x ) {
return { QString::fromStdString( x ) }; }
105 inline QVariant
ToQVariant(
const char* x ) {
return { x }; }
Template class for vector arithmetic with floating point data types.
ImageVector is the 6D TVector specialization used by the ML for all image indexing.
VectorType v1
Corner v1 of the subimage region (included in region).
VectorType v2
Corner v2 of the subimage region (also included in region!).
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
INT64 MLint64
Include 64 bit integer support for Windows or Unix.
QVariantList ToQVariantList(const TImageVector< ValueType > &vec)
QVariantList FloatVectorToQVariantList(const FloatingPointVector< ValueType, N, DC > &vec)
QVariantList IterableToQVariantList(const Iterable &iterable)
void AppendToQVariantList(QVariantList &result, const ValueType &v)
QVariantList ToQVariant(const ImageVector &vec)