![]() |
COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
This is a QwtPlot with easiest way to acces the options and add curves. More...
#include <BodePlot.hpp>
Inherits QwtPlot.
Public Member Functions | |
| BodePlot (QWidget *parent) | |
| BodePlot (QWidget *parent, bool test) | |
| ~BodePlot () | |
| Destructor. More... | |
| void | add_xy_data_on_graph (std::vector< double > &xs, std::vector< double > &ys) |
| void | set_xy_data_on_graph (std::vector< double > &xs, std::vector< double > &ys) |
| void | set_x_label (QString new_label_x) |
| void | set_y_label (QString new_label_y) |
| void | show_xy_label_on_graph (bool show) |
| void | set_background_color (QColor color) |
| void | set_fct_color (QColor color) |
| void | set_fct_name (QString new_fct_name) |
| void | show_fct_name_on_graph (bool show) |
| void | set_graph_title (QString new_title) |
| void | show_title_on_graph (bool show) |
| void | show_legend_on_graph (bool show) |
| void | set_grid_color (QColor color) |
| void | logaritmic_scale_on_graph (bool logaritmic) |
Private Member Functions | |
| void | draw_graph () |
| draw the graph. More... | |
Private Attributes | |
| QwtPlotCurve * | m_curve |
| The curve to draw. More... | |
| std::vector< double > | m_xs |
| Vector of x positions. More... | |
| std::vector< double > | m_ys |
| Vector of y positions. More... | |
| QString | m_label_x |
| X axe label. More... | |
| QString | m_label_y |
| Y axe label. More... | |
| bool | m_show_xy_label |
| Show axes label. More... | |
| QColor | m_background_color |
| Background color. More... | |
| QColor | m_fct_color |
| Function color. More... | |
| QString | m_fct_name |
| Function name. More... | |
| bool | m_show_fct_name |
| Show Function name. More... | |
| QString | m_title |
| title of the graph More... | |
| bool | m_show_title |
| Show title. More... | |
| bool | m_show_legend |
| Show legend. More... | |
| QColor | m_grid_color |
| Grid color. More... | |
| bool | m_logaritmic_scale |
| Set logarit;ic or linear grid. More... | |
| QwtPlotGrid * | m_grid |
| grid of the graph More... | |
| bool | m_antialiasing |
| Set the antialiasing. More... | |
| QwtLegend * | m_legend |
| Legend. More... | |
This is a QwtPlot with easiest way to acces the options and add curves.
Definition at line 36 of file BodePlot.hpp.
| BodePlot | ( | QWidget * | parent | ) |
Constructor minimum.
| parent | Parent of this wtPlot. |
Definition at line 29 of file BodePlot.cpp.
| BodePlot | ( | QWidget * | parent, |
| bool | test | ||
| ) |
Constructor test.
| parent | Parent of this wtPlot. |
| test | Variable test. |
Definition at line 68 of file BodePlot.cpp.
| ~BodePlot | ( | ) |
Destructor.
Definition at line 62 of file BodePlot.cpp.
| void add_xy_data_on_graph | ( | std::vector< double > & | xs, |
| std::vector< double > & | ys | ||
| ) |
Add data to the current graph.
| xs | The new xs to add to the graph. |
| xy | The new xy to add to the graph (corresponding with the xs). |
Definition at line 134 of file BodePlot.cpp.
|
private |
draw the graph.
Definition at line 92 of file BodePlot.cpp.
| void logaritmic_scale_on_graph | ( | bool | logaritmic | ) |
Set the logarithmic graph type, if false then linear type.
| logaritmic | Set graph type to logarithmic or not. |
Definition at line 249 of file BodePlot.cpp.
| void set_background_color | ( | QColor | color | ) |
Set the background color.
| color | The new background color. |
Definition at line 186 of file BodePlot.cpp.
| void set_fct_color | ( | QColor | color | ) |
Set the Function color.
| color | The new Function color. |
Definition at line 192 of file BodePlot.cpp.
| void set_fct_name | ( | QString | new_fct_name | ) |
Set the Function name.
| new_fct_name | The new Function name. |
Definition at line 198 of file BodePlot.cpp.
| void set_graph_title | ( | QString | new_title | ) |
| void set_grid_color | ( | QColor | color | ) |
Set the grid color.
| color | The new grid color. |
Definition at line 242 of file BodePlot.cpp.
| void set_x_label | ( | QString | new_label_x | ) |
Set the x axe label.
| new_label_x | The new x axe's label. |
Definition at line 162 of file BodePlot.cpp.
| void set_xy_data_on_graph | ( | std::vector< double > & | xs, |
| std::vector< double > & | ys | ||
| ) |
Erase existing data and put the new one on the current graph.
| xs | The new xs to set. |
| xy | The new xy to set (corresponding with the xs). |
Definition at line 150 of file BodePlot.cpp.
| void set_y_label | ( | QString | new_label_y | ) |
Set the y axe label.
| new_label_y | The new y axe's label. |
Definition at line 168 of file BodePlot.cpp.
| void show_fct_name_on_graph | ( | bool | show | ) |
Set to show or not the Function name.
| show | Show the the Function name. |
Definition at line 205 of file BodePlot.cpp.
| void show_legend_on_graph | ( | bool | show | ) |
Set to show or not the legend.
| show | Show the the legend. |
Definition at line 227 of file BodePlot.cpp.
| void show_title_on_graph | ( | bool | show | ) |
Set to show or not the title.
| show | Show the the title. |
Definition at line 217 of file BodePlot.cpp.
| void show_xy_label_on_graph | ( | bool | show | ) |
Set to show or not the axes labels.
| show | Show the axes labels. |
Definition at line 174 of file BodePlot.cpp.
|
private |
Set the antialiasing.
Definition at line 169 of file BodePlot.hpp.
|
private |
Background color.
Definition at line 139 of file BodePlot.hpp.
|
private |
The curve to draw.
Definition at line 121 of file BodePlot.hpp.
|
private |
Function color.
Definition at line 142 of file BodePlot.hpp.
|
private |
Function name.
Definition at line 145 of file BodePlot.hpp.
|
private |
grid of the graph
Definition at line 166 of file BodePlot.hpp.
|
private |
Grid color.
Definition at line 160 of file BodePlot.hpp.
|
private |
X axe label.
Definition at line 130 of file BodePlot.hpp.
|
private |
Y axe label.
Definition at line 133 of file BodePlot.hpp.
|
private |
Legend.
Definition at line 172 of file BodePlot.hpp.
|
private |
Set logarit;ic or linear grid.
Definition at line 163 of file BodePlot.hpp.
|
private |
Show Function name.
Definition at line 148 of file BodePlot.hpp.
|
private |
Show legend.
Definition at line 157 of file BodePlot.hpp.
|
private |
Show title.
Definition at line 154 of file BodePlot.hpp.
|
private |
Show axes label.
Definition at line 136 of file BodePlot.hpp.
|
private |
title of the graph
Definition at line 151 of file BodePlot.hpp.
|
private |
Vector of x positions.
Definition at line 124 of file BodePlot.hpp.
|
private |
Vector of y positions.
Definition at line 127 of file BodePlot.hpp.
1.8.9.1
|
Send comments to: COOLFluiD Web Admin |