1 #ifndef QXRDROICOORDINATES_H
2 #define QXRDROICOORDINATES_H
13 #include <QScriptEngine>
80 QVector<double>
values()
const;
109 void setSize(
double w,
double h);
133 Q_PROPERTY(
int roiType READ get_RoiType WRITE set_RoiType)
136 Q_PROPERTY(QString roiTypeName READ get_RoiTypeName WRITE set_RoiTypeName STORED false)
139 Q_PROPERTY(QRectF coords READ get_Coords WRITE set_Coords)
142 Q_PROPERTY(
double width2 READ get_Width2 WRITE set_Width2)
145 Q_PROPERTY(
double height2 READ get_Height2 WRITE set_Height2)
151 Q_PROPERTY(
double sum READ get_Sum WRITE set_Sum STORED false)
154 Q_PROPERTY(
double average READ get_Average WRITE set_Average STORED false)
157 Q_PROPERTY(
double minimum READ get_Minimum WRITE set_Minimum STORED false)
160 Q_PROPERTY(
double maximum READ get_Maximum WRITE set_Maximum STORED false)
163 Q_PROPERTY(
double nPixels READ get_NPixels WRITE set_NPixels STORED false)
166 Q_PROPERTY(
double background READ get_Background WRITE set_Background STORED false)
169 Q_PROPERTY(
double xGradient READ get_XGradient WRITE set_XGradient STORED false)
172 Q_PROPERTY(
double yGradient READ get_YGradient WRITE set_YGradient STORED false)
176 #endif // QXRDROICOORDINATES_H
static QString outputName(int opt)
QSharedPointer< QxrdROICoordinates > QxrdROICoordinatesPtr
void recalculate(QcepImageDataBasePtr img, QcepMaskDataPtr mask)
#define QCEP_DOUBLE_PROPERTY(propname)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
void setCenterX(double cx)
void setCenterY(double cy)
void visualizeBackground(QcepImageDataBasePtr img, QcepMaskDataPtr mask)
#define QCEP_INTEGER_PROPERTY(propname)
#define QCEP_DOUBLE_RECT_PROPERTY(propname)
QVector< QPointF > markerCoords()
virtual ~QxrdROICoordinates()
#define QCEP_STRING_PROPERTY(propname)
void setCenter(QPointF c)
void recalculatePrivate(QcepImageDataBasePtr img, QcepMaskDataPtr mask, int vis)
QVector< double > values() const
void visualizePeak(QcepImageDataBasePtr img, QcepMaskDataPtr mask)
static int roiTypeCount()
void selectNamedROIType(QString nm)
QxrdROICoordinates(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr exp, int roiType, double left=0, double top=0, double right=0, double bottom=0)
QSharedPointer< QcepImageDataBase > QcepImageDataBasePtr
QSharedPointer< QcepMaskData > QcepMaskDataPtr
void setHeight2(double h)
static QScriptValue toScriptValue(QScriptEngine *engine, const QxrdROICoordinatesPtr &coords)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
static void fromScriptValue(const QScriptValue &obj, QxrdROICoordinatesPtr &coords)