mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
74 lines
1.5 KiB
C++
Executable File
74 lines
1.5 KiB
C++
Executable File
#pragma once
|
|
|
|
#include "ui_form_tab_plot.h"
|
|
|
|
class qDrawPlot;
|
|
|
|
class multiSlsDetector;
|
|
|
|
class QStackedLayout;
|
|
class QSpinBox;
|
|
class QDoubleSpinBox;
|
|
class QComboBox;
|
|
class QButtonGroup;
|
|
class QPalette;
|
|
|
|
class qTabPlot:public QWidget, private Ui::TabPlotObject{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
qTabPlot(QWidget *parent,multiSlsDetector* detector, qDrawPlot* plot);
|
|
~qTabPlot();
|
|
void SetScanArgument();
|
|
void Refresh();
|
|
|
|
private slots:
|
|
void SetPlot();
|
|
void Set1DPlotOptionsRight();
|
|
void Set1DPlotOptionsLeft();
|
|
void Set2DPlotOptionsRight();
|
|
void Set2DPlotOptionsLeft();
|
|
void EnablePersistency(bool enable);
|
|
void SetBinary();
|
|
void SetGapPixels(bool enable);
|
|
void SetTitles();
|
|
void SetXRange();
|
|
void SetYRange();
|
|
void CheckAspectRatio();
|
|
void SetZRange();
|
|
void SetStreamingFrequency();
|
|
|
|
signals:
|
|
void DisableZoomSignal(bool);
|
|
void ResetZMinZMaxSignal(bool,bool,double,double);
|
|
|
|
private:
|
|
void SetupWidgetWindow();
|
|
void Initialization();
|
|
void Select1DPlot(bool enable);
|
|
void GetGapPixels();
|
|
void GetStreamingFrequency();
|
|
void SetXYRange();
|
|
void MaintainAspectRatio(int dimension);
|
|
|
|
multiSlsDetector *myDet;
|
|
qDrawPlot *myPlot;
|
|
bool isOneD;
|
|
|
|
QButtonGroup *btnGroupPlotType;
|
|
QStackedLayout *stackedLayout;
|
|
QSpinBox *spinNthFrame;
|
|
QDoubleSpinBox *spinTimeGap;
|
|
QComboBox *comboTimeGapUnit;
|
|
|
|
/** default plot and axis titles */
|
|
static QString defaultPlotTitle;
|
|
static QString defaultHistXAxisTitle;
|
|
static QString defaultHistYAxisTitle;
|
|
static QString defaultImageXAxisTitle;
|
|
static QString defaultImageYAxisTitle;
|
|
static QString defaultImageZAxisTitle;
|
|
};
|
|
|
|
|