Go to the documentation of this file.
4 #ifndef pqVectorWidget_h
5 #define pqVectorWidget_h
7 #include "pqWidgetsModule.h"
20 Q_PROPERTY(QVariant value READ value USER
true);
29 const QVariant&
value()
const {
return this->Vector; }
35 void valueChanged(
const QVariant&);
43 virtual void setValue(
int index,
float value) = 0;
52 void CreateUI(
unsigned int nbElem);
53 virtual float getValue(
int index) = 0;
63 template <
class T,
unsigned int S>
78 T vec = this->
Vector.template value<T>();
80 this->
Vector = QVariant::fromValue(vec);