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

This hold the XY graph and the options graph. More...

#include <Graph.hpp>

Inherits QWidget.

Public Slots

void reset_base_zoom ()
 Reset the base scale zoom. More...
 

Public Member Functions

 Graph (QWidget *parent=0)
 
 ~Graph ()
 Graph's destructor. More...
 
void set_xy_data (NPlotXY::PlotDataPtr fcts, std::vector< QString > &fct_label)
 

Private Slots

void moved (const QPoint &point)
 
void selected (const QwtPolygon &polygon)
 
void export_svg ()
 Export graph to an SVG file. More...
 
void enable_zoom_mode (bool zoom_enable)
 
void show_graph_option (bool)
 show the graph's options More...
 
void show_scale_option (bool)
 show the scale's options More...
 
void set_scale ()
 Set the x,y scale of the graph. More...
 
void zoomWheel (QWheelEvent *event)
 

Private Member Functions

void show_info (QString text=QString::null)
 

Private Attributes

QPointer< BodePlotm_plot
 The BodePlot who is shown in the graph x,y axes area. More...
 
QPointer< QLabel > m_label_bottom
 QLabel that stand on the bottom where we display informations. More...
 
QPointer< GraphOptionm_graph_option
 QLayout that contant the option menu. More...
 
QPointer< QwtPlotZoomer > m_zoomer
 Zoomer ( rectangle zoom ) More...
 
QPointer< QwtPlotPicker > m_picker
 Represent the cursor when over the canvas. More...
 
QPointer< QwtPlotPanner > m_panner
 Panner that contain the canvas. More...
 
QPointer< QLineEdit > m_line_min_x
 minimum x scale More...
 
QPointer< QLineEdit > m_line_max_x
 maximum x scale More...
 
QPointer< QLineEdit > m_line_min_y
 minimum y scale More...
 
QPointer< QLineEdit > m_line_max_y
 maximum y scale More...
 
QPointer< QLabel > m_label_min_x
 Line Edit labels. More...
 
QPointer< QLabel > m_label_max_x
 
QPointer< QLabel > m_label_min_y
 
QPointer< QLabel > m_label_max_y
 
QPointer< QPushButton > m_button_set_scale
 Set scale button. More...
 

Detailed Description

This hold the XY graph and the options graph.

Author
Wertz Gil

Definition at line 48 of file Graph.hpp.

Constructor & Destructor Documentation

Graph ( QWidget *  parent = 0)

Graph's constructor.

Parameters
parentParent of this QWidget.

Definition at line 73 of file Graph.cpp.

~Graph ( )

Graph's destructor.

Definition at line 245 of file Graph.cpp.

Member Function Documentation

void enable_zoom_mode ( bool  zoom_enable)
privateslot

Enable or disable zoom mode, when enable, the mouse is used to zoom.

Parameters
zoom_enableEnale zoom.

Definition at line 299 of file Graph.cpp.

void export_svg ( )
privateslot

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
pointThe point pointed by the pen/mouse.

Definition at line 330 of file Graph.cpp.

void reset_base_zoom ( )
slot

Reset the base scale zoom.

Definition at line 419 of file Graph.cpp.

void selected ( const QwtPolygon &  polygon)
privateslot

Called on mous click.

Parameters
polygonThe selected polygon.

Definition at line 340 of file Graph.cpp.

void set_scale ( )
privateslot

Set the x,y scale of the graph.

Definition at line 354 of file Graph.cpp.

void set_xy_data ( NPlotXY::PlotDataPtr  fcts,
std::vector< QString > &  fct_label 
)

Erase existing data and put the new one on the current graph.

Parameters
fctsThe new data in a 2d vector.
fct_labelLabel 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
textText to show.

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
eventThe event emited when scrolling

Definition at line 425 of file Graph.cpp.

Member Data Documentation

QPointer<QPushButton> m_button_set_scale
private

Set scale button.

Definition at line 111 of file Graph.hpp.

QPointer<GraphOption> m_graph_option
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

Definition at line 106 of file Graph.hpp.

QPointer<QLabel> m_label_max_y
private

Definition at line 108 of file Graph.hpp.

QPointer<QLabel> m_label_min_x
private

Line Edit labels.

Definition at line 105 of file Graph.hpp.

QPointer<QLabel> m_label_min_y
private

Definition at line 107 of file Graph.hpp.

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

maximum y scale

Definition at line 102 of file Graph.hpp.

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<BodePlot> m_plot
private

The BodePlot who is shown in the graph x,y axes area.

Definition at line 75 of file Graph.hpp.

QPointer<QwtPlotZoomer> m_zoomer
private

Zoomer ( rectangle zoom )

Definition at line 84 of file Graph.hpp.


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