All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 9m17s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 10m9s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m29s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 8m52s
Build Packages / Generate python client (push) Successful in 25s
Build Packages / Build documentation (push) Successful in 49s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 8m47s
Build Packages / build:rpm (rocky8) (push) Successful in 8m49s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m4s
Build Packages / build:rpm (rocky9) (push) Successful in 8m52s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 8m11s
Build Packages / Unit tests (push) Successful in 1h14m42s
This is an UNSTABLE release. jfjoch_writer: Fix and improve the way grid scan geometry is saved (non-NXmx extension makes it way easier) jfjoch_viewer: Display grid scan results in 2D (work in progress) jfjoch_viewer: Improve auto-scaling on start of images (work in progress) jfjoch_viewer: Add B-factor and resolution estimate to the dataset info plots Reviewed-on: #9 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
40 lines
999 B
C++
40 lines
999 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_JFJOCHAZINTIMAGEVIEW_H
|
|
#define JFJOCH_JFJOCHAZINTIMAGEVIEW_H
|
|
|
|
|
|
#include <QWidget>
|
|
#include <QImage>
|
|
#include <QLabel>
|
|
|
|
#include <vector>
|
|
|
|
#include "JFJochImage.h"
|
|
#include "../../reader/JFJochReaderImage.h"
|
|
|
|
class JFJochAzIntImage : public JFJochImage {
|
|
Q_OBJECT
|
|
|
|
bool auto_range = true;
|
|
float range_min = 0.0f;
|
|
float range_max = 1.0f;
|
|
std::shared_ptr<const JFJochReaderImage> image;
|
|
|
|
void mouseHover(QMouseEvent* event) override;
|
|
void Clear();
|
|
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
|
signals:
|
|
void zoomOnBin(QPointF pos);
|
|
public slots:
|
|
void imageLoaded(std::shared_ptr<const JFJochReaderImage> image);
|
|
public:
|
|
explicit JFJochAzIntImage(QWidget *parent = nullptr);
|
|
|
|
void SetRangeAuto();
|
|
void SetRange(float min_val, float max_val);
|
|
};
|
|
|
|
|
|
#endif //JFJOCH_JFJOCHAZINTIMAGEVIEW_H
|