QXRD
0.11.16
|
#include <qxrdroicoordinates.h>
Public Types | |
enum | { Rectangle, Ellipse, RectangleInRectangle, EllipseInRectangle, RectangleInEllipse, EllipseInEllipse, ROITypeCount } |
enum | { SumOutput, AverageOutput, MinimumOutput, MaximumOutput, NPixelsOutput, BackgroundOutput, XGradientOutput, YGradientOutput, OutputCount } |
enum | { NoBounds, RectangleBounds, EllipseBounds } |
enum | { VisualizeNone, VisualizeBackground, VisualizePeak } |
Public Slots | |
void | recalculate (QcepImageDataBasePtr img, QcepMaskDataPtr mask) |
void | visualizeBackground (QcepImageDataBasePtr img, QcepMaskDataPtr mask) |
void | visualizePeak (QcepImageDataBasePtr img, QcepMaskDataPtr mask) |
QVector< double > | values () const |
void | selectNamedROIType (QString nm) |
double | left () const |
double | top () const |
double | right () const |
double | bottom () const |
double | width () const |
double | height () const |
double | width2 () const |
double | height2 () const |
double | left2 () const |
double | right2 () const |
double | top2 () const |
double | bottom2 () const |
QPointF | center () const |
QSizeF | size () const |
QSizeF | size2 () const |
void | setLeft (double l) |
void | setTop (double t) |
void | setRight (double r) |
void | setBottom (double b) |
void | setCenter (QPointF c) |
void | setCenter (double cx, double cy) |
void | setSize (QSizeF s) |
void | setSize (double w, double h) |
void | setSize2 (QSizeF s) |
void | setSize2 (double w, double h) |
void | setCenterX (double cx) |
void | setCenterY (double cy) |
void | setWidth (double w) |
void | setHeight (double h) |
void | setWidth2 (double w) |
void | setHeight2 (double h) |
QVector< QPointF > | markerCoords () |
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) |
Signals | |
void | roiChanged () |
Public Member Functions | |
QxrdROICoordinates (QcepSettingsSaverWPtr saver, QxrdExperimentWPtr exp, int roiType, double left=0, double top=0, double right=0, double bottom=0) | |
virtual | ~QxrdROICoordinates () |
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 int | roiTypeCount () |
static QString | roiTypeName (int roiType) |
static int | outputCount () |
static QString | outputName (int opt) |
static QScriptValue | toScriptValue (QScriptEngine *engine, const QxrdROICoordinatesPtr &coords) |
static void | fromScriptValue (const QScriptValue &obj, QxrdROICoordinatesPtr &coords) |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Properties | |
int | roiType |
QString | roiTypeName |
QRectF | coords |
double | width2 |
double | height2 |
double | sum |
double | average |
double | minimum |
double | maximum |
double | nPixels |
double | background |
double | xGradient |
double | yGradient |
Properties inherited from QcepObject | |
QString | name |
Private Member Functions | |
void | recalculatePrivate (QcepImageDataBasePtr img, QcepMaskDataPtr mask, int vis) |
Definition at line 15 of file qxrdroicoordinates.h.
anonymous enum |
Enumerator | |
---|---|
Rectangle | |
Ellipse | |
RectangleInRectangle | |
EllipseInRectangle | |
RectangleInEllipse | |
EllipseInEllipse | |
ROITypeCount |
Definition at line 38 of file qxrdroicoordinates.h.
anonymous enum |
Enumerator | |
---|---|
SumOutput | |
AverageOutput | |
MinimumOutput | |
MaximumOutput | |
NPixelsOutput | |
BackgroundOutput | |
XGradientOutput | |
YGradientOutput | |
OutputCount |
Definition at line 48 of file qxrdroicoordinates.h.
anonymous enum |
Enumerator | |
---|---|
NoBounds | |
RectangleBounds | |
EllipseBounds |
Definition at line 60 of file qxrdroicoordinates.h.
anonymous enum |
Enumerator | |
---|---|
VisualizeNone | |
VisualizeBackground | |
VisualizePeak |
Definition at line 66 of file qxrdroicoordinates.h.
QxrdROICoordinates::QxrdROICoordinates | ( | QcepSettingsSaverWPtr | saver, |
QxrdExperimentWPtr | exp, | ||
int | roiType, | ||
double | left = 0 , |
||
double | top = 0 , |
||
double | right = 0 , |
||
double | bottom = 0 |
||
) |
Definition at line 6 of file qxrdroicoordinates.cpp.
|
virtual |
Definition at line 30 of file qxrdroicoordinates.cpp.
|
slot |
Definition at line 103 of file qxrdroicoordinates.cpp.
Referenced by recalculatePrivate().
|
slot |
Definition at line 158 of file qxrdroicoordinates.cpp.
References center(), and height2().
Referenced by recalculatePrivate().
|
slot |
Definition at line 118 of file qxrdroicoordinates.cpp.
Referenced by bottom2(), left2(), markerCoords(), recalculatePrivate(), right2(), and top2().
|
static |
Definition at line 39 of file qxrdroicoordinates.cpp.
|
slot |
Definition at line 113 of file qxrdroicoordinates.cpp.
Referenced by recalculatePrivate().
|
slot |
Referenced by bottom2(), markerCoords(), recalculatePrivate(), and top2().
|
slot |
Definition at line 88 of file qxrdroicoordinates.cpp.
Referenced by recalculatePrivate().
|
slot |
Definition at line 143 of file qxrdroicoordinates.cpp.
References center(), and width2().
Referenced by recalculatePrivate().
|
slot |
Definition at line 320 of file qxrdroicoordinates.cpp.
References center(), Ellipse, EllipseInEllipse, EllipseInRectangle, height2(), Rectangle, RectangleInEllipse, RectangleInRectangle, size2(), and width2().
|
static |
|
static |
Definition at line 731 of file qxrdroicoordinates.cpp.
References AverageOutput, BackgroundOutput, MaximumOutput, MinimumOutput, NPixelsOutput, SumOutput, XGradientOutput, and YGradientOutput.
Referenced by QxrdAcquisitionScalerModel::data().
|
slot |
Definition at line 460 of file qxrdroicoordinates.cpp.
References recalculatePrivate(), and VisualizeNone.
|
private |
Definition at line 475 of file qxrdroicoordinates.cpp.
References bottom(), bottom2(), center(), Ellipse, EllipseBounds, EllipseInEllipse, EllipseInRectangle, height(), height2(), left(), left2(), NoBounds, Rectangle, RectangleBounds, RectangleInEllipse, RectangleInRectangle, right(), right2(), sum, top(), top2(), VisualizeBackground, VisualizePeak, width(), and width2().
Referenced by recalculate(), visualizeBackground(), and visualizePeak().
|
slot |
Definition at line 98 of file qxrdroicoordinates.cpp.
Referenced by recalculatePrivate().
|
slot |
Definition at line 148 of file qxrdroicoordinates.cpp.
References center(), and width2().
Referenced by recalculatePrivate().
|
signal |
Referenced by QxrdROICoordinatesListModel::append(), QxrdROICoordinatesListModel::readSettings(), selectNamedROIType(), setBottom(), setCenter(), setCenterX(), setCenterY(), setHeight(), setHeight2(), setLeft(), setRight(), setSize(), setSize2(), setTop(), setWidth(), and setWidth2().
|
static |
Definition at line 83 of file qxrdroicoordinates.cpp.
References ROITypeCount.
Referenced by QxrdROITypeDelegate::createEditor(), QxrdDetectorControlWindow::doAppendROI(), and selectNamedROIType().
|
static |
Definition at line 52 of file qxrdroicoordinates.cpp.
References Ellipse, EllipseInEllipse, EllipseInRectangle, Rectangle, RectangleInEllipse, and RectangleInRectangle.
|
slot |
Definition at line 71 of file qxrdroicoordinates.cpp.
References roiChanged(), roiTypeCount(), and roiTypeName.
|
slot |
|
slot |
Definition at line 207 of file qxrdroicoordinates.cpp.
References roiChanged().
Referenced by setCenter().
|
slot |
Definition at line 218 of file qxrdroicoordinates.cpp.
References setCenter().
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Definition at line 223 of file qxrdroicoordinates.cpp.
References roiChanged().
Referenced by setSize().
|
slot |
Definition at line 236 of file qxrdroicoordinates.cpp.
References setSize().
|
slot |
Definition at line 293 of file qxrdroicoordinates.cpp.
References roiChanged().
Referenced by setSize2().
|
slot |
Definition at line 301 of file qxrdroicoordinates.cpp.
References setSize2().
|
slot |
|
slot |
|
slot |
|
slot |
Definition at line 123 of file qxrdroicoordinates.cpp.
|
slot |
Definition at line 138 of file qxrdroicoordinates.cpp.
Referenced by markerCoords().
|
slot |
Definition at line 93 of file qxrdroicoordinates.cpp.
Referenced by recalculatePrivate().
|
slot |
Definition at line 153 of file qxrdroicoordinates.cpp.
References center(), and height2().
Referenced by recalculatePrivate().
|
static |
Definition at line 34 of file qxrdroicoordinates.cpp.
|
slot |
Definition at line 710 of file qxrdroicoordinates.cpp.
|
slot |
Definition at line 465 of file qxrdroicoordinates.cpp.
References recalculatePrivate(), and VisualizeBackground.
|
slot |
Definition at line 470 of file qxrdroicoordinates.cpp.
References recalculatePrivate(), and VisualizePeak.
|
slot |
Definition at line 108 of file qxrdroicoordinates.cpp.
Referenced by recalculatePrivate().
|
slot |
Referenced by left2(), markerCoords(), recalculatePrivate(), and right2().
|
readwrite |
Definition at line 154 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 166 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 139 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 145 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 160 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 157 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 163 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 133 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 136 of file qxrdroicoordinates.h.
Referenced by QxrdROITypeDelegate::createEditor(), QxrdDetectorControlWindow::doAppendROI(), and selectNamedROIType().
|
readwrite |
Definition at line 151 of file qxrdroicoordinates.h.
Referenced by recalculatePrivate().
|
readwrite |
Definition at line 142 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 169 of file qxrdroicoordinates.h.
|
readwrite |
Definition at line 172 of file qxrdroicoordinates.h.