QXRD
0.11.16
|
#include <qxrdacquisition.h>
Public Slots | |
void | propertyList () |
void | Message (QString cmd) |
void | dynamicProperties () |
void | updateSaveTimes () |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | clearDropped () |
void | shutdown () |
void | onBufferSizeChanged (int newMB) |
void | doAcquire () |
void | doAcquireDark () |
bool | sanityCheckCommon () |
bool | sanityCheckAcquire () |
bool | sanityCheckAcquireDark () |
virtual void | onExposureTimeChanged () |
void | appendDetector (int detType) |
void | appendDetectorProxy (QxrdDetectorProxyPtr proxy) |
void | clearDetectors () |
void | configureDetector (int i) |
void | openDetectorControlWindow (int i) |
QxrdDetectorThreadPtr | detectorThread (int n) |
QxrdDetectorPtr | detector (int n) |
QString | currentFileBase (int detNum, QString extension="") |
double | scalerValue (int i) |
Public Slots inherited from QxrdAcquisitionInterface | |
void | acquire () |
void | acquireDark () |
void | cancel () |
void | trigger () |
int | acquisitionStatus (double time) |
virtual void | doAcquire ()=0 |
virtual void | doAcquireDark ()=0 |
virtual bool | sanityCheckAcquire ()=0 |
virtual bool | sanityCheckAcquireDark ()=0 |
Public Slots inherited from QcepObject | |
virtual void | printLine (QString line) |
virtual void | printMessage (QString msg, QDateTime dt=QDateTime::currentDateTime()) const |
virtual void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual QString | settingsScript () |
QString | scriptValueLiteral (QVariant v) |
Signals | |
void | detectorStateChanged () |
void | extraInputsChanged () |
Signals inherited from QxrdAcquisitionInterface | |
void | acquiredFrame (QString fileName, int iphase, int nphases, int isum, int nsum, int igroup, int ngroup) |
void | acquireStarted () |
void | acquireComplete () |
Protected Slots | |
void | onIdleTimeout () |
Protected Member Functions | |
void | acquisition (int isDark) |
void | copyParameters (int isDark) |
void | getFileBaseAndName (QString filePattern, QString extent, int detNum, int fileIndex, int phase, int nphases, QString &fileBase, QString &fileName) |
QxrdExperimentWPtr | experiment () |
QxrdDataProcessorWPtr | dataProcessor () |
QxrdAcquisitionPtr | myself () |
Properties | |
QString | qxrdVersion |
QString | qtVersion |
int | detectorCount |
int | lastAcquired |
int | fileIndex |
int | fileIndexWidth |
int | filePhaseWidth |
int | fileOverflowWidth |
int | detectorNumberWidth |
QString | fileBase |
int | overflowLevel |
double | raw16SaveTime |
double | raw32SaveTime |
double | rawSaveTime |
double | darkSaveTime |
QString | userComment1 |
QString | userComment2 |
QString | userComment3 |
QString | userComment4 |
QcepDoubleList | normalization |
int | droppedFrames |
bool | liveViewAtIdle |
bool | acquisitionCancelsLiveView |
bool | retryDropped |
QcepDoubleVector | scalerValues |
Properties inherited from QxrdAcquisitionInterface | |
int | cancelling |
int | triggered |
double | exposureTime |
int | skippedExposuresAtStart |
int | phasesInGroup |
int | currentPhase |
int | summedExposures |
int | darkSummedExposures |
int | currentSummation |
int | skippedExposures |
int | preTriggerFiles |
int | postTriggerFiles |
int | currentFile |
QString | filePattern |
Properties inherited from QcepObject | |
QString | name |
Private Member Functions | |
virtual void | stopIdling () |
virtual void | startIdling () |
void | accumulateAcquiredImage (QcepInt16ImageDataPtr image, QcepInt32ImageDataPtr accum, QcepMaskDataPtr overflow) |
void | accumulateAcquiredImage (QcepInt32ImageDataPtr image, QcepInt32ImageDataPtr accum, QcepMaskDataPtr overflow) |
void | accumulateAcquiredImage (QcepImageDataBasePtr image, QcepInt32ImageDataPtr accum, QcepMaskDataPtr overflow) |
void | processImage (const QxrdProcessArgs &args) |
void | processImage (QString filePattern, QString extent, int fileIndex, int phase, int nPhases, bool trig, QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow) |
void | processAcquiredImage (QString filePattern, QString extent, int fileIndex, int phase, int nPhases, bool trig, QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow) |
void | processDarkImage (QString filePattern, QString extent, int fileIndex, QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow) |
int | cancelling () |
Additional Inherited Members | |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Protected Attributes inherited from QxrdAcquisitionInterface | |
QcepSettingsSaverWPtr | m_Saver |
QMutex | m_Acquiring |
QWaitCondition | m_StatusWaiting |
Definition at line 35 of file qxrdacquisition.h.
QxrdAcquisition::QxrdAcquisition | ( | QcepSettingsSaverWPtr | saver, |
QxrdExperimentWPtr | doc, | ||
QxrdDataProcessorWPtr | proc, | ||
QcepAllocatorWPtr | allocator | ||
) |
Definition at line 25 of file qxrdacquisition.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
QxrdAcquisition::~QxrdAcquisition | ( | ) |
Definition at line 134 of file qxrdacquisition.cpp.
References DEBUG_APP, DEBUG_CONSTRUCTORS, printMessage(), and qcepDebug().
|
private |
Definition at line 576 of file qxrdacquisition.cpp.
References DEBUG_ACQUIRE, printMessage(), and qcepDebug().
Referenced by accumulateAcquiredImage(), doAcquire(), and doAcquireDark().
|
private |
Definition at line 632 of file qxrdacquisition.cpp.
References DEBUG_ACQUIRE, printMessage(), and qcepDebug().
|
private |
Definition at line 559 of file qxrdacquisition.cpp.
References accumulateAcquiredImage(), and printMessage().
|
protected |
QxrdAcquisitionExtraInputsPtr QxrdAcquisition::acquisitionExtraInputs | ( | ) | const |
Definition at line 911 of file qxrdacquisition.cpp.
References m_AcquisitionExtraInputs.
Referenced by doAcquire().
QxrdAcquisitionScalerModelPtr QxrdAcquisition::acquisitionScalerModel | ( | ) | const |
Definition at line 159 of file qxrdacquisition.cpp.
References m_ScalerModel.
QcepAllocatorWPtr QxrdAcquisition::allocator | ( | ) | const |
|
slot |
Definition at line 303 of file qxrdacquisition.cpp.
References experiment(), m_Detectors, m_DetectorThreads, QxrdAcquisitionInterface::m_Saver, and myself().
|
slot |
Definition at line 334 of file qxrdacquisition.cpp.
References detector(), experiment(), m_Detectors, m_DetectorThreads, QxrdAcquisitionInterface::m_Saver, and myself().
|
private |
Definition at line 916 of file qxrdacquisition.cpp.
References printMessage(), and statusMessage().
Referenced by doAcquire(), and doAcquireDark().
|
slot |
|
slot |
Definition at line 537 of file qxrdacquisition.cpp.
Referenced by QxrdAcquisitionDialog::QxrdAcquisitionDialog().
|
slot |
Definition at line 515 of file qxrdacquisition.cpp.
References detector(), detectorThread(), myself(), and printMessage().
Referenced by QxrdWindow::populateConfigureDetectorMenu().
|
virtual |
Definition at line 869 of file qxrdacquisition.cpp.
References m_ControlPanel, m_DataProcessor, m_Experiment, m_Window, and myself().
void QxrdAcquisition::copyDynamicProperties | ( | QObject * | dest | ) |
Definition at line 203 of file qxrdacquisition.cpp.
References QcepObject::name.
Referenced by processImage().
|
protected |
|
slot |
Definition at line 406 of file qxrdacquisition.cpp.
References m_Experiment.
Referenced by doAcquireDark(), sanityCheckAcquire(), sanityCheckAcquireDark(), and sanityCheckCommon().
|
slot |
Definition at line 688 of file qxrdacquisition.cpp.
References detector(), fileBase, and getFileBaseAndName().
int QxrdAcquisition::currentPhase | ( | int | frameNumber | ) |
|
protected |
Definition at line 154 of file qxrdacquisition.cpp.
References m_DataProcessor.
|
slot |
Definition at line 387 of file qxrdacquisition.cpp.
References m_Detectors.
Referenced by appendDetectorProxy(), configureDetector(), currentFileBase(), doAcquire(), doAcquireDark(), getFileBaseAndName(), onIdleTimeout(), openDetectorControlWindow(), sanityCheckCommon(), and shutdown().
|
signal |
Referenced by QxrdDetector::initialize(), and QxrdAcquisitionScalerModel::QxrdAcquisitionScalerModel().
|
slot |
Definition at line 382 of file qxrdacquisition.cpp.
References m_DetectorThreads.
Referenced by configureDetector().
|
slot |
Definition at line 928 of file qxrdacquisition.cpp.
References accumulateAcquiredImage(), QxrdAcquisitionInterface::acquireComplete(), QxrdAcquisitionInterface::acquiredFrame(), acquisitionExtraInputs(), QxrdAcquisitionInterface::acquisitionParameterPack(), QcepAllocator::AllocateFromReserve, QxrdAcquisitionInterface::cancel(), cancelling(), DEBUG_ACQUIRETIME, detector(), fileBase, fileIndex, getFileBaseAndName(), indicateDroppedFrame(), QxrdAcquisitionInterface::m_Acquiring, QcepAllocator::newInt32Image(), QcepAllocator::newMask(), printMessage(), processAcquiredImage(), qcepDebug(), startIdling(), statusMessage(), stopIdling(), and synchronizedAcquisition().
|
slot |
Definition at line 1274 of file qxrdacquisition.cpp.
References accumulateAcquiredImage(), QxrdAcquisitionInterface::acquireComplete(), QxrdAcquisitionInterface::acquiredFrame(), QcepAllocator::AllocateFromReserve, QxrdAcquisitionInterface::cancel(), cancelling(), criticalMessage(), QxrdAcquisitionInterface::darkAcquisitionParameterPack(), DEBUG_ACQUIRETIME, detector(), fileBase, fileIndex, getFileBaseAndName(), indicateDroppedFrame(), QxrdAcquisitionInterface::m_Acquiring, QcepAllocator::newInt32Image(), QcepAllocator::newMask(), printMessage(), qcepDebug(), startIdling(), statusMessage(), stopIdling(), and synchronizedAcquisition().
|
slot |
Definition at line 192 of file qxrdacquisition.cpp.
References g_Application, QcepObject::name, and QcepApplication::printMessage().
|
protected |
Definition at line 149 of file qxrdacquisition.cpp.
References m_Experiment.
Referenced by appendDetector(), appendDetectorProxy(), and readSettings().
|
signal |
Referenced by initialize(), and QxrdAcquisitionScalerModel::QxrdAcquisitionScalerModel().
|
protected |
Definition at line 715 of file qxrdacquisition.cpp.
References detector().
Referenced by currentFileBase(), doAcquire(), doAcquireDark(), and processImage().
void QxrdAcquisition::indicateDroppedFrame | ( | int | n | ) |
Definition at line 542 of file qxrdacquisition.cpp.
References m_Allocator, printMessage(), and statusMessage().
Referenced by doAcquire(), and doAcquireDark().
|
virtual |
Reimplemented from QxrdAcquisitionInterface.
Definition at line 81 of file qxrdacquisition.cpp.
References QxrdAcquisitionExtraInputs::channelCountChanged(), DEBUG_APP, extraInputsChanged(), QxrdAcquisitionInterface::initialize(), m_AcquisitionExtraInputs, m_Allocator, m_Experiment, m_IdleTimer, QxrdAcquisitionInterface::m_Saver, m_ScalerModel, m_SynchronizedAcquisition, myself(), onBufferSizeChanged(), onExposureTimeChanged(), onIdleTimeout(), printMessage(), qcepDebug(), updateSaveTimes(), QcepDoubleProperty::valueChanged(), and QcepIntProperty::valueChanged().
|
slot |
Definition at line 1475 of file qxrdacquisition.cpp.
References m_Experiment.
|
protected |
Definition at line 70 of file qxrdacquisition.cpp.
Referenced by appendDetector(), appendDetectorProxy(), configureDetector(), controlPanel(), initialize(), and readSettings().
QxrdNIDAQPluginInterfacePtr QxrdAcquisition::nidaqPlugin | ( | ) | const |
Definition at line 897 of file qxrdacquisition.cpp.
References m_SynchronizedAcquisition.
|
slot |
Definition at line 424 of file qxrdacquisition.cpp.
References m_Allocator.
Referenced by initialize().
|
virtualslot |
Definition at line 508 of file qxrdacquisition.cpp.
References m_Detectors.
Referenced by initialize().
|
protectedslot |
Definition at line 1456 of file qxrdacquisition.cpp.
References detector(), and m_Idling.
Referenced by initialize().
|
slot |
Definition at line 528 of file qxrdacquisition.cpp.
References detector().
Referenced by QxrdWindow::populateDetectorControlWindowsMenu().
|
slot |
Definition at line 397 of file qxrdacquisition.cpp.
References m_Experiment.
Referenced by accumulateAcquiredImage(), cancelling(), configureDetector(), doAcquire(), doAcquireDark(), indicateDroppedFrame(), initialize(), processAcquiredImage(), processImage(), shutdown(), and ~QxrdAcquisition().
|
private |
Definition at line 848 of file qxrdacquisition.cpp.
References DEBUG_ACQUIRETIME, printMessage(), processImage(), and qcepDebug().
Referenced by doAcquire().
|
private |
Definition at line 862 of file qxrdacquisition.cpp.
References processImage().
|
private |
Definition at line 833 of file qxrdacquisition.cpp.
References DEBUG_ACQUIRETIME, QxrdProcessArgs::m_Extension, QxrdProcessArgs::m_FileIndex, QxrdProcessArgs::m_FilePattern, QxrdProcessArgs::m_Image, QxrdProcessArgs::m_NPhases, QxrdProcessArgs::m_Overflow, QxrdProcessArgs::m_Phase, QxrdProcessArgs::m_Trig, printMessage(), and qcepDebug().
Referenced by processAcquiredImage(), and processDarkImage().
|
private |
Definition at line 762 of file qxrdacquisition.cpp.
References copyDynamicProperties(), DEBUG_ACQUIRE, DEBUG_ACQUIRETIME, fileBase, getFileBaseAndName(), m_DataProcessor, printMessage(), qcepDebug(), QcepImageDataBase::Raw32Data, and QcepImageDataBase::secondsSinceEpoch().
|
slot |
Definition at line 1484 of file qxrdacquisition.cpp.
References g_Application, m_Mutex, QcepObject::name, and QcepApplication::printMessage().
|
virtual |
Reimplemented from QcepObject.
Definition at line 243 of file qxrdacquisition.cpp.
References experiment(), g_Application, m_AcquisitionExtraInputs, m_Detectors, m_DetectorThreads, m_Mutex, QxrdAcquisitionInterface::m_Saver, m_SynchronizedAcquisition, myself(), and QcepObject::readSettings().
|
slot |
Definition at line 468 of file qxrdacquisition.cpp.
References criticalMessage(), and sanityCheckCommon().
|
slot |
Definition at line 492 of file qxrdacquisition.cpp.
References criticalMessage(), and sanityCheckCommon().
|
slot |
Definition at line 438 of file qxrdacquisition.cpp.
References criticalMessage(), and detector().
Referenced by sanityCheckAcquire(), and sanityCheckAcquireDark().
|
slot |
Definition at line 1515 of file qxrdacquisition.cpp.
void QxrdAcquisition::setNIDAQPlugin | ( | QxrdNIDAQPluginInterfacePtr | nidaqPlugin | ) |
Definition at line 886 of file qxrdacquisition.cpp.
References m_AcquisitionExtraInputs, and m_SynchronizedAcquisition.
|
virtual |
Definition at line 1511 of file qxrdacquisition.cpp.
void QxrdAcquisition::setWindow | ( | QxrdWindowWPtr | win | ) |
|
slot |
Definition at line 164 of file qxrdacquisition.cpp.
References DEBUG_APP, detector(), printMessage(), and qcepDebug().
|
privatevirtual |
Definition at line 1451 of file qxrdacquisition.cpp.
References m_Idling.
Referenced by doAcquire(), and doAcquireDark().
|
slot |
Definition at line 415 of file qxrdacquisition.cpp.
References m_Experiment.
Referenced by cancelling(), doAcquire(), doAcquireDark(), and indicateDroppedFrame().
|
privatevirtual |
Definition at line 1441 of file qxrdacquisition.cpp.
References m_Idling.
Referenced by doAcquire(), and doAcquireDark().
QxrdSynchronizedAcquisitionPtr QxrdAcquisition::synchronizedAcquisition | ( | ) | const |
Definition at line 906 of file qxrdacquisition.cpp.
References m_SynchronizedAcquisition.
Referenced by doAcquire(), and doAcquireDark().
|
slot |
Definition at line 177 of file qxrdacquisition.cpp.
Referenced by initialize().
|
virtual |
Reimplemented from QcepObject.
Definition at line 214 of file qxrdacquisition.cpp.
References m_AcquisitionExtraInputs, m_Detectors, m_Mutex, m_SynchronizedAcquisition, and QcepObject::writeSettings().
|
private |
Definition at line 224 of file qxrdacquisition.h.
Referenced by acquisitionExtraInputs(), initialize(), readSettings(), setNIDAQPlugin(), and writeSettings().
|
private |
Definition at line 228 of file qxrdacquisition.h.
Referenced by allocator(), indicateDroppedFrame(), initialize(), and onBufferSizeChanged().
|
private |
Definition at line 231 of file qxrdacquisition.h.
Referenced by controlPanel().
|
private |
Definition at line 229 of file qxrdacquisition.h.
Referenced by controlPanel(), dataProcessor(), and processImage().
|
private |
Definition at line 237 of file qxrdacquisition.h.
Referenced by appendDetector(), appendDetectorProxy(), clearDetectors(), detector(), onExposureTimeChanged(), readSettings(), and writeSettings().
|
private |
Definition at line 236 of file qxrdacquisition.h.
Referenced by appendDetector(), appendDetectorProxy(), detectorThread(), and readSettings().
|
private |
Definition at line 226 of file qxrdacquisition.h.
Referenced by controlPanel(), criticalMessage(), experiment(), initialize(), Message(), printMessage(), and statusMessage().
|
private |
Definition at line 233 of file qxrdacquisition.h.
Referenced by initialize().
|
private |
Definition at line 234 of file qxrdacquisition.h.
Referenced by onIdleTimeout(), startIdling(), and stopIdling().
|
mutableprivate |
Definition at line 221 of file qxrdacquisition.h.
Referenced by propertyList(), readSettings(), and writeSettings().
|
private |
Definition at line 239 of file qxrdacquisition.h.
Referenced by acquisitionScalerModel(), and initialize().
|
private |
Definition at line 223 of file qxrdacquisition.h.
Referenced by initialize(), nidaqPlugin(), readSettings(), setNIDAQPlugin(), synchronizedAcquisition(), and writeSettings().
|
private |
Definition at line 227 of file qxrdacquisition.h.
Referenced by controlPanel(), and setWindow().
|
readwrite |
Definition at line 211 of file qxrdacquisition.h.
|
readwrite |
Definition at line 187 of file qxrdacquisition.h.
|
readwrite |
Definition at line 151 of file qxrdacquisition.h.
|
readwrite |
Definition at line 169 of file qxrdacquisition.h.
|
readwrite |
Definition at line 205 of file qxrdacquisition.h.
|
readwrite |
Definition at line 172 of file qxrdacquisition.h.
Referenced by currentFileBase(), doAcquire(), doAcquireDark(), and processImage().
|
readwrite |
Definition at line 157 of file qxrdacquisition.h.
Referenced by doAcquire(), and doAcquireDark().
|
readwrite |
Definition at line 160 of file qxrdacquisition.h.
|
readwrite |
Definition at line 166 of file qxrdacquisition.h.
|
readwrite |
Definition at line 163 of file qxrdacquisition.h.
|
readwrite |
Definition at line 154 of file qxrdacquisition.h.
|
readwrite |
Definition at line 208 of file qxrdacquisition.h.
|
readwrite |
Definition at line 202 of file qxrdacquisition.h.
|
readwrite |
Definition at line 175 of file qxrdacquisition.h.
|
read |
Definition at line 148 of file qxrdacquisition.h.
|
read |
Definition at line 145 of file qxrdacquisition.h.
|
readwrite |
Definition at line 178 of file qxrdacquisition.h.
|
readwrite |
Definition at line 181 of file qxrdacquisition.h.
|
readwrite |
Definition at line 184 of file qxrdacquisition.h.
|
readwrite |
Definition at line 214 of file qxrdacquisition.h.
|
readwrite |
Definition at line 217 of file qxrdacquisition.h.
|
readwrite |
Definition at line 190 of file qxrdacquisition.h.
|
readwrite |
Definition at line 193 of file qxrdacquisition.h.
|
readwrite |
Definition at line 196 of file qxrdacquisition.h.
|
readwrite |
Definition at line 199 of file qxrdacquisition.h.