4 #include <QScriptEngine>
8 m_NumPoints(sav, this,
"numPoints", 0,
"Number of points in scan"),
9 m_Title(sav, this,
"title",
"",
"Scan Title")
11 set_Type(
"Data Column Scan");
18 foreach (QString col, cols) {
22 res -> set_NumPoints(npts);
34 return engine->newQObject(data.data());
39 QObject *qobj = obj.toQObject();
62 return qSharedPointerDynamicCast<QcepDataColumn>(obj);
72 return get_NumPoints();
86 for (
int i=0; i<nc; i++) {
111 return c->value(row);
void resizeRows(int nRows)
QcepDataObjectPtr item(QString nm)
static QcepDataColumnPtr newDataColumn(QcepSettingsSaverWPtr saver, QString name, int npts, QcepObject *parent)
QcepDataColumnScan(QcepSettingsSaverWPtr sav, QString name, QcepObject *parent)
virtual QString description() const
static void fromColumnScanScriptValue(const QScriptValue &obj, QcepDataColumnScanPtr &data)
void setValue(int col, int row, double val)
void append(QcepDataObjectPtr obj)
QSharedPointer< QcepDataColumnScan > QcepDataColumnScanPtr
double value(int col, int row)
QSharedPointer< QcepDataColumn > QcepDataColumnPtr
QcepDataColumnPtr column(int n)
void appendColumn(QString title)
static QcepDataColumnScanPtr newDataColumnScan(QcepSettingsSaverWPtr sav, QString name, QStringList cols, int npts, QcepObject *parent)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
static QScriptValue toColumnScanScriptValue(QScriptEngine *engine, const QcepDataColumnScanPtr &data)
QcepSettingsSaverWPtr saver()