11 #include <QFontMetricsF>
13 #include <QtWidgets/QMessageBox>
23 plot2D(QWidget *parent = 0);
27 void set_data(
double** dataxy,
int count);
29 void set_data(
double** data1xy,
int count1,
30 double** data2xy,
int count2,
31 double** data3xy,
int count3);
32 void set_labels(QString title, QString xbarlabel, QString ybarlabel);
33 QSize sizeHint()
const;
34 QSize minimumSizeHint()
const;
38 void set_size(
int w,
int h);
39 void save_to_png(QString filename);
53 int xsteps, ysteps, showzoombox, xold, yold;
54 double xstep, ystep, xstep0, ystep0;
60 QString title, xbarlabel, ybarlabel;
73 void keypressed(QKeyEvent *event);
78 void clicked(
double x);
80 void paintEvent(QPaintEvent *);
81 void resizeEvent(QResizeEvent *);
82 void mousePressEvent(QMouseEvent *event);
83 void mouseMoveEvent(QMouseEvent *event);
84 void mouseReleaseEvent(QMouseEvent *event);
85 void keyPressEvent(QKeyEvent *event);
void call_zoom_repaint(double xmin, double xmax)
indicate wish to be repainted
void add_data(QPainter *p)
rendering subfunction
double xdatatox(double x)
transform data value to pic-px
ProfilSettings s0
intrinsic settings
QRect dataarea
coordinates of plot inset
void autoset_axis()
autoscale plot to full data view
double ytoydata(int y)
transform pic-px to data value
double * ydata2
linedata blue
void add_axis_labels(QPainter *p)
rendering subfunction
void call_fullview()
indicate wish to be rescaled
QRect zoombox
rect to be drawn green when zoomed
void set_marker(double x)
draws vertical black line at x pos
double yprecission
axis label precission
QColor slopetocolor(double x)
calc fill color of profil data
int count2
data point count
double xtoxdata(int x)
transform pic-px to data value
plotting 2D-Data sets as the height profile of a track or poweranalysis data
QPixmap pm
plot pixel data
float titleheight
text size
ProfilSettings * s
assigned settings to be used
void refresh_pixmap()
repaints the plot's pixmap
double * ydata
profile data
void set_data(double **dataxy, int count)
setting one dataset and repaint plot
void init_s0()
initialize intrinsic settings
double ydatatoy(double y)
transform data value to pic-px
double * ydata1
linedata red
void settings(ProfilSettings *s)
asign settings to plot
void add_grid(QPainter *p)
rendering subfunction