COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BodePlot Class Reference

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...
 

Detailed Description

This is a QwtPlot with easiest way to acces the options and add curves.

Author
Wertz Gil

Definition at line 36 of file BodePlot.hpp.

Constructor & Destructor Documentation

BodePlot ( QWidget *  parent)

Constructor minimum.

Parameters
parentParent of this wtPlot.

Definition at line 29 of file BodePlot.cpp.

BodePlot ( QWidget *  parent,
bool  test 
)

Constructor test.

Parameters
parentParent of this wtPlot.
testVariable test.

Definition at line 68 of file BodePlot.cpp.

~BodePlot ( )

Destructor.

Definition at line 62 of file BodePlot.cpp.

Member Function Documentation

void add_xy_data_on_graph ( std::vector< double > &  xs,
std::vector< double > &  ys 
)

Add data to the current graph.

Parameters
xsThe new xs to add to the graph.
xyThe new xy to add to the graph (corresponding with the xs).

Definition at line 134 of file BodePlot.cpp.

void draw_graph ( )
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.

Parameters
logaritmicSet graph type to logarithmic or not.

Definition at line 249 of file BodePlot.cpp.

void set_background_color ( QColor  color)

Set the background color.

Parameters
colorThe new background color.

Definition at line 186 of file BodePlot.cpp.

void set_fct_color ( QColor  color)

Set the Function color.

Parameters
colorThe new Function color.

Definition at line 192 of file BodePlot.cpp.

void set_fct_name ( QString  new_fct_name)

Set the Function name.

Parameters
new_fct_nameThe new Function name.

Definition at line 198 of file BodePlot.cpp.

void set_graph_title ( QString  new_title)

Set the title.

Parameters
new_titleThe new title.

Definition at line 211 of file BodePlot.cpp.

void set_grid_color ( QColor  color)

Set the grid color.

Parameters
colorThe new grid color.

Definition at line 242 of file BodePlot.cpp.

void set_x_label ( QString  new_label_x)

Set the x axe label.

Parameters
new_label_xThe 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.

Parameters
xsThe new xs to set.
xyThe 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.

Parameters
new_label_yThe 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.

Parameters
showShow 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.

Parameters
showShow 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.

Parameters
showShow 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.

Parameters
showShow the axes labels.

Definition at line 174 of file BodePlot.cpp.

Member Data Documentation

bool m_antialiasing
private

Set the antialiasing.

Definition at line 169 of file BodePlot.hpp.

QColor m_background_color
private

Background color.

Definition at line 139 of file BodePlot.hpp.

QwtPlotCurve* m_curve
private

The curve to draw.

Definition at line 121 of file BodePlot.hpp.

QColor m_fct_color
private

Function color.

Definition at line 142 of file BodePlot.hpp.

QString m_fct_name
private

Function name.

Definition at line 145 of file BodePlot.hpp.

QwtPlotGrid* m_grid
private

grid of the graph

Definition at line 166 of file BodePlot.hpp.

QColor m_grid_color
private

Grid color.

Definition at line 160 of file BodePlot.hpp.

QString m_label_x
private

X axe label.

Definition at line 130 of file BodePlot.hpp.

QString m_label_y
private

Y axe label.

Definition at line 133 of file BodePlot.hpp.

QwtLegend* m_legend
private

Legend.

Definition at line 172 of file BodePlot.hpp.

bool m_logaritmic_scale
private

Set logarit;ic or linear grid.

Definition at line 163 of file BodePlot.hpp.

bool m_show_fct_name
private

Show Function name.

Definition at line 148 of file BodePlot.hpp.

bool m_show_legend
private

Show legend.

Definition at line 157 of file BodePlot.hpp.

bool m_show_title
private

Show title.

Definition at line 154 of file BodePlot.hpp.

bool m_show_xy_label
private

Show axes label.

Definition at line 136 of file BodePlot.hpp.

QString m_title
private

title of the graph

Definition at line 151 of file BodePlot.hpp.

std::vector<double> m_xs
private

Vector of x positions.

Definition at line 124 of file BodePlot.hpp.

std::vector<double> m_ys
private

Vector of y positions.

Definition at line 127 of file BodePlot.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin