This hold the XY graph and the options graph.
More...
#include <Graph.hpp>
Inherits QWidget.
This hold the XY graph and the options graph.
- Author
- Wertz Gil
Definition at line 48 of file Graph.hpp.
Graph |
( |
QWidget * |
parent = 0 | ) |
|
Graph's constructor.
- Parameters
-
parent | Parent of this QWidget. |
Definition at line 73 of file Graph.cpp.
void enable_zoom_mode |
( |
bool |
zoom_enable | ) |
|
|
privateslot |
Enable or disable zoom mode, when enable, the mouse is used to zoom.
- Parameters
-
Definition at line 299 of file Graph.cpp.
Export graph to an SVG file.
Definition at line 278 of file Graph.cpp.
void moved |
( |
const QPoint & |
point | ) |
|
|
privateslot |
Called when moving while clicking.
- Parameters
-
point | The point pointed by the pen/mouse. |
Definition at line 330 of file Graph.cpp.
Reset the base scale zoom.
Definition at line 419 of file Graph.cpp.
void selected |
( |
const QwtPolygon & |
polygon | ) |
|
|
privateslot |
Called on mous click.
- Parameters
-
polygon | The selected polygon. |
Definition at line 340 of file Graph.cpp.
Set the x,y scale of the graph.
Definition at line 354 of file Graph.cpp.
Erase existing data and put the new one on the current graph.
- Parameters
-
fcts | The new data in a 2d vector. |
fct_label | Label of each data set. |
Definition at line 345 of file Graph.cpp.
void show_graph_option |
( |
bool |
visible | ) |
|
|
privateslot |
show the graph's options
Definition at line 398 of file Graph.cpp.
void show_info |
( |
QString |
text = QString::null | ) |
|
|
private |
Show the string in the m_label_bottom, or recomendation if string is empty.
- Parameters
-
Definition at line 311 of file Graph.cpp.
void show_scale_option |
( |
bool |
visible | ) |
|
|
privateslot |
show the scale's options
Definition at line 403 of file Graph.cpp.
void zoomWheel |
( |
QWheelEvent * |
event | ) |
|
|
privateslot |
Zoom on mouse scroll
- Parameters
-
event | The event emited when scrolling |
Definition at line 425 of file Graph.cpp.
QPointer<QPushButton> m_button_set_scale |
|
private |
QLayout that contant the option menu.
Definition at line 81 of file Graph.hpp.
QPointer<QLabel> m_label_bottom |
|
private |
QLabel that stand on the bottom where we display informations.
Definition at line 78 of file Graph.hpp.
QPointer<QLabel> m_label_max_x |
|
private |
QPointer<QLabel> m_label_max_y |
|
private |
QPointer<QLabel> m_label_min_x |
|
private |
QPointer<QLabel> m_label_min_y |
|
private |
QPointer<QLineEdit> m_line_max_x |
|
private |
maximum x scale
Definition at line 96 of file Graph.hpp.
QPointer<QLineEdit> m_line_max_y |
|
private |
QPointer<QLineEdit> m_line_min_x |
|
private |
minimum x scale
Definition at line 93 of file Graph.hpp.
QPointer<QLineEdit> m_line_min_y |
|
private |
minimum y scale
Definition at line 99 of file Graph.hpp.
QPointer<QwtPlotPanner> m_panner |
|
private |
Panner that contain the canvas.
Definition at line 90 of file Graph.hpp.
QPointer<QwtPlotPicker> m_picker |
|
private |
Represent the cursor when over the canvas.
Definition at line 87 of file Graph.hpp.
QPointer<QwtPlotZoomer> m_zoomer |
|
private |
The documentation for this class was generated from the following files: