copasi API  0.1
Public Member Functions | Public Attributes
CQBarChart Class Reference

#include <CQBarChart.h>

List of all members.

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

Plot3dmpPlot
Q3HBoxLayout * mpLayout

Detailed Description

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.


Constructor & Destructor Documentation

CQBarChart::CQBarChart ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WFlags  fl = 0 
)
CQBarChart::~CQBarChart ( )

Member Function Documentation

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

  • mColors: has to have 100 colors, evenly distributed over relevant print section. All elements in the vector are of class QColor.
  • min, max: minimal and maximal value
void CQBarChart::setData ( double **  data,
int  columns,
int  rows,
double  valueDiff 
)

This method sets the main data you want the represent.

  • data: 2d array with numerical data
  • columns: number of columns in data
  • rows: number of rows in data
  • valuDiff: difference between the max and min value in data
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.


Member Data Documentation

Q3HBoxLayout* CQBarChart::mpLayout

This layoutwidget holds the above declared widgegt.

Pointer to main widget in the COPASI-specific QwtPlot3d extension.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines