29 m_DetectorType(saver, this,
"detectorType", detType,
"Detector Type"),
31 m_Enabled(saver, this,
"enabled", true,
"Is Detector Enabled?"),
37 m_Extension(saver, this,
"extension",
"tif",
"File extension")
40 printf(
"QxrdDetector::QxrdDetector(%p)\n",
this);
68 printf(
"QxrdDetector::~QxrdDetector(%p)\n",
this);
99 res = calc->roiCount();
126 exp->printMessage(msg, ts);
135 exp->criticalMessage(msg);
144 exp->statusMessage(msg);
155 m_Processor->readSettings(settings, section+
"/processor");
166 m_Processor->writeSettings(settings, section+
"/processor");
172 return get_Enabled();
220 return engine->newQObject(det.data());
225 QObject *qobj = obj.toQObject();
238 proxy->clearProperties();
251 proxy->clearProperties();
265 set_Enabled(proxy->property(
"enabled").toBool());
266 set_DetectorNumber(proxy->property(
"detectorNumber").toInt());
267 set_DetectorName(proxy->property(
"detectorName").toString());
317 }
else if (acq->get_Cancelling()) {
QSharedPointer< QxrdDetectorControlWindow > QxrdDetectorControlWindowPtr
QSharedPointer< QxrdExperiment > QxrdExperimentPtr
void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QSharedPointer< QxrdDetectorProxy > QxrdDetectorProxyPtr
virtual void pushPropertiesToProxy(QxrdDetectorProxyPtr proxy)
QxrdExperimentWPtr m_Experiment
QcepImageBaseQueue m_AcquiredImages
qint64 qcepDebug(int cond)
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
QSharedPointer< QxrdAcquisition > QxrdAcquisitionPtr
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
virtual void readSettings(QSettings *set, QString section)
QSharedPointer< QxrdROICoordinates > QxrdROICoordinatesPtr
void detectorStateChanged()
QxrdExperimentWPtr experiment()
virtual void pullPropertiesfromProxy(QxrdDetectorProxyPtr proxy)
QSharedPointer< QxrdROICalculator > QxrdROICalculatorPtr
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)
QxrdDetectorProcessorPtr m_Processor
void writeSettings(QSettings *settings, QString section)
QSharedPointer< T > dequeue()
void enqueue(QSharedPointer< T > data)
void readSettings(QSettings *settings, QString section)
QcepSettingsSaverWPtr m_Saver
virtual void startDetector()
QSharedPointer< QxrdDetectorProcessor > QxrdDetectorProcessorPtr
QxrdDetectorProcessorPtr processor()
QxrdDetectorControlWindowPtr m_DetectorControlWindow
QxrdAcquisitionWPtr acquisition()
virtual void stopDetector()
virtual void writeSettings(QSettings *set, QString section)
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
static QString detectorTypeName(int detectorType)
QSemaphore m_NAcquiredImages
void valueChanged(bool val, int index)
virtual void beginAcquisition(double exposure)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr