Files
Jungfraujoch/viewer/JFJochViewerSidePanel.h
2025-09-22 19:49:39 +02:00

55 lines
1.6 KiB
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JFJOCH_JFJOCHVIEWERSIDEPANEL_H
#define JFJOCH_JFJOCHVIEWERSIDEPANEL_H
#include <QLabel>
#include <QWidget>
#include <QLineEdit>
#include <QCheckBox>
#include "../reader/JFJochReader.h"
#include "widgets/JFJochSimpleChartView.h"
#include "JFJochViewerSidePanelChart.h"
class JFJochViewerSidePanel : public QWidget {
Q_OBJECT
QLineEdit *res_rings_edit = nullptr;
QCheckBox *autoResRingsCheckBox;
QCheckBox *resRingsCheckBox;
JFJochViewerSidePanelChart *chart = nullptr;
signals:
void showSpots(bool input);
void autoResRings();
void setResRings(QVector<float> v);
void setFeatureColor(QColor input);
void setSpotColor(QColor input);
void showHighestPixels(int32_t v);
void showSaturatedPixels(bool input);
void showPredictions(bool input);
void highlightIceRings(bool input);
void findBeamCenter();
void analyze();
void imageLoaded(std::shared_ptr<const JFJochReaderImage> image);
public:
JFJochViewerSidePanel(QWidget *parent);
public slots:
void loadImage(std::shared_ptr<const JFJochReaderImage> image);
private slots:
void editingFinished();
void enableResRings(bool input);
void enableAutoResRings(bool input);
void spotsToggled(bool input);
void predictionsToggled(bool input);
void highlightIceRingsToggled(bool input);
void saturatedPixelsToggled(bool input);
void setRings(const QVector<float> &v);
};
#endif //JFJOCH_JFJOCHVIEWERSIDEPANEL_H