-
Notifications
You must be signed in to change notification settings - Fork 0
/
PositionPlotWidget.h
57 lines (50 loc) · 1.37 KB
/
PositionPlotWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* PositionPlotWidget.h
*
* Created on: Apr 25, 2010
* Author: Vincent
*
* Define a composite for plot a single position of the blot;
* the real drawing will be done in DensityPlotWidget
*
*/
#ifndef POSITIONPLOTWIDGET_H_
#define POSITIONPLOTWIDGET_H_
#include "ui_PositionPlotWidget.h"
class PositionPlotWidget: public QWidget {
Q_OBJECT
public:
PositionPlotWidget(QWidget *parent = 0);
virtual ~PositionPlotWidget();
double getMads() const;
double getMad() const;
double getMedian() const;
int getRowCount() const;
int getColumnCount() const;
QList<double> getData() const;
QStringList getLabels() const;
public slots:
void setRowCount(int rows);
void setColumnCount(int columns);
void setData(const QStringList &labels, const QList<double> &data);
void setPlotName(const QString &name);
void setMads(double madMultiplier);
void setRange(int low, int high);
void on_madsSpin_valueChanged(double value);
void updatePlot();
void setPlotHeight(int height);
void setPlotWidth(int width);
void setAxisTicks(int ticks);
void updateSelection();
signals:
void madsChanged(double mads);
private:
int rowCount;
int colCount;
QStringList labels;
QList<double> data;
QString name;
Ui::PositionPlotWidget ui;
double mads, posMad, posMedian;
};
#endif /* POSITIONPLOTWIDGET_H_ */