QXRD
0.11.16
|
#include <qxrddetectorprocessor.h>
Public Types | |
enum | { NoDisplayMode, ImageDisplayMode, IntegratedDisplayMode } |
Public Slots | |
QxrdCenterFinderPtr | centerFinder () |
QxrdIntegratorPtr | integrator () |
QxrdROICalculatorPtr | roiCalculator () |
void | processAcquiredImage (QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow, int fileIndex, int phase, int nPhases, bool trig) |
void | processDarkImage (QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow, int fileIndex) |
void | processIdleImage (QcepImageDataBasePtr image) |
QcepImageDataBasePtr | data () |
QcepInt32ImageDataPtr | dark () |
QcepDoubleImageDataPtr | badPixels () |
QcepDoubleImageDataPtr | gainCorrection () |
QcepMaskDataPtr | mask () |
QcepMaskDataPtr | overflow () |
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) |
Public Member Functions | |
QxrdDetectorProcessor (QcepSettingsSaverWPtr saver, QxrdExperimentWPtr doc, QxrdFileSaverWPtr fsav, QxrdDetectorWPtr det) | |
virtual | ~QxrdDetectorProcessor () |
void | setControlWindow (QxrdDetectorControlWindowWPtr ctrl) |
void | readSettings (QSettings *settings, QString section) |
void | writeSettings (QSettings *settings, QString section) |
QxrdImagePlotSettingsWPtr | imagePlotSettings () |
QString | filePathInDarkOutputDirectory (QString fileName) const |
QString | filePathInRawOutputDirectory (QString fileName) const |
QString | filePathInSubtractedOutputDirectory (QString fileName) const |
QString | filePathInIntegratedOutputDirectory (QString fileName) const |
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 QxrdDetectorProcessorPtr &proc) |
static void | fromScriptValue (const QScriptValue &obj, QxrdDetectorProcessorPtr &proc) |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Properties | |
int | detectorDisplayMode |
bool | performDarkSubtraction |
bool | saveRawImages |
bool | saveDarkImages |
bool | performBadPixels |
bool | performGainCorrection |
bool | saveSubtracted |
QString | darkImagePath |
QString | rawDataSubdir |
QString | darkDataSubdir |
QString | badPixelsPath |
QString | gainMapPath |
QString | subtractedSubdir |
QString | maskPath |
bool | performIntegration |
bool | displayIntegratedData |
bool | saveIntegratedData |
QString | integratedDataFile |
bool | saveIntegratedDataSeparate |
QString | integratedDataSubdir |
bool | accumulateIntegrated2D |
QString | accumulateIntegratedName |
bool | calculateROICounts |
bool | displayROIBorders |
QcepDoubleVector | roiCounts |
Properties inherited from QcepObject | |
QString | name |
Private Slots | |
void | onMaskPathChanged (QString newPath) |
void | onDarkImagePathChanged (QString newPath) |
void | onBadPixelsPathChanged (QString newPath) |
void | onGainMapPathChanged (QString newPath) |
Private Member Functions | |
void | setAcquiredImageProperties (QcepImageDataBasePtr image, int fileIndex, int phase, int nPhases, bool trig) |
QcepImageDataBasePtr | doDarkSubtraction (QcepImageDataBasePtr img) |
QcepImageDataBasePtr | doBadPixels (QcepImageDataBasePtr img) |
QcepImageDataBasePtr | doGainCorrection (QcepImageDataBasePtr img) |
QcepDoubleVector | doCalculateROICounts (QcepImageDataBasePtr img) |
void | doSaveRawImage (QcepImageDataBasePtr img, QcepMaskDataPtr ovf) |
void | doSaveSubtractedImage (QcepImageDataBasePtr img, QcepMaskDataPtr ovf) |
void | doSaveDarkImage (QcepImageDataBasePtr img, QcepMaskDataPtr ovf) |
QString | dataDirectory () const |
QString | darkOutputDirectory () const |
QString | rawOutputDirectory () const |
QString | subtractedOutputDirectory () const |
QString | integratedOutputDirectory () const |
QString | existingOutputDirectory (QString dir, QString subdir) const |
Definition at line 24 of file qxrddetectorprocessor.h.
anonymous enum |
Enumerator | |
---|---|
NoDisplayMode | |
ImageDisplayMode | |
IntegratedDisplayMode |
Definition at line 73 of file qxrddetectorprocessor.h.
QxrdDetectorProcessor::QxrdDetectorProcessor | ( | QcepSettingsSaverWPtr | saver, |
QxrdExperimentWPtr | doc, | ||
QxrdFileSaverWPtr | fsav, | ||
QxrdDetectorWPtr | det | ||
) |
Definition at line 15 of file qxrddetectorprocessor.cpp.
References DEBUG_CONSTRUCTORS, m_CenterFinder, m_Experiment, m_Integrator, m_ROICalculator, m_Saver, onBadPixelsPathChanged(), onDarkImagePathChanged(), onGainMapPathChanged(), onMaskPathChanged(), qcepDebug(), and QcepStringProperty::valueChanged().
|
virtual |
Definition at line 75 of file qxrddetectorprocessor.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
|
slot |
Definition at line 176 of file qxrddetectorprocessor.cpp.
References m_BadPixels.
|
slot |
Definition at line 151 of file qxrddetectorprocessor.cpp.
References m_CenterFinder.
|
slot |
Definition at line 171 of file qxrddetectorprocessor.cpp.
References m_DarkImage.
Referenced by doDarkSubtraction(), and onDarkImagePathChanged().
|
private |
Definition at line 683 of file qxrddetectorprocessor.cpp.
References dataDirectory(), and existingOutputDirectory().
Referenced by filePathInDarkOutputDirectory().
|
slot |
|
private |
Definition at line 667 of file qxrddetectorprocessor.cpp.
References m_Experiment.
Referenced by darkOutputDirectory(), integratedOutputDirectory(), rawOutputDirectory(), and subtractedOutputDirectory().
|
private |
Definition at line 590 of file qxrddetectorprocessor.cpp.
References QcepObject::printMessage().
Referenced by processAcquiredImage(), and processIdleImage().
|
private |
Definition at line 604 of file qxrddetectorprocessor.cpp.
References DEBUG_ACQUIRE, m_Mask, m_ROICalculator, QcepObject::printMessage(), and qcepDebug().
Referenced by processAcquiredImage(), and processIdleImage().
|
private |
Definition at line 492 of file qxrddetectorprocessor.cpp.
References QcepAllocator::AlwaysAllocate, dark(), m_DarkImage, QcepAllocator::newDoubleImage(), and QcepObject::printMessage().
Referenced by processAcquiredImage(), and processIdleImage().
|
private |
Definition at line 597 of file qxrddetectorprocessor.cpp.
References QcepObject::printMessage().
Referenced by processAcquiredImage(), and processIdleImage().
|
private |
Definition at line 643 of file qxrddetectorprocessor.cpp.
References filePathInDarkOutputDirectory(), m_Experiment, m_FileSaver, and QxrdFileSaver::NoOverwrite.
Referenced by processDarkImage().
|
private |
Definition at line 631 of file qxrddetectorprocessor.cpp.
References filePathInRawOutputDirectory(), m_Experiment, m_FileSaver, and QxrdFileSaver::NoOverwrite.
Referenced by processAcquiredImage().
|
private |
Definition at line 655 of file qxrddetectorprocessor.cpp.
References filePathInSubtractedOutputDirectory(), m_Experiment, m_FileSaver, and QxrdFileSaver::NoOverwrite.
Referenced by processAcquiredImage().
|
private |
Definition at line 678 of file qxrddetectorprocessor.cpp.
Referenced by darkOutputDirectory(), integratedOutputDirectory(), rawOutputDirectory(), and subtractedOutputDirectory().
QString QxrdDetectorProcessor::filePathInDarkOutputDirectory | ( | QString | fileName | ) | const |
Definition at line 688 of file qxrddetectorprocessor.cpp.
References darkOutputDirectory().
Referenced by doSaveDarkImage().
QString QxrdDetectorProcessor::filePathInIntegratedOutputDirectory | ( | QString | fileName | ) | const |
Definition at line 718 of file qxrddetectorprocessor.cpp.
References integratedOutputDirectory().
QString QxrdDetectorProcessor::filePathInRawOutputDirectory | ( | QString | fileName | ) | const |
Definition at line 698 of file qxrddetectorprocessor.cpp.
References rawOutputDirectory().
Referenced by doSaveRawImage().
QString QxrdDetectorProcessor::filePathInSubtractedOutputDirectory | ( | QString | fileName | ) | const |
Definition at line 708 of file qxrddetectorprocessor.cpp.
References subtractedOutputDirectory().
Referenced by doSaveSubtractedImage().
|
static |
Definition at line 138 of file qxrddetectorprocessor.cpp.
|
slot |
Definition at line 181 of file qxrddetectorprocessor.cpp.
References m_GainMap.
QxrdImagePlotSettingsWPtr QxrdDetectorProcessor::imagePlotSettings | ( | ) |
Definition at line 487 of file qxrddetectorprocessor.cpp.
References m_ImagePlotSettings.
|
private |
Definition at line 713 of file qxrddetectorprocessor.cpp.
References dataDirectory(), and existingOutputDirectory().
Referenced by filePathInIntegratedOutputDirectory().
|
slot |
Definition at line 156 of file qxrddetectorprocessor.cpp.
References m_Integrator.
|
slot |
Definition at line 186 of file qxrddetectorprocessor.cpp.
References m_Mask.
Referenced by onMaskPathChanged().
|
privateslot |
Definition at line 761 of file qxrddetectorprocessor.cpp.
References QcepAllocator::AlwaysAllocate, m_BadPixels, QcepAllocator::newDoubleImage(), and QcepObject::printMessage().
Referenced by QxrdDetectorProcessor().
|
privateslot |
Definition at line 745 of file qxrddetectorprocessor.cpp.
References QcepAllocator::AlwaysAllocate, dark(), m_DarkImage, QcepAllocator::newInt32Image(), and QcepObject::printMessage().
Referenced by QxrdDetectorProcessor().
|
privateslot |
Definition at line 777 of file qxrddetectorprocessor.cpp.
References QcepObject::printMessage().
Referenced by QxrdDetectorProcessor().
|
privateslot |
Definition at line 723 of file qxrddetectorprocessor.cpp.
References QcepAllocator::AlwaysAllocate, m_ControlWindow, m_Mask, mask(), QcepAllocator::newMask(), and QcepObject::printMessage().
Referenced by QxrdDetectorProcessor().
|
slot |
Definition at line 191 of file qxrddetectorprocessor.cpp.
References m_Overflow.
Referenced by processAcquiredImage().
|
slot |
Definition at line 237 of file qxrddetectorprocessor.cpp.
References DEBUG_ACQUIRE, DEBUG_ACQUIRETIME, doBadPixels(), doCalculateROICounts(), doDarkSubtraction(), doGainCorrection(), doSaveRawImage(), doSaveSubtractedImage(), ImageDisplayMode, m_ControlWindow, m_Data, m_Overflow, overflow(), QcepObject::printMessage(), qcepDebug(), and setAcquiredImageProperties().
|
slot |
Definition at line 370 of file qxrddetectorprocessor.cpp.
References DEBUG_ACQUIRE, doSaveDarkImage(), m_DarkImage, QcepObject::printMessage(), qcepDebug(), and setAcquiredImageProperties().
|
slot |
Definition at line 399 of file qxrddetectorprocessor.cpp.
References DEBUG_ACQUIRE, DEBUG_ACQUIRETIME, doBadPixels(), doCalculateROICounts(), doDarkSubtraction(), doGainCorrection(), ImageDisplayMode, m_ControlWindow, m_Experiment, QcepObject::printMessage(), qcepDebug(), and setAcquiredImageProperties().
|
private |
Definition at line 693 of file qxrddetectorprocessor.cpp.
References dataDirectory(), and existingOutputDirectory().
Referenced by filePathInRawOutputDirectory().
|
virtual |
Reimplemented from QcepObject.
Definition at line 87 of file qxrddetectorprocessor.cpp.
References m_CenterFinder, m_ImagePlotSettings, m_Integrator, m_Mutex, m_ROICalculator, and QcepObject::readSettings().
|
slot |
Definition at line 161 of file qxrddetectorprocessor.cpp.
References m_ROICalculator.
|
private |
Definition at line 196 of file qxrddetectorprocessor.cpp.
References m_Detector, QcepImageDataBase::Raw32Data, and QcepImageDataBase::secondsSinceEpoch().
Referenced by processAcquiredImage(), processDarkImage(), and processIdleImage().
void QxrdDetectorProcessor::setControlWindow | ( | QxrdDetectorControlWindowWPtr | ctrl | ) |
Definition at line 82 of file qxrddetectorprocessor.cpp.
References m_ControlWindow.
|
private |
Definition at line 703 of file qxrddetectorprocessor.cpp.
References dataDirectory(), and existingOutputDirectory().
Referenced by filePathInSubtractedOutputDirectory().
|
static |
Definition at line 133 of file qxrddetectorprocessor.cpp.
|
virtual |
Reimplemented from QcepObject.
Definition at line 110 of file qxrddetectorprocessor.cpp.
References m_CenterFinder, m_ImagePlotSettings, m_Integrator, m_Mutex, m_ROICalculator, and QcepObject::writeSettings().
|
private |
Definition at line 211 of file qxrddetectorprocessor.h.
Referenced by badPixels(), and onBadPixelsPathChanged().
|
private |
Definition at line 201 of file qxrddetectorprocessor.h.
Referenced by centerFinder(), QxrdDetectorProcessor(), readSettings(), and writeSettings().
|
private |
Definition at line 205 of file qxrddetectorprocessor.h.
Referenced by onMaskPathChanged(), processAcquiredImage(), processIdleImage(), and setControlWindow().
|
private |
Definition at line 210 of file qxrddetectorprocessor.h.
Referenced by dark(), doDarkSubtraction(), onDarkImagePathChanged(), and processDarkImage().
|
private |
Definition at line 209 of file qxrddetectorprocessor.h.
Referenced by data(), and processAcquiredImage().
|
private |
Definition at line 199 of file qxrddetectorprocessor.h.
Referenced by setAcquiredImageProperties().
|
private |
Definition at line 197 of file qxrddetectorprocessor.h.
Referenced by dataDirectory(), doSaveDarkImage(), doSaveRawImage(), doSaveSubtractedImage(), processIdleImage(), and QxrdDetectorProcessor().
|
private |
Definition at line 198 of file qxrddetectorprocessor.h.
Referenced by doSaveDarkImage(), doSaveRawImage(), and doSaveSubtractedImage().
|
private |
Definition at line 212 of file qxrddetectorprocessor.h.
Referenced by gainCorrection().
|
private |
Definition at line 207 of file qxrddetectorprocessor.h.
Referenced by imagePlotSettings(), readSettings(), and writeSettings().
|
private |
Definition at line 202 of file qxrddetectorprocessor.h.
Referenced by integrator(), QxrdDetectorProcessor(), readSettings(), and writeSettings().
|
private |
Definition at line 213 of file qxrddetectorprocessor.h.
|
private |
Definition at line 214 of file qxrddetectorprocessor.h.
Referenced by doCalculateROICounts(), mask(), and onMaskPathChanged().
|
private |
Definition at line 195 of file qxrddetectorprocessor.h.
Referenced by readSettings(), and writeSettings().
|
private |
Definition at line 215 of file qxrddetectorprocessor.h.
Referenced by overflow(), and processAcquiredImage().
|
private |
Definition at line 203 of file qxrddetectorprocessor.h.
Referenced by doCalculateROICounts(), QxrdDetectorProcessor(), readSettings(), roiCalculator(), and writeSettings().
|
private |
Definition at line 113 of file qxrddetectorprocessor.h.
Referenced by QxrdDetectorProcessor().
|
readwrite |
Definition at line 179 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 182 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 148 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 185 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 145 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 139 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 118 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 164 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 188 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 151 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 170 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 176 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 157 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 130 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 121 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 133 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 161 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 142 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 191 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 127 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 167 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 173 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 124 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 136 of file qxrddetectorprocessor.h.
|
readwrite |
Definition at line 154 of file qxrddetectorprocessor.h.