This class is used to set visuals options, generate functions and set the curve to draw.
More...
#include <GraphOption.hpp>
Inherits QWidget.
This class is used to set visuals options, generate functions and set the curve to draw.
- Author
- Wertz Gil
Definition at line 43 of file GraphOption.hpp.
| GraphOption |
( |
QwtPlot * |
ptr_plot, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
constructor
- Parameters
-
| ptr_plot | Pointer of the QwtPlot where we draw functions. |
| parent | The QWidget of this QWidget. |
Definition at line 40 of file GraphOption.cpp.
| void add_data |
( |
std::vector< double > & |
fct, |
|
|
QString |
fct_label, |
|
|
QString |
formula = "" |
|
) |
| |
Add a function in the function set with it name and formula.
- Parameters
-
| fct | Data of the function. |
| fct_label | Name of the function. |
| formula | Formula of the function. |
Definition at line 284 of file GraphOption.cpp.
| void checked_changed |
( |
int |
check_state | ) |
|
|
privateslot |
Set the check state to each line selected and redraw curve(s).
- Parameters
-
| check_state | The checked state. |
Definition at line 456 of file GraphOption.cpp.
| void clear_line_table_selection |
( |
| ) |
|
|
privateslot |
Clear line table selection, unselect all line.
Definition at line 556 of file GraphOption.cpp.
| void color_changed |
( |
QColor |
color, |
|
|
int |
raw |
|
) |
| |
|
privateslot |
Set the color to each line selected and redraw curve(s).
- Parameters
-
| color | The selected color. |
| raw | The row where the widget is stored. |
Definition at line 480 of file GraphOption.cpp.
Draw curves according to the data and options.
Definition at line 150 of file GraphOption.cpp.
Draw curves according to the data and options, and set axis auto scale.
Definition at line 197 of file GraphOption.cpp.
| void generate_function |
( |
QString |
name, |
|
|
QString |
fct |
|
) |
| |
|
private |
| void generate_function |
( |
| ) |
|
|
privateslot |
Function that user inserted QString to make a function.
Definition at line 308 of file GraphOption.cpp.
| void line_type_changed |
( |
int |
current_index | ) |
|
|
privateslot |
Set the curve style to each line selected and redraw curve(s).
- Parameters
-
| current_index | Index of the curve style. |
Definition at line 519 of file GraphOption.cpp.
Show popup to choose whitch function to save.
Definition at line 564 of file GraphOption.cpp.
| void save_functions_to_file |
( |
| ) |
|
|
privateslot |
| void save_functions_to_file_no_buffering |
( |
| ) |
|
|
privateslot |
Save choosed function into txt file without temporary QString.
Definition at line 682 of file GraphOption.cpp.
| void select_all_line_table |
( |
| ) |
|
|
privateslot |
Set the data to show in the option tab.
- Parameters
-
| fcts | Data of functions. |
| fcts_label | Name of functions. |
Definition at line 212 of file GraphOption.cpp.
| QPointer<QPushButton> m_button_draw |
|
private |
| QPointer<QPushButton> m_button_generate_function |
|
private |
| QPointer<QTableWidget> m_choose_table |
|
private |
| QPointer<QTableWidget> m_data_table |
|
private |
| QPointer<Graph> m_graph_parent |
|
private |
| QPointer<QLineEdit> m_line_function |
|
private |
| QPointer<QLineEdit> m_line_function_name |
|
private |
| QPointer<QTableWidget> m_line_table |
|
private |
| QPointer<QwtPlot> m_ptr_plot |
|
private |
QwtPlot pointer, refer to the plot where we draw cures.
Definition at line 78 of file GraphOption.hpp.
The documentation for this class was generated from the following files: