COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
This class is used to set visuals options, generate functions and set the curve to draw. More...
#include <GraphOption.hpp>
Inherits QWidget.
Public Slots | |
void | save_functions () |
Show popup to choose whitch function to save. More... | |
Public Member Functions | |
GraphOption (QwtPlot *ptr_plot, QWidget *parent=0) | |
void | set_data (NPlotXY::PlotDataPtr &fcts, std::vector< QString > &fcts_label) |
void | add_data (std::vector< double > &fct, QString fct_label, QString formula="") |
Private Slots | |
void | generate_function () |
Function that user inserted QString to make a function. More... | |
void | add_line () |
Add a line to draw. More... | |
void | remove_line () |
Remove selected line(s). More... | |
void | checked_changed (int check_state) |
void | color_changed (QColor color, int raw) |
void | line_type_changed (int current_index) |
void | draw_and_resize () |
Draw curves according to the data and options, and set axis auto scale. More... | |
void | draw_action () |
Draw curves according to the data and options. More... | |
void | clear_line_table_selection () |
Clear line table selection, unselect all line. More... | |
void | select_all_line_table () |
Select all raw of line table. More... | |
void | save_functions_to_file () |
Save choosed function into txt file. More... | |
void | save_functions_to_file_no_buffering () |
Save choosed function into txt file without temporary QString. More... | |
Private Member Functions | |
void | generate_function (QString name, QString fct) |
Same that the slot. More... | |
Private Attributes | |
QPointer< Graph > | m_graph_parent |
The Parent Graph. More... | |
QPointer< QwtPlot > | m_ptr_plot |
QwtPlot pointer, refer to the plot where we draw cures. More... | |
NPlotXY::PlotDataPtr | m_fcts |
The curves data. More... | |
QPointer< QLineEdit > | m_line_function |
User function's formula line input. More... | |
QPointer< QLineEdit > | m_line_function_name |
User function's name line input. More... | |
QPointer< QTableWidget > | m_line_table |
Line table. More... | |
QPointer< QTableWidget > | m_data_table |
Data table. More... | |
QPointer< QTableWidget > | m_choose_table |
choose fonction table More... | |
QPointer< QPushButton > | m_button_generate_function |
Generate function button. More... | |
QPointer< QPushButton > | m_button_draw |
Draw line button. More... | |
bool | m_can_draw |
Define if we can or not draw curves. More... | |
This class is used to set visuals options, generate functions and set the curve to draw.
Definition at line 43 of file GraphOption.hpp.
GraphOption | ( | QwtPlot * | ptr_plot, |
QWidget * | parent = 0 |
||
) |
constructor
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.
fct | Data of the function. |
fct_label | Name of the function. |
formula | Formula of the function. |
Definition at line 284 of file GraphOption.cpp.
|
privateslot |
Add a line to draw.
Definition at line 391 of file GraphOption.cpp.
|
privateslot |
Set the check state to each line selected and redraw curve(s).
check_state | The checked state. |
Definition at line 456 of file GraphOption.cpp.
|
privateslot |
Clear line table selection, unselect all line.
Definition at line 556 of file GraphOption.cpp.
|
privateslot |
Set the color to each line selected and redraw curve(s).
color | The selected color. |
raw | The row where the widget is stored. |
Definition at line 480 of file GraphOption.cpp.
|
privateslot |
Draw curves according to the data and options.
Definition at line 150 of file GraphOption.cpp.
|
privateslot |
Draw curves according to the data and options, and set axis auto scale.
Definition at line 197 of file GraphOption.cpp.
|
private |
Same that the slot.
Definition at line 312 of file GraphOption.cpp.
|
privateslot |
Function that user inserted QString to make a function.
Definition at line 308 of file GraphOption.cpp.
|
privateslot |
Set the curve style to each line selected and redraw curve(s).
current_index | Index of the curve style. |
Definition at line 519 of file GraphOption.cpp.
|
privateslot |
Remove selected line(s).
Definition at line 443 of file GraphOption.cpp.
|
slot |
Show popup to choose whitch function to save.
Definition at line 564 of file GraphOption.cpp.
|
privateslot |
Save choosed function into txt file.
Definition at line 620 of file GraphOption.cpp.
|
privateslot |
Save choosed function into txt file without temporary QString.
Definition at line 682 of file GraphOption.cpp.
|
privateslot |
Select all raw of line table.
Definition at line 560 of file GraphOption.cpp.
void set_data | ( | NPlotXY::PlotDataPtr & | fcts, |
std::vector< QString > & | fcts_label | ||
) |
Set the data to show in the option tab.
fcts | Data of functions. |
fcts_label | Name of functions. |
Definition at line 212 of file GraphOption.cpp.
|
private |
Draw line button.
Definition at line 102 of file GraphOption.hpp.
|
private |
Generate function button.
Definition at line 99 of file GraphOption.hpp.
|
private |
Define if we can or not draw curves.
Definition at line 105 of file GraphOption.hpp.
|
private |
choose fonction table
Definition at line 96 of file GraphOption.hpp.
|
private |
Data table.
Definition at line 93 of file GraphOption.hpp.
|
private |
The curves data.
Definition at line 81 of file GraphOption.hpp.
|
private |
The Parent Graph.
Definition at line 75 of file GraphOption.hpp.
|
private |
User function's formula line input.
Definition at line 84 of file GraphOption.hpp.
|
private |
User function's name line input.
Definition at line 87 of file GraphOption.hpp.
|
private |
Line table.
Definition at line 90 of file GraphOption.hpp.
|
private |
QwtPlot pointer, refer to the plot where we draw cures.
Definition at line 78 of file GraphOption.hpp.
Send comments to: COOLFluiD Web Admin |