3 #include <QtConcurrentRun>
19 m_ExposureTime(saver, this,
"exposureTime",0.1,
"Exposure Time (in sec)"),
20 m_SkippedExposuresAtStart(saver, this,
"skippedExposuresAtStart",0,
"Exposures to Skip at Start"),
21 m_PhasesInGroup(saver, this,
"phasesInGroup",1,
"Number of Image Phases"),
23 m_SummedExposures(saver, this,
"summedExposures",1,
"Summed Exposures per Image"),
24 m_DarkSummedExposures(saver, this,
"darkSummedExposures",1,
"Summed Exposures in Dark Image"),
25 m_CurrentSummation(
QcepSettingsSaverWPtr(), this,
"currentSumation", 0,
"Current Acquisition Summation"),
26 m_SkippedExposures(saver, this,
"skippedExposures",0,
"Skipped Exposures between Images"),
27 m_PreTriggerFiles(saver, this,
"preTriggerFiles",0,
"Number of pre-Trigger Images"),
28 m_PostTriggerFiles(saver, this,
"postTriggerFiles",1,
"Number of post-Trigger Images"),
30 m_FilePattern(saver, this,
"filePattern",
"",
"File Name Pattern")
48 if (QThread::currentThread() != thread()) {
49 INVOKE_CHECK(QMetaObject::invokeMethod(
this,
"acquire", Qt::BlockingQueuedConnection));
52 set_Cancelling(
false);
71 if (QThread::currentThread() != thread()) {
72 INVOKE_CHECK(QMetaObject::invokeMethod(
this,
"acquireDark", Qt::BlockingQueuedConnection));
75 set_Cancelling(
false);
138 get_SummedExposures(),
139 get_PreTriggerFiles(),
140 get_PostTriggerFiles(),
142 get_SkippedExposuresAtStart(),
143 get_SkippedExposures()));
151 get_DarkSummedExposures(),
152 get_SkippedExposuresAtStart()));
int acquisitionStatus(double time)
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
QxrdAcquisitionExecutionThreadPtr m_ExecutionThread
QxrdAcquisitionInterface(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr doc, QxrdDataProcessorWPtr proc, QcepAllocatorWPtr allocator)
virtual bool sanityCheckAcquire()=0
virtual void initialize()
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QSharedPointer< QxrdAcquisitionExecutionThread > QxrdAcquisitionExecutionThreadPtr
QWaitCondition m_StatusWaiting
~QxrdAcquisitionInterface()
#define INVOKE_CHECK(res)
QxrdAcquisitionParameterPackPtr acquisitionParameterPack()
QxrdDarkAcquisitionParameterPackPtr darkAcquisitionParameterPack()
QWeakPointer< QcepAllocator > QcepAllocatorWPtr
QSharedPointer< QxrdDarkAcquisitionParameterPack > QxrdDarkAcquisitionParameterPackPtr
virtual bool sanityCheckAcquireDark()=0
virtual void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QSharedPointer< QxrdAcquisitionParameterPack > QxrdAcquisitionParameterPackPtr
QcepSettingsSaverWPtr m_Saver
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr