1 #ifndef QXRDSCRIPTENGINE_H
2 #define QXRDSCRIPTENGINE_H
5 #include <QScriptValue>
69 static QScriptValue
printFunc(QScriptContext *context, QScriptEngine *engine,
void *u);
70 static QScriptValue
fopenFunc(QScriptContext *context, QScriptEngine *engine,
void *u);
71 static QScriptValue
fdeleteFunc(QScriptContext *context, QScriptEngine *engine,
void *u);
72 static QScriptValue
fprintFunc(QScriptContext *context, QScriptEngine *engine,
void *u);
73 static QScriptValue
fcloseFunc(QScriptContext *context, QScriptEngine *engine,
void *u);
74 static QScriptValue
acquireFunc(QScriptContext *context, QScriptEngine *engine);
75 static QScriptValue
acquireDarkFunc(QScriptContext *context, QScriptEngine *engine);
76 static QScriptValue
statusFunc(QScriptContext *context, QScriptEngine *engine);
77 static QScriptValue
acquireStatusFunc(QScriptContext *context, QScriptEngine *engine);
78 static QScriptValue
processStatusFunc(QScriptContext *context, QScriptEngine *engine);
79 static QScriptValue
acquireCancelFunc(QScriptContext *context, QScriptEngine *engine);
80 static QScriptValue
acquireScalersFunc(QScriptContext *context, QScriptEngine *engine);
81 static QScriptValue
triggerFunc(QScriptContext *context, QScriptEngine *engine);
82 static QScriptValue
exposureTimeFunc(QScriptContext *context, QScriptEngine *engine);
86 static QScriptValue
phasesInGroupFunc(QScriptContext *context, QScriptEngine *engine);
89 static QScriptValue
filePatternFunc(QScriptContext *context, QScriptEngine *engine);
91 static QScriptValue
fileIndexFunc(QScriptContext *context, QScriptEngine *engine);
92 static QScriptValue
dataFunc(QScriptContext *context, QScriptEngine *engine);
93 static QScriptValue
darkFunc(QScriptContext *context, QScriptEngine *engine);
94 static QScriptValue
maskFunc(QScriptContext *context, QScriptEngine *engine);
95 static QScriptValue
overflowFunc(QScriptContext *context, QScriptEngine *engine);
96 static QScriptValue
liveDataFunc(QScriptContext *context, QScriptEngine *engine);
97 static QScriptValue
helpFunc(QScriptContext *context, QScriptEngine *engine);
98 static QScriptValue
processFunc(QScriptContext *context, QScriptEngine *engine);
101 static QScriptValue
matchFilesFunc(QScriptContext *context, QScriptEngine *engine);
102 static QScriptValue
extraChannelFunc(QScriptContext *context, QScriptEngine *engine);
104 static QScriptValue
timeStampFunc(QScriptContext *context, QScriptEngine *engine);
106 static QScriptValue
detectorFunc(QScriptContext *context, QScriptEngine *engine);
107 static QScriptValue
roiFunc(QScriptContext *context, QScriptEngine *engine);
110 static QScriptValue
newDataGroupFunc(QScriptContext *context, QScriptEngine *engine);
111 static QScriptValue
newDataArrayFunc(QScriptContext *context, QScriptEngine *engine);
112 static QScriptValue
newDataColumnFunc(QScriptContext *context, QScriptEngine *engine);
114 static QScriptValue
newDataImageFunc(QScriptContext *context, QScriptEngine *engine);
130 #endif // QXRDSCRIPTENGINE_H
static QScriptValue triggerFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue fdeleteFunc(QScriptContext *context, QScriptEngine *engine, void *u)
static QScriptValue QPointFToScriptValue(QScriptEngine *engine, const QPointF &in)
static QScriptValue matchFilesFunc(QScriptContext *context, QScriptEngine *engine)
virtual ~QxrdScriptEngine()
static QScriptValue roiFunc(QScriptContext *context, QScriptEngine *engine)
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
static QScriptValue newDataArrayFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue timeStampFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setFileNormalizationFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue newDataImageFunc(QScriptContext *context, QScriptEngine *engine)
void evaluateSimpleServerCommand(QString cmd)
void openScriptOutput(const QString &fileName)
static QScriptValue exposureTimeFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue acquireFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue newDataColumnScanFunc(QScriptContext *context, QScriptEngine *engine)
QxrdExperimentWPtr m_Experiment
static QScriptValue processStatusFunc(QScriptContext *context, QScriptEngine *engine)
QxrdScriptEngine(QxrdApplicationWPtr app, QxrdExperimentWPtr exp)
void evaluateSpecCommand(QString cmd)
static QScriptValue helpFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue postTriggerFilesFunc(QScriptContext *context, QScriptEngine *engine)
QWeakPointer< QxrdApplication > QxrdApplicationWPtr
static QScriptValue newDataGroupFunc(QScriptContext *context, QScriptEngine *engine)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QString uncaughtExceptionString() const
void setWindow(QxrdWindowWPtr win)
QxrdDataProcessorWPtr dataProcessor() const
static QScriptValue liveDataFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue statusFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue newDataColumnFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue extraChannelFunc(QScriptContext *context, QScriptEngine *engine)
static QString convertToString(QScriptValue result)
QxrdApplicationWPtr m_Application
QxrdWindowWPtr window() const
static QScriptValue skippedExposuresFunc(QScriptContext *context, QScriptEngine *engine)
void evaluateScript(int src, QString cmd)
static QScriptValue acquireStatusFunc(QScriptContext *context, QScriptEngine *engine)
QWeakPointer< QxrdWindow > QxrdWindowWPtr
static QScriptValue fcloseFunc(QScriptContext *context, QScriptEngine *engine, void *u)
static QScriptValue printFunc(QScriptContext *context, QScriptEngine *engine, void *u)
QxrdDataProcessorWPtr m_DataProcessor
static QScriptValue dataFunc(QScriptContext *context, QScriptEngine *engine)
QxrdApplicationWPtr application() const
static QScriptValue outputDirectoryFunc(QScriptContext *context, QScriptEngine *engine)
void appResultAvailable(QScriptValue res)
static void QPointFFromScriptValue(const QScriptValue &object, QPointF &pt)
static QScriptValue phasesInGroupFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue overflowFunc(QScriptContext *context, QScriptEngine *engine)
void evaluateAppCommand(QString cmd)
static QScriptValue detectorFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue filePatternFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue darkFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue fopenFunc(QScriptContext *context, QScriptEngine *engine, void *u)
static QScriptValue fprintFunc(QScriptContext *context, QScriptEngine *engine, void *u)
QWeakPointer< QxrdAcquisition > QxrdAcquisitionWPtr
static QScriptValue mapUserFunctionFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue acquireScalersFunc(QScriptContext *context, QScriptEngine *engine)
void simpleServerResultAvailable(QScriptValue cmd)
static QScriptValue darkSummedExposuresFunc(QScriptContext *context, QScriptEngine *engine)
int uncaughtExceptionLineNumber() const
static QScriptValue processFunc(QScriptContext *context, QScriptEngine *engine)
void writeScriptOutput(const QString &outputLine)
QxrdExperimentWPtr experiment() const
static QScriptValue newIntegratedDataFunc(QScriptContext *context, QScriptEngine *engine)
void loadScript(QString path)
static QScriptValue summedExposuresFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue maskFunc(QScriptContext *context, QScriptEngine *engine)
bool hasUncaughtException() const
QxrdAcquisitionWPtr m_Acquisition
static QScriptValue acquireDarkFunc(QScriptContext *context, QScriptEngine *engine)
void specResultAvailable(QScriptValue cmd)
static QScriptValue fileIndexFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue preTriggerFilesFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue acquireCancelFunc(QScriptContext *context, QScriptEngine *engine)
QxrdAcquisitionWPtr acquisition() const