2 #include <QScriptEngine>
9 set_Type(
"Data Array");
64 return engine->newQObject(data.data());
69 QObject *qobj = obj.toQObject();
QSharedPointer< QcepDataArray > QcepDataArrayPtr
static void deallocate(int sz, int width, int height)
QVector< int > m_Dimensions
virtual QString description() const
static void fromArrayScriptValue(const QScriptValue &obj, QcepDataArrayPtr &data)
QVector< int > dimensions()
static void allocate(int sz, int width, int height)
static QScriptValue toArrayScriptValue(QScriptEngine *engine, const QcepDataArrayPtr &data)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
static QcepDataArrayPtr newDataArray(QcepSettingsSaverWPtr saver, QString name, QVector< int > dims, QcepObject *parent)
QcepDataArray(QcepSettingsSaverWPtr saver, QString name, QVector< int > dims, QcepObject *parent)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
QcepSettingsSaverWPtr saver()
QVector< double > vectorData()