QXRD
0.11.16
|
#include <qxrddetector.h>
Public Types | |
enum | { FileIndexScaler, FilePhaseScaler, ExtraScalers } |
Public Slots | |
bool | isEnabled () |
bool | checkDetectorEnabled () |
virtual void | startDetector () |
virtual void | stopDetector () |
virtual void | onExposureTimeChanged () |
virtual void | beginAcquisition (double exposure) |
virtual void | endAcquisition () |
virtual void | shutdownAcquisition () |
void | openControlWindow () |
QxrdDetectorProcessorPtr | processor () |
void | startOrStop (bool enabled) |
virtual void | beginFrame () |
virtual QcepImageDataBasePtr | acquireFrameIfAvailable () |
virtual QcepImageDataBasePtr | acquireFrame () |
int | roiCount () |
QxrdROICoordinatesPtr | roi (int i) |
QcepDoubleVector | scalerCounts () |
double | scalerCounts (int chan) |
Public Slots inherited from QcepObject | |
virtual void | printLine (QString line) |
virtual QString | settingsScript () |
QString | scriptValueLiteral (QVariant v) |
Public Member Functions | |
QxrdDetector (QcepSettingsSaverWPtr saver, QxrdExperimentWPtr expt, QxrdAcquisitionWPtr acq, int detType, int detNum, QcepObject *parent) | |
void | initialize () |
virtual | ~QxrdDetector () |
QxrdExperimentWPtr | experiment () |
QxrdAcquisitionWPtr | acquisition () |
virtual void | pushPropertiesToProxy (QxrdDetectorProxyPtr proxy) |
virtual void | pullPropertiesfromProxy (QxrdDetectorProxyPtr proxy) |
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 | readSettings (QSettings *settings, QString section) |
void | writeSettings (QSettings *settings, QString section) |
void | enqueueAcquiredFrame (QcepImageDataBasePtr img) |
Public Member Functions inherited from QcepObject | |
QcepObject (QString name, QcepObject *parent) | |
virtual | ~QcepObject () |
QString | get_Name () const |
void | set_Name (QString name) |
Static Public Member Functions | |
static QScriptValue | toScriptValue (QScriptEngine *engine, const QxrdDetectorPtr &det) |
static void | fromScriptValue (const QScriptValue &obj, QxrdDetectorPtr &det) |
static void | pushDefaultsToProxy (QxrdDetectorProxyPtr proxy, int detType) |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Properties | |
int | detectorNumber |
int | detectorType |
QString | detectorTypeName |
bool | enabled |
QString | detectorName |
int | nCols |
int | nRows |
int | hBinning |
int | vBinning |
QString | extension |
Properties inherited from QcepObject | |
QString | name |
Private Attributes | |
QMutex | m_Mutex |
QSemaphore | m_NAcquiredImages |
QcepImageBaseQueue | m_AcquiredImages |
Definition at line 21 of file qxrddetector.h.
anonymous enum |
Enumerator | |
---|---|
FileIndexScaler | |
FilePhaseScaler | |
ExtraScalers |
Definition at line 55 of file qxrddetector.h.
|
explicit |
Definition at line 14 of file qxrddetector.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
|
virtual |
Definition at line 65 of file qxrddetector.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
|
virtualslot |
Definition at line 309 of file qxrddetector.cpp.
References QcepImageQueue< T >::dequeue(), m_AcquiredImages, m_Acquisition, and m_NAcquiredImages.
Referenced by acquireFrameIfAvailable().
|
virtualslot |
Definition at line 326 of file qxrddetector.cpp.
References acquireFrame(), and m_NAcquiredImages.
QxrdAcquisitionWPtr QxrdDetector::acquisition | ( | ) |
|
virtualslot |
Reimplemented in QxrdDetectorPerkinElmer, and QxrdDetectorSimulated.
Definition at line 206 of file qxrddetector.cpp.
Referenced by QxrdDetectorPilatus::beginAcquisition(), QxrdDetectorSimulated::beginAcquisition(), and QxrdDetectorPerkinElmer::beginAcquisition().
|
virtualslot |
Definition at line 305 of file qxrddetector.cpp.
Referenced by QxrdDetectorPilatus::beginFrame().
|
slot |
Definition at line 184 of file qxrddetector.cpp.
References criticalMessage(), and isEnabled().
Referenced by QxrdDetectorPilatus::imagePath(), QxrdDetectorPerkinElmer::onEndFrame(), QxrdDetectorPerkinElmer::onEndFrameCallback(), QxrdDetectorSimulated::onTimerTimeout(), QxrdDetectorSimulated::startDetector(), QxrdDetectorPerkinElmer::startDetector(), and QxrdDetectorPerkinElmer::startupAcquisition().
|
virtual |
Reimplemented from QcepObject.
Definition at line 130 of file qxrddetector.cpp.
References m_Experiment.
Referenced by QxrdDetectorPerkinElmer::acquisitionError(), QxrdDetectorPerkinElmer::acquisitionInitError(), QxrdDetectorPerkinElmer::acquisitionNSensorsError(), checkDetectorEnabled(), QxrdDetectorPerkinElmer::checkPluginAvailable(), QxrdDetectorPilatus::interpretReply(), and QxrdDetectorPerkinElmer::startDetector().
|
virtualslot |
Reimplemented in QxrdDetectorPerkinElmer, and QxrdDetectorSimulated.
Definition at line 210 of file qxrddetector.cpp.
Referenced by QxrdDetectorPilatus::endAcquisition(), QxrdDetectorSimulated::endAcquisition(), and QxrdDetectorPerkinElmer::endAcquisition().
void QxrdDetector::enqueueAcquiredFrame | ( | QcepImageDataBasePtr | img | ) |
Definition at line 298 of file qxrddetector.cpp.
References QcepImageQueue< T >::enqueue(), m_AcquiredImages, and m_NAcquiredImages.
Referenced by QxrdDetectorPilatus::interpretReply(), QxrdDetectorPilatus::loadAndPush(), QxrdDetectorPerkinElmer::onEndFrame(), and QxrdDetectorSimulated::onTimerTimeout().
QxrdExperimentWPtr QxrdDetector::experiment | ( | ) |
|
static |
Definition at line 223 of file qxrddetector.cpp.
void QxrdDetector::initialize | ( | ) |
Definition at line 44 of file qxrddetector.cpp.
References QxrdAcquisition::detectorStateChanged(), m_Acquisition, m_Experiment, m_Processor, m_Saver, startOrStop(), and QcepBoolProperty::valueChanged().
|
slot |
Definition at line 170 of file qxrddetector.cpp.
Referenced by checkDetectorEnabled(), QxrdDetectorPerkinElmer::onBinningModeChanged(), QxrdDetectorPerkinElmer::onCameraGainChanged(), OnEndFrameCallback(), QxrdDetectorSimulated::onExposureTimeChanged(), and QxrdDetectorPerkinElmer::onExposureTimeChanged().
|
virtualslot |
Definition at line 202 of file qxrddetector.cpp.
|
slot |
Definition at line 272 of file qxrddetector.cpp.
References GUI_THREAD_CHECK, m_Acquisition, m_DetectorControlWindow, m_Experiment, m_Processor, and m_Saver.
|
virtual |
Reimplemented from QcepObject.
Definition at line 121 of file qxrddetector.cpp.
References m_Experiment.
Referenced by QxrdDetectorPerkinElmer::acquisitionError(), QxrdDetectorPilatus::beginAcquisition(), QxrdDetectorPerkinElmer::beginAcquisition(), QxrdDetectorPilatus::beginFrame(), QxrdDetectorPerkinElmer::dumpHeaderInfo(), QxrdDetectorPilatus::interpretReply(), QxrdDetectorPilatus::loadAndPush(), QxrdDetectorPerkinElmer::onBinningModeChanged(), QxrdDetectorPerkinElmer::onCameraGainChanged(), QxrdDetectorPerkinElmer::onEndFrame(), QxrdDetectorPerkinElmer::onExposureTimeChanged(), QxrdDetectorPerkinElmer::QxrdDetectorPerkinElmer(), QxrdDetectorPilatus::readyRead(), QxrdDetectorPilatus::remoteCopy(), QxrdDetectorPilatus::remoteDelete(), QxrdDetectorPilatus::sendCommand(), QxrdDetectorSimulated::startDetector(), QxrdDetectorPilatus::startDetector(), QxrdDetectorPerkinElmer::startDetector(), QxrdDetectorPerkinElmer::startupAcquisition(), QxrdDetectorSimulated::stopDetector(), QxrdDetectorPilatus::stopDetector(), QxrdDetectorPerkinElmer::stopDetector(), and QxrdDetectorPerkinElmer::~QxrdDetectorPerkinElmer().
|
slot |
|
virtual |
Reimplemented in QxrdDetectorPerkinElmer, QxrdDetectorPilatus, QxrdDetectorSimulated, and QxrdDetectorFileWatcher.
Definition at line 262 of file qxrddetector.cpp.
Referenced by QxrdDetectorFileWatcher::pullPropertiesfromProxy(), QxrdDetectorSimulated::pullPropertiesfromProxy(), QxrdDetectorPilatus::pullPropertiesfromProxy(), and QxrdDetectorPerkinElmer::pullPropertiesfromProxy().
|
static |
Definition at line 236 of file qxrddetector.cpp.
References QxrdDetectorProxy::BooleanProperty, QxrdDetectorProxy::DetectorNumberProperty, QxrdDetectorThread::detectorTypeName(), QxrdDetectorProxy::DetectorTypeProperty, and QxrdDetectorProxy::StringProperty.
Referenced by QxrdDetectorFileWatcher::pushDefaultsToProxy(), QxrdDetectorSimulated::pushDefaultsToProxy(), QxrdDetectorPilatus::pushDefaultsToProxy(), QxrdDetectorPerkinElmer::pushDefaultsToProxy(), and QxrdDetectorThread::pushDefaultsToProxy().
|
virtual |
Reimplemented in QxrdDetectorPerkinElmer, QxrdDetectorPilatus, QxrdDetectorSimulated, and QxrdDetectorFileWatcher.
Definition at line 249 of file qxrddetector.cpp.
References QxrdDetectorProxy::BooleanProperty, QxrdDetectorProxy::DetectorNumberProperty, QxrdDetectorProxy::DetectorTypeProperty, and QxrdDetectorProxy::StringProperty.
Referenced by QxrdDetectorFileWatcher::pushPropertiesToProxy(), QxrdDetectorSimulated::pushPropertiesToProxy(), QxrdDetectorPilatus::pushPropertiesToProxy(), and QxrdDetectorPerkinElmer::pushPropertiesToProxy().
|
virtual |
Reimplemented from QcepObject.
Definition at line 148 of file qxrddetector.cpp.
References m_Mutex, m_Processor, and QcepObject::readSettings().
|
slot |
Definition at line 106 of file qxrddetector.cpp.
References m_Processor.
|
slot |
Definition at line 91 of file qxrddetector.cpp.
References m_Processor.
|
slot |
|
slot |
|
virtualslot |
Reimplemented in QxrdDetectorPerkinElmer, and QxrdDetectorSimulated.
Definition at line 214 of file qxrddetector.cpp.
Referenced by QxrdDetectorPilatus::shutdownAcquisition(), QxrdDetectorSimulated::shutdownAcquisition(), and QxrdDetectorPerkinElmer::shutdownAcquisition().
|
virtualslot |
Definition at line 194 of file qxrddetector.cpp.
Referenced by QxrdDetectorSimulated::startDetector(), QxrdDetectorPilatus::startDetector(), QxrdDetectorPerkinElmer::startDetector(), and startOrStop().
|
slot |
Definition at line 175 of file qxrddetector.cpp.
References startDetector(), and stopDetector().
Referenced by initialize().
|
virtual |
Reimplemented from QcepObject.
Definition at line 139 of file qxrddetector.cpp.
References m_Experiment.
|
virtualslot |
Definition at line 198 of file qxrddetector.cpp.
Referenced by startOrStop(), QxrdDetectorSimulated::stopDetector(), and QxrdDetectorPilatus::stopDetector().
|
static |
Definition at line 218 of file qxrddetector.cpp.
|
virtual |
Reimplemented from QcepObject.
Definition at line 159 of file qxrddetector.cpp.
References m_Mutex, m_Processor, and QcepObject::writeSettings().
|
private |
Definition at line 101 of file qxrddetector.h.
Referenced by acquireFrame(), and enqueueAcquiredFrame().
|
protected |
Definition at line 94 of file qxrddetector.h.
Referenced by acquireFrame(), acquisition(), QxrdDetectorPerkinElmer::acquisitionError(), QxrdDetectorPilatus::expose(), initialize(), QxrdDetectorPerkinElmer::onBinningModeChanged(), QxrdDetectorPerkinElmer::onCameraGainChanged(), QxrdDetectorPerkinElmer::onEndFrame(), QxrdDetectorPerkinElmer::onEndFrameCallback(), QxrdDetectorSimulated::onExposureTimeChanged(), QxrdDetectorPerkinElmer::onExposureTimeChanged(), QxrdDetectorSimulated::onTimerTimeout(), openControlWindow(), QxrdDetectorSimulated::startDetector(), and QxrdDetectorPerkinElmer::startDetector().
|
protected |
Definition at line 96 of file qxrddetector.h.
Referenced by openControlWindow().
|
protected |
Definition at line 93 of file qxrddetector.h.
Referenced by criticalMessage(), experiment(), initialize(), QxrdDetectorPilatus::loadAndPush(), QxrdDetectorSimulated::onExposureTimeChanged(), openControlWindow(), printMessage(), QxrdDetectorPilatus::remoteCopy(), QxrdDetectorPilatus::remoteTransfer(), QxrdDetectorPerkinElmer::startDetector(), and statusMessage().
|
private |
Definition at line 99 of file qxrddetector.h.
Referenced by readSettings(), and writeSettings().
|
private |
Definition at line 100 of file qxrddetector.h.
Referenced by acquireFrame(), acquireFrameIfAvailable(), and enqueueAcquiredFrame().
|
protected |
Definition at line 95 of file qxrddetector.h.
Referenced by initialize(), openControlWindow(), processor(), readSettings(), roi(), roiCount(), scalerCounts(), and writeSettings().
|
protected |
Definition at line 92 of file qxrddetector.h.
Referenced by initialize(), and openControlWindow().
|
readwrite |
Definition at line 116 of file qxrddetector.h.
|
readwrite |
Definition at line 104 of file qxrddetector.h.
|
readwrite |
Definition at line 107 of file qxrddetector.h.
|
readwrite |
Definition at line 110 of file qxrddetector.h.
|
readwrite |
Definition at line 113 of file qxrddetector.h.
|
readwrite |
Definition at line 131 of file qxrddetector.h.
|
readwrite |
Definition at line 125 of file qxrddetector.h.
|
readwrite |
Definition at line 119 of file qxrddetector.h.
Referenced by QxrdDetectorSimulated::onTimerTimeout().
|
readwrite |
Definition at line 122 of file qxrddetector.h.
Referenced by QxrdDetectorSimulated::onTimerTimeout().
|
readwrite |
Definition at line 128 of file qxrddetector.h.