QXRD
0.11.16
|
#include <qcepimagedata.h>
Public Types | |
enum | { UndefinedData, Raw16Data, Raw32Data, DarkData, MaskData, SubtractedData, GainData, BadPixelsData } |
Public Types inherited from QcepDataObject | |
enum | Overwrite { NoOverwrite, CanOverwrite } |
Public Slots | |
virtual QString | description () const |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual double | getImageData (int x, int y) const =0 |
virtual QVector< double > | getImageData (int x0, int y0, int x1, int y1) const =0 |
virtual void | setImageData (int x, int y, double v)=0 |
virtual void | clear ()=0 |
virtual void | resize (int width, int height)=0 |
virtual void | fill (double val)=0 |
virtual double | minValue () const =0 |
virtual double | maxValue () const =0 |
virtual QPointF | percentileRange (double lowpct, double highpct)=0 |
virtual double | sumInRectangle (QRectF rect)=0 |
virtual double | averageInRectangle (QRectF rect)=0 |
virtual double | maxInRectangle (QRectF rect)=0 |
virtual double | minInRectangle (QRectF rect)=0 |
virtual double | sumInEllipse (QRectF rect)=0 |
virtual double | averageInEllipse (QRectF rect)=0 |
virtual double | minInEllipse (QRectF rect)=0 |
virtual double | maxInEllipse (QRectF rect)=0 |
virtual double | sumInPeak (QRectF rect)=0 |
double | hValue (int n) const |
double | vValue (int n) const |
Public Slots inherited from QcepDataObject | |
virtual QString | description () const |
QString | metaTypeName (int id) const |
QString | pathName () const |
QcepDataGroupPtr | rootItem () |
virtual QcepDataGroupPtr | parentItem () const |
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 | |
QcepImageDataBase (QcepSettingsSaverWPtr saver, int width, int height, int size, QcepObject *parent) | |
virtual | ~QcepImageDataBase () |
QString | get_DateString () const |
void | set_DateString (QString) |
QString | get_DataTypeName () const |
void | set_DataTypeName (QString) |
void | copyProperties (QcepImageDataBase *dest) |
void | copyPropertiesFrom (QSharedPointer< QcepImageDataBase > src) |
void | loadMetaData () |
void | saveMetaData () |
void | saveMetaData (QString name) |
void | saveTextData (QString name, QString sep, bool transp=false) |
void | setDefaultFileName (QString path) |
virtual QString | fileFormatFilterString () |
QString | fileFormatTIFF () |
QString | fileFormatTabDelimited () |
QString | fileFormatTransposedTabDelimited () |
QString | fileFormatCSV () |
QString | fileFormatTransposedCSV () |
QMutex * | mutex () |
Public Member Functions inherited from QcepDataObject | |
QcepDataObject (QcepSettingsSaverWPtr saver, QString name, int byteSize, QcepObject *parent) | |
virtual | ~QcepDataObject () |
QcepSettingsSaverWPtr | saver () |
virtual int | childCount () const |
virtual QcepDataObjectPtr | item (int n) |
virtual QcepDataObjectPtr | item (QString nm) |
virtual void | setParentItem (QcepDataGroupWPtr parent) |
virtual int | indexInParent () const |
virtual int | rowCount () const |
virtual int | columnCount () const |
virtual QVariant | columnData (int col) const |
virtual void | saveData (QString &name, QString filter, Overwrite canOverwrite=NoOverwrite) |
Public Member Functions inherited from QcepObject | |
QcepObject (QString name, QcepObject *parent) | |
virtual | ~QcepObject () |
virtual void | writeSettings (QSettings *set, QString section) |
virtual void | readSettings (QSettings *set, QString section) |
QString | get_Name () const |
void | set_Name (QString name) |
Static Public Member Functions | |
static double | secondsSinceEpoch () |
Static Public Member Functions inherited from QcepDataObject | |
static QcepDataObjectPtr | newDataObject (QcepSettingsSaverWPtr saver, QString name, QcepObject *parent) |
static QScriptValue | toScriptValue (QScriptEngine *engine, const QcepDataObjectPtr &data) |
static void | fromScriptValue (const QScriptValue &obj, QcepDataObjectPtr &data) |
static int | allocatedObjects () |
static int | deletedObjects () |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Protected Attributes | |
int | m_ImageCounter |
QcepSettingsSaverWPtr | m_Saver |
Properties | |
int | width |
int | height |
double | hStart |
double | hStep |
double | vStart |
double | vStep |
QString | hLabel |
QString | hUnits |
QString | vLabel |
QString | vUnits |
int | dataType |
QString | dataTypeName |
QString | fileBase |
QString | title |
int | readoutMode |
double | exposureTime |
int | summedExposures |
int | imageSequenceNumber |
int | imageNumber |
int | phaseNumber |
int | nPhases |
QDateTime | dateTime |
QString | dateString |
double | timeStamp |
int | hBinning |
int | vBinning |
double | cameraGain |
int | triggered |
QString | userComment1 |
QString | userComment2 |
QString | userComment3 |
QString | userComment4 |
QcepDoubleList | normalization |
QcepDoubleList | extraInputs |
bool | used |
Properties inherited from QcepDataObject | |
QString | type |
quint64 | byteSize |
QString | creator |
QString | version |
QString | qtVersion |
QString | description |
QString | fileName |
int | objectSaved |
Properties inherited from QcepObject | |
QString | name |
Private Attributes | |
QMutex | m_Mutex |
Additional Inherited Members | |
Signals inherited from QcepDataObject | |
void | dataObjectChanged () |
Protected Member Functions inherited from QcepDataObject | |
void | mkPath (QString filePath) |
QString | uniqueFileName (QString name) |
Definition at line 23 of file qcepimagedata.h.
anonymous enum |
Enumerator | |
---|---|
UndefinedData | |
Raw16Data | |
Raw32Data | |
DarkData | |
MaskData | |
SubtractedData | |
GainData | |
BadPixelsData |
Definition at line 215 of file qcepimagedata.h.
QcepImageDataBase::QcepImageDataBase | ( | QcepSettingsSaverWPtr | saver, |
int | width, | ||
int | height, | ||
int | size, | ||
QcepObject * | parent | ||
) |
Definition at line 23 of file qcepimagedata.cpp.
References QcepAllocator::allocate(), DEBUG_IMAGE_CONSTRUCTORS, and qcepDebug().
|
virtual |
Definition at line 71 of file qcepimagedata.cpp.
References QcepAllocator::deallocate(), DEBUG_IMAGE_CONSTRUCTORS, and qcepDebug().
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
void QcepImageDataBase::copyProperties | ( | QcepImageDataBase * | dest | ) |
Definition at line 120 of file qcepimagedata.cpp.
References QcepObject::name.
Referenced by QcepImageData< T >::copyImage().
void QcepImageDataBase::copyPropertiesFrom | ( | QSharedPointer< QcepImageDataBase > | src | ) |
Definition at line 158 of file qcepimagedata.cpp.
References QcepObject::name.
Referenced by QcepImageData< T >::copyFrom().
|
virtualslot |
Definition at line 86 of file qcepimagedata.cpp.
QString QcepImageDataBase::fileFormatCSV | ( | ) |
Definition at line 317 of file qcepimagedata.cpp.
Referenced by fileFormatFilterString(), and QcepImageData< T >::saveData().
|
virtual |
Reimplemented from QcepDataObject.
Definition at line 293 of file qcepimagedata.cpp.
References fileFormatCSV(), fileFormatTabDelimited(), fileFormatTIFF(), fileFormatTransposedCSV(), and fileFormatTransposedTabDelimited().
QString QcepImageDataBase::fileFormatTabDelimited | ( | ) |
Definition at line 307 of file qcepimagedata.cpp.
Referenced by fileFormatFilterString(), and QcepImageData< T >::saveData().
QString QcepImageDataBase::fileFormatTIFF | ( | ) |
Definition at line 302 of file qcepimagedata.cpp.
Referenced by fileFormatFilterString(), and QcepImageData< T >::saveData().
QString QcepImageDataBase::fileFormatTransposedCSV | ( | ) |
Definition at line 322 of file qcepimagedata.cpp.
Referenced by fileFormatFilterString(), and QcepImageData< T >::saveData().
QString QcepImageDataBase::fileFormatTransposedTabDelimited | ( | ) |
Definition at line 312 of file qcepimagedata.cpp.
Referenced by fileFormatFilterString(), and QcepImageData< T >::saveData().
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
QString QcepImageDataBase::get_DataTypeName | ( | ) | const |
Definition at line 263 of file qcepimagedata.cpp.
References BadPixelsData, DarkData, GainData, MaskData, Raw16Data, Raw32Data, SubtractedData, and UndefinedData.
|
inline |
Definition at line 186 of file qcepimagedata.h.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
Referenced by saveTextData(), and QcepImageSliceGraphController::updateDisplay().
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
slot |
Definition at line 327 of file qcepimagedata.cpp.
void QcepImageDataBase::loadMetaData | ( | ) |
Definition at line 196 of file qcepimagedata.cpp.
References mutex(), and QcepProperty::readSettings().
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
QMutex * QcepImageDataBase::mutex | ( | ) |
Definition at line 115 of file qcepimagedata.cpp.
References m_Mutex.
Referenced by loadMetaData(), saveMetaData(), and QcepImageData< T >::subtractDark().
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
slot |
Definition at line 91 of file qcepimagedata.cpp.
References m_Saver.
Referenced by QcepImageData< T >::QcepImageData(), QcepImageData< T >::subtractDark(), and QcepImageData< T >::~QcepImageData().
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
void QcepImageDataBase::saveMetaData | ( | ) |
Definition at line 223 of file qcepimagedata.cpp.
Referenced by QcepImageData< T >::saveTIFFData().
void QcepImageDataBase::saveMetaData | ( | QString | name | ) |
Definition at line 228 of file qcepimagedata.cpp.
References mutex(), and QcepProperty::writeSettings().
void QcepImageDataBase::saveTextData | ( | QString | name, |
QString | sep, | ||
bool | transp = false |
||
) |
Definition at line 1315 of file qcepimagedata.cpp.
References getImageData(), and QcepImageData< T >::value().
Referenced by QcepImageData< T >::saveData().
|
static |
Definition at line 102 of file qcepimagedata.cpp.
Referenced by QxrdAcquisition::processImage(), QCEP_DOC_FUNCTION(), and QxrdDetectorProcessor::setAcquiredImageProperties().
|
inline |
Definition at line 194 of file qcepimagedata.h.
|
inline |
Definition at line 191 of file qcepimagedata.h.
void QcepImageDataBase::setDefaultFileName | ( | QString | path | ) |
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
pure virtualslot |
Implemented in QcepImageData< T >, and QcepImageData< short >.
|
slot |
Definition at line 332 of file qcepimagedata.cpp.
|
protected |
Definition at line 229 of file qcepimagedata.h.
|
mutableprivate |
Definition at line 234 of file qcepimagedata.h.
Referenced by mutex().
|
protected |
Definition at line 237 of file qcepimagedata.h.
Referenced by printMessage().
|
readwrite |
Definition at line 108 of file qcepimagedata.h.
|
readwrite |
Definition at line 61 of file qcepimagedata.h.
|
readwrite |
Definition at line 64 of file qcepimagedata.h.
|
readwrite |
Definition at line 96 of file qcepimagedata.h.
|
readwrite |
Definition at line 93 of file qcepimagedata.h.
|
readwrite |
Definition at line 75 of file qcepimagedata.h.
|
readwrite |
Definition at line 129 of file qcepimagedata.h.
|
readwrite |
Definition at line 66 of file qcepimagedata.h.
Referenced by QcepImageData< T >::readImage().
|
readwrite |
Definition at line 102 of file qcepimagedata.h.
|
readwrite |
Definition at line 34 of file qcepimagedata.h.
Referenced by QcepMaskData::andMask(), QcepMaskData::andNotMask(), QcepMaskData::copyMaskTo(), QcepMaskData::growMask(), QcepMaskData::orMask(), QcepMaskData::orNotMask(), QcepImageData< T >::resize(), QcepMaskData::shrinkMask(), QcepImageData< T >::subtractDark(), QcepMaskData::thumbnailImage(), QcepMaskData::xorMask(), and QcepMaskData::xorNotMask().
|
readwrite |
Definition at line 49 of file qcepimagedata.h.
|
readwrite |
Definition at line 37 of file qcepimagedata.h.
|
readwrite |
Definition at line 40 of file qcepimagedata.h.
|
readwrite |
Definition at line 52 of file qcepimagedata.h.
|
readwrite |
Definition at line 84 of file qcepimagedata.h.
|
readwrite |
Definition at line 81 of file qcepimagedata.h.
|
readwrite |
Definition at line 126 of file qcepimagedata.h.
|
readwrite |
Definition at line 90 of file qcepimagedata.h.
|
readwrite |
Definition at line 87 of file qcepimagedata.h.
|
readwrite |
Definition at line 72 of file qcepimagedata.h.
|
readwrite |
Definition at line 78 of file qcepimagedata.h.
|
readwrite |
Definition at line 99 of file qcepimagedata.h.
|
readwrite |
Definition at line 69 of file qcepimagedata.h.
|
readwrite |
Definition at line 111 of file qcepimagedata.h.
|
readwrite |
Definition at line 132 of file qcepimagedata.h.
|
readwrite |
Definition at line 114 of file qcepimagedata.h.
|
readwrite |
Definition at line 117 of file qcepimagedata.h.
|
readwrite |
Definition at line 120 of file qcepimagedata.h.
|
readwrite |
Definition at line 123 of file qcepimagedata.h.
|
readwrite |
Definition at line 105 of file qcepimagedata.h.
|
readwrite |
Definition at line 55 of file qcepimagedata.h.
|
readwrite |
Definition at line 43 of file qcepimagedata.h.
|
readwrite |
Definition at line 46 of file qcepimagedata.h.
|
readwrite |
Definition at line 58 of file qcepimagedata.h.
|
readwrite |
Definition at line 31 of file qcepimagedata.h.
Referenced by QcepMaskData::andMask(), QcepMaskData::andNotMask(), QcepMaskData::copyMaskTo(), QcepMaskData::growMask(), QcepMaskData::orMask(), QcepMaskData::orNotMask(), QcepImageData< T >::resize(), QcepMaskData::shrinkMask(), QcepImageData< T >::subtractDark(), QcepMaskData::thumbnailImage(), QcepMaskData::xorMask(), and QcepMaskData::xorNotMask().