32 lines
867 B
C++
32 lines
867 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_JFJOCHVIEWERIMAGEROISTATISTICS_BOX_H
|
|
#define JFJOCH_JFJOCHVIEWERIMAGEROISTATISTICS_BOX_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "widgets/NumberLineEdit.h"
|
|
|
|
class JFJochViewerImageROIStatistics_Box : public QWidget {
|
|
Q_OBJECT
|
|
|
|
NumberLineEdit *x0 = nullptr;
|
|
NumberLineEdit *x1 = nullptr;
|
|
NumberLineEdit *y0 = nullptr;
|
|
NumberLineEdit *y1 = nullptr;
|
|
|
|
public:
|
|
JFJochViewerImageROIStatistics_Box(QWidget *parent = nullptr);
|
|
QRect GetROIBox();
|
|
signals:
|
|
void Updated(); // Signal emitted when Box ROI is set
|
|
|
|
public slots:
|
|
void ROIBoxConfigured(QRect box); // Signal emitted when Box ROI is set
|
|
void Disable();
|
|
void Enable();
|
|
};
|
|
|
|
|
|
#endif //JFJOCH_JFJOCHVIEWERIMAGEROISTATISTICS_BOX_H
|