Kstars

fitsstretchui.h
1/*
2 SPDX-FileCopyrightText: 2023 Hy Murveit <hy@murveit.com>
3 SPDX-License-Identifier: GPL-2.0-or-later
4*/
5
6#pragma once
7
8#include "ui_fitsstretchui.h"
9#include "stretch.h"
10
11#include <QWidget>
12
13class FITSView;
14
15class FITSStretchUI : public QWidget, public Ui::FITSStretchUI
16{
18
19 public:
20 FITSStretchUI(const QSharedPointer<FITSView> &view, QWidget * parent = nullptr);
21
22 void generateHistogram();
23 void setStretchValues(double shadows, double midtones, double highlights);
24
25 private:
26 void setupButtons();
27 void setupHistoPlot();
28 void setupHistoSlider();
29 void setStretchUIValues(const StretchParams1Channel &params);
30 void setupConnections();
31 void onHistoDoubleClick(QMouseEvent *event);
32 void onHistoMouseMove(QMouseEvent *event);
33
34 QCPItemLine * setCursor(int position, const QPen &pen);
35 void setCursors(const StretchParams &params);
36 void removeCursors();
37
39 QCPItemLine *minCursor = nullptr;
40 QCPItemLine *maxCursor = nullptr;
41 QVector<QCPItemLine*> pixelCursors;
42};
43
A line from one point to another.
Q_OBJECTQ_OBJECT
QObject * parent() const const
virtual bool event(QEvent *event) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.