From b191076510b0a95123d258ba6a116852aa9bdc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20K=C3=B6hli?= Date: Sun, 22 May 2022 20:48:39 +0200 Subject: [PATCH] Initial Upload --- about.png | Bin 0 -> 13432 bytes customSplashScreen.cpp | 33 ++++++++++++++ customSplashScreen.h | 22 +++++++++ dialogshowpic.cpp | 99 +++++++++++++++++++++++++++++++++++++++++ dialogshowpic.h | 32 +++++++++++++ 5 files changed, 186 insertions(+) create mode 100644 about.png create mode 100644 customSplashScreen.cpp create mode 100644 customSplashScreen.h create mode 100644 dialogshowpic.cpp create mode 100644 dialogshowpic.h diff --git a/about.png b/about.png new file mode 100644 index 0000000000000000000000000000000000000000..07cfce84b3e788a024ecf2c43e96144b26014b27 GIT binary patch literal 13432 zcmV-;G>6NHP)f6Xi@@54ZTQ_E-Enz5K6$1 z03tR-RB%L5k){YTDBysjLy@r}iiH7DvFijGMAUI`6dRUFWUU$Bym{}eS9UO(Z2>7`&z9wUXbV-Il z#&6`Y8GKGQ04S2&F6MJnWNa;Ck|;8QE#r9r;7G||@X{|>%+C|c55>;RS}qbKr-&IQ zTvLXPlM{>K&(BTgi^a?^4mXV>;xX8n8Ce|RasXz}{8imI52H3ZN4bf ze_i~WlJ|C&UW9+{8AKoW!}eExnGFE2re(F+`iE_46#!l90Z_aBhs|Iw0E)7{bq;-T z9=d#9QpDmcXDh4R++0fmpKB>E=%LdZt9g z$j;($`3&Zthxi`{{&gM}5&R^+h%b~yM9Zd3AWW9ETgVfL1(`yIK=_}U_z%PWq}jQa ziQ4!P(3V&Nr6C$XejWfQDiI(Fdt@un?|lo#M+5oIi_w{wo%_#%{(V=tO#a9gB!7-$ zM?^BX5>d|Vn*3S!?g~$*UQipUP zL&zMmg;!4Do9IA%up=Rh?=qPj=x&RGBx1dpI68aT- z2O}^EromdU5o`ssU{5#*j)WJ%$?!5bA1;Eoz?EiTr=n?cd`V|I)p<|3O zju?MT93~aB0<#&j8`F+Cg&D?-VW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daJtG&)*(y^Mb-L+rc9Xvv5K)+VR{71J~8l(7B!vG0A7VIFzp8EOPN1DD3(%qH|Jcybu&c1JFhEvG%4&rZbk5YNQ|XO2-hiF6 zk?kBPK`2ACiu%~3BFO$WT{7AXQXUL@O&R*UX+h8@&|_IatC_ z(C})ZDBXGhL!Lp$V^BsY>OG!&=z3u)00DFeTdJz6VtxDeO;4d6)G5cLz$-^!U|=n` z*4EappE+|TEK3+u014eCM%vJIe9|KNS5wESz+Z!J zgUP)5wQJWVh7KJ{*>u6#P?wxh)u&G%CvcBI`}gmsb?er}na%fex4ECWiCAGHU)Uc< z$p8*g+X2xHL!SUth#)wufpu9NTmik-yLa!dD0T{U>ET_GNQ6)s#pcb;&BTTlZP>6O zwr?M7uIlRg`udHnt*sP|MkzNpm-6!RsHmvOF%6(E05G@$&kiPa^{Hklgs#4setPen(this->color); + painter->drawText(this->rect, this->alignement, this->message); +} + +void customSplashScreen::showStatusMessage(const QString &message, const QColor &color) +{ + this->message = message; + this->color = color; + this->showMessage(this->message, this->alignement, this->color); +} + +void customSplashScreen::setMessageRect(QRect rect, int alignement) +{ + this->rect = rect; + this->alignement = alignement; +} + + + diff --git a/customSplashScreen.h b/customSplashScreen.h new file mode 100644 index 0000000..8381fba --- /dev/null +++ b/customSplashScreen.h @@ -0,0 +1,22 @@ +#ifndef CUSTOMSPLASHSCREEN_H +#define CUSTOMSPLASHSCREEN_H + +#include +#include + +class customSplashScreen : public QSplashScreen +{ +public: + customSplashScreen(const QPixmap& pixmap); + ~customSplashScreen(); + virtual void drawContents(QPainter *painter); + void showStatusMessage(const QString &message, const QColor &color = Qt::black); + void setMessageRect(QRect rect, int alignment = Qt::AlignLeft); +private: + QString message; + int alignement; + QColor color; + QRect rect; +}; + +#endif // CUSTOMSPLASHSCREEN_H diff --git a/dialogshowpic.cpp b/dialogshowpic.cpp new file mode 100644 index 0000000..dadb127 --- /dev/null +++ b/dialogshowpic.cpp @@ -0,0 +1,99 @@ +#include "dialogshowpic.h" +#include "ui_dialogshowpic.h" + +#include "qcustomplot.h" +#include "mainwindow.h" +#include "Toolkit.h" + +DialogShowPic::DialogShowPic(QWidget *parent) : + QDialog(parent), + ui(new Ui::DialogShowPic) +{ + ui->setupUi(this); + + setupShowGraph(ui->widget); +} + +int number=1; + +void DialogShowPic::setupShowGraph(QCustomPlot *customPlot) +{ + TMatrixF matrix = MainWindow::getTMatrix(number); + // TMatrixF matrix(1,1); + + QCPColorMap *colorMap = new QCPColorMap(customPlot->xAxis,customPlot->yAxis); + customPlot->axisRect()->setupFullAxesBox(true); + customPlot->xAxis->setLabel("x [pixel]"); + customPlot->yAxis->setLabel("y [pixel]"); + + //customPlot->addPlottable(colorMap); + colorMap->data()->setSize(matrix.GetColUpb(), matrix.GetColUpb()); + colorMap->data()->setRange(QCPRange(0, matrix.GetColUpb()), QCPRange(0, matrix.GetColUpb())); + + for (int x=0; xdata()->setCell(x, y, matrix(x,y)); + colorMap->setGradient(QCPColorGradient::gpJet); + colorMap->rescaleDataRange(true); + customPlot->rescaleAxes(); + colorMap->setDataRange(QCPRange(0,256)); + customPlot->replot(); +} + + +DialogShowPic::~DialogShowPic() +{ + delete ui; +} + +void DialogShowPic::replotGraph() +{ + TMatrixF matrix = MainWindow::getTMatrix(number); + + ui->widget->clearPlottables(); + + ui->widget->xAxis->setRange(QCPRange(0, matrix.GetColUpb())); + ui->widget->yAxis->setRange(QCPRange(0, matrix.GetColUpb())); + QCPColorMap *colorMap = new QCPColorMap( ui->widget->xAxis, ui->widget->yAxis); + + Int_t a = matrix.GetColUpb(); + Int_t b = matrix.GetNcols(); + //cout<widget->addPlottable(colorMap); + + colorMap->data()->setSize(matrix.GetNcols(), matrix.GetNcols()); + colorMap->data()->setRange(QCPRange(0, matrix.GetColUpb()), QCPRange(0, matrix.GetColUpb())); + + for (int x=0; xdata()->setCell(x, y, matrix(x,y)); + colorMap->setGradient(QCPColorGradient::gpCold); + colorMap->rescaleDataRange(true); + ui->widget->rescaleAxes(); + colorMap->setDataRange(QCPRange(0,256)); + ui->widget->replot(); +} + +void DialogShowPic::on_pushButtonPlus_clicked() +{ + number++; + + int newInt = number+1; + string numberString = castIntToString(newInt); + ui->labelNo->setText(QString::fromStdString(numberString)); + replotGraph(); +} + +void DialogShowPic::on_pushButtonMinus_clicked() +{ + if (number>0) + { + number--; + int newInt = number+1; + string numberString = castIntToString(newInt); + ui->labelNo->setText(QString::fromStdString(numberString)); + replotGraph(); + } +} + + diff --git a/dialogshowpic.h b/dialogshowpic.h new file mode 100644 index 0000000..0d3f166 --- /dev/null +++ b/dialogshowpic.h @@ -0,0 +1,32 @@ +#ifndef DIALOGSHOWPIC_H +#define DIALOGSHOWPIC_H + +#include +#include "qcustomplot.h" +//#include "mainwindow.h" + +namespace Ui { +class DialogShowPic; +} + +class DialogShowPic : public QDialog +{ + Q_OBJECT + +public: + explicit DialogShowPic(QWidget *parent = 0); + ~DialogShowPic(); + + void setupShowGraph(QCustomPlot *customPlot); + void replotGraph(); + +private slots: + void on_pushButtonPlus_clicked(); + + void on_pushButtonMinus_clicked(); + +private: + Ui::DialogShowPic *ui; +}; + +#endif // DIALOGSHOWPIC_H