7 #include <QDoubleSpinBox>
16 #include <QScriptEngine>
46 void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
const;
47 void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
const;
48 void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
const;
104 Q_PROPERTY(
int detectorNumber READ get_DetectorNumber WRITE set_DetectorNumber STORED
false)
107 Q_PROPERTY(
int detectorType READ get_DetectorType WRITE set_DetectorType)
110 Q_PROPERTY(QString
detectorTypeName READ get_DetectorTypeName WRITE set_DetectorTypeName STORED false)
113 Q_PROPERTY(
bool enabled READ get_Enabled WRITE set_Enabled)
116 Q_PROPERTY(QString
detectorName READ get_DetectorName WRITE set_DetectorName)
119 Q_PROPERTY(
int nCols READ get_NCols WRITE set_NCols STORED false)
122 Q_PROPERTY(
int nRows READ get_NRows WRITE set_NRows STORED false)
125 Q_PROPERTY(
int hBinning READ get_HBinning WRITE set_HBinning STORED false)
128 Q_PROPERTY(
int vBinning READ get_VBinning WRITE set_VBinning STORED false)
131 Q_PROPERTY(QString
extension READ get_Extension WRITE set_Extension)
135 #endif // QXRDDETECTOR_H
QSharedPointer< QxrdDetectorControlWindow > QxrdDetectorControlWindowPtr
void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QSharedPointer< QxrdDetectorProxy > QxrdDetectorProxyPtr
virtual void pushPropertiesToProxy(QxrdDetectorProxyPtr proxy)
QxrdExperimentWPtr m_Experiment
QcepImageBaseQueue m_AcquiredImages
QxrdDetector(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr expt, QxrdAcquisitionWPtr acq, int detType, int detNum, QcepObject *parent)
static QScriptValue toScriptValue(QScriptEngine *engine, const QxrdDetectorPtr &det)
virtual void onExposureTimeChanged()
void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QSharedPointer< QxrdROICoordinates > QxrdROICoordinatesPtr
QxrdExperimentWPtr experiment()
virtual void pullPropertiesfromProxy(QxrdDetectorProxyPtr proxy)
QxrdAcquisitionWPtr m_Acquisition
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
bool checkDetectorEnabled()
void enqueueAcquiredFrame(QcepImageDataBasePtr img)
QxrdROICoordinatesPtr roi(int i)
void startOrStop(bool enabled)
QVector< double > QcepDoubleVector
virtual QcepImageDataBasePtr acquireFrame()
virtual void beginFrame()
static void fromScriptValue(const QScriptValue &obj, QxrdDetectorPtr &det)
#define QCEP_INTEGER_PROPERTY(propname)
QxrdDetectorProcessorPtr m_Processor
void writeSettings(QSettings *settings, QString section)
void readSettings(QSettings *settings, QString section)
QcepSettingsSaverWPtr m_Saver
virtual void startDetector()
QSharedPointer< QxrdDetectorProcessor > QxrdDetectorProcessorPtr
#define QCEP_STRING_PROPERTY(propname)
QxrdDetectorProcessorPtr processor()
QxrdDetectorControlWindowPtr m_DetectorControlWindow
QxrdAcquisitionWPtr acquisition()
#define QCEP_BOOLEAN_PROPERTY(propname)
virtual void stopDetector()
QWeakPointer< QxrdAcquisition > QxrdAcquisitionWPtr
static void pushDefaultsToProxy(QxrdDetectorProxyPtr proxy, int detType)
virtual QcepImageDataBasePtr acquireFrameIfAvailable()
QcepDoubleVector scalerCounts()
virtual void shutdownAcquisition()
QSharedPointer< QxrdDetector > QxrdDetectorPtr
virtual void endAcquisition()
QSharedPointer< QcepImageDataBase > QcepImageDataBasePtr
QSemaphore m_NAcquiredImages
virtual void beginAcquisition(double exposure)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr