copasi API
0.1
|
#include <CQBarChart.h>
Public Member Functions | |
CQBarChart (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0) | |
~CQBarChart () | |
void | setData (double **data, int columns, int rows, double valueDiff) |
void | setDescriptions (const std::vector< std::string > *columnsDes, const std::vector< std::string > *rowsDes) |
void | setColors (std::vector< QColor > mColors, double min, double max) |
void | setPlotTitle (QString title) |
void | showColorLegend (bool CLegend) |
void | plotData () |
void | emptyPlot () |
void | activateSlider () |
bool | sliderActive () |
Public Attributes | |
Plot3d * | mpPlot |
Q3HBoxLayout * | mpLayout |
Interface class between QwtPlot3d plus extension and COPASI. Main widget to create, set and plot a 3d bar graph. If there is require to couple this bar graph to a value table use the (already prepared) CQArrayAnnotationWidget.
CQBarChart::CQBarChart | ( | QWidget * | parent = 0 , |
const char * | name = 0 , |
||
Qt::WFlags | fl = 0 |
||
) |
CQBarChart::~CQBarChart | ( | ) |
void CQBarChart::activateSlider | ( | ) |
This method activates 2 sliders. You can move sliders to change the actualy focus on the data set. Horizontally slder represents the columns and vertically the rows. If e.g. the slider for rows is moved to wished position, this row is marked and all other rowdescription are hidden. The last position of a row slider means that all descriptions are shown and none of rows is marked.
void CQBarChart::emptyPlot | ( | ) |
This method discard whole data in bar graph. After this call the screened widget is empty!
void CQBarChart::plotData | ( | ) |
Call this method to draw the bar graph.
void CQBarChart::setColors | ( | std::vector< QColor > | mColors, |
double | min, | ||
double | max | ||
) |
This method sets the user specified color vector for value section of relevant values. Value section is defined from minimal and maximal
void CQBarChart::setData | ( | double ** | data, |
int | columns, | ||
int | rows, | ||
double | valueDiff | ||
) |
This method sets the main data you want the represent.
void CQBarChart::setDescriptions | ( | const std::vector< std::string > * | columnsDes, |
const std::vector< std::string > * | rowsDes | ||
) |
This method sets the user specified descriptions for the rows and columns. All axes in bar graph will be marked with this description labels automaticaly.
void CQBarChart::setPlotTitle | ( | QString | title | ) |
If necessary set the title in the middle over the bar graph.
void CQBarChart::showColorLegend | ( | bool | CLegend | ) |
Option to show or to hide the color legend.
bool CQBarChart::sliderActive | ( | ) |
Find out whether the sliders are active or not.
Q3HBoxLayout* CQBarChart::mpLayout |
This layoutwidget holds the above declared widgegt.
Pointer to main widget in the COPASI-specific QwtPlot3d extension.