COPASI API  4.40.278
CQBarChart Class Reference

#include <qwt3dPlot.h>

Inheritance diagram for CQBarChart:
[legend]

Classes

struct  Data
 

Public Slots

void hotKeysMessage ()
 
void saveDataToFile ()
 
void showLegend ()
 

Public Member Functions

 CQBarChart (QWidget *parent=0, const char *name=0)
 
void emptyPlot ()
 
int getColSliderPos ()
 
int getRowSliderPos ()
 
void plotData ()
 
void resizeCoordSys ()
 
void setAxes ()
 
void setColors (std::vector< QColor > mColors, double min, double max)
 
void setData ()
 
void setData (double **data, int columns, int rows, double valueZone)
 
void setDescriptions (const std::vector< std::string > *columnsDes, const std::vector< std::string > *rowsDes)
 
void setLegend ()
 
void setPlotTitle ()
 
void setPlotTitle (QString title)
 
void setScale (const std::vector< std::string > *columnsDescript, const std::vector< std::string > *rowsDescript)
 
void setSlider ()
 
void setZoom ()
 
void showColorLegend (bool CLegend)
 
void showEvent (QShowEvent *event)
 
virtual void sliderMoved (int column, int row)
 
virtual ~CQBarChart ()
 
- Public Member Functions inherited from CQBaseWidget
 CQBaseWidget (QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=Qt::WindowFlags())
 
bool isSliderActive () const
 
int scaleFactor ()
 
void setSliderActive (const bool &active)
 
virtual ~CQBaseWidget ()
 

Public Attributes

double ** data
 
bool mColorLegend
 
Data mData
 
BarmpBar
 
const std::vector< std::string > * mpColumnScale
 
const std::vector< std::string > * mpRowScale
 
QString mTitle
 

Private Member Functions

void contextMenuEvent (QContextMenuEvent *)
 

Additional Inherited Members

- Protected Slots inherited from CQBaseWidget
void setSlider ()
 
- Protected Attributes inherited from CQBaseWidget
int mScaleFactor
 
bool mSliderActive
 

Constructor & Destructor Documentation

◆ CQBarChart()

CQBarChart::CQBarChart ( QWidget *  parent = 0,
const char *  name = 0 
)

◆ ~CQBarChart()

CQBarChart::~CQBarChart ( )
virtual

Member Function Documentation

◆ contextMenuEvent()

void CQBarChart::contextMenuEvent ( QContextMenuEvent *  )
private

◆ emptyPlot()

void CQBarChart::emptyPlot ( )

References data, mTitle, plotData(), setData(), and setScale().

◆ getColSliderPos()

int CQBarChart::getColSliderPos ( )

◆ getRowSliderPos()

int CQBarChart::getRowSliderPos ( )

◆ hotKeysMessage

void CQBarChart::hotKeysMessage ( )
slot

Referenced by contextMenuEvent().

◆ plotData()

void CQBarChart::plotData ( )

◆ resizeCoordSys()

void CQBarChart::resizeCoordSys ( )

Referenced by plotData().

◆ saveDataToFile

void CQBarChart::saveDataToFile ( )
slot

References C_INT32.

Referenced by contextMenuEvent().

◆ setAxes()

◆ setColors()

void CQBarChart::setColors ( std::vector< QColor >  mColors,
double  min,
double  max 
)

◆ setData() [1/2]

void CQBarChart::setData ( )

Referenced by emptyPlot().

◆ setData() [2/2]

◆ setDescriptions()

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

References setScale().

◆ setLegend()

void CQBarChart::setLegend ( )

Referenced by plotData().

◆ setPlotTitle() [1/2]

void CQBarChart::setPlotTitle ( )

< Set caption position

< Set caption font

< Set caption color

< Set caption text (one row only)

References mTitle.

Referenced by plotData().

◆ setPlotTitle() [2/2]

void CQBarChart::setPlotTitle ( QString  title)

If necessary set the title in the middle over the bar graph.

References mTitle.

◆ setScale()

void CQBarChart::setScale ( const std::vector< std::string > *  columnsDescript,
const std::vector< std::string > *  rowsDescript 
)

References mpColumnScale, and mpRowScale.

Referenced by emptyPlot(), and setDescriptions().

◆ setSlider()

◆ setZoom()

void CQBarChart::setZoom ( )

References CQBarChart::Data::maxItems, and mData.

Referenced by plotData().

◆ showColorLegend()

void CQBarChart::showColorLegend ( bool  CLegend)

Option to show or to hide the color legend.

References mColorLegend.

◆ showEvent()

void CQBarChart::showEvent ( QShowEvent *  event)

◆ showLegend

void CQBarChart::showLegend ( )
slot

References mColorLegend.

Referenced by contextMenuEvent().

◆ sliderMoved()

Member Data Documentation

◆ data

double** CQBarChart::data

Referenced by emptyPlot(), and setData().

◆ mColorLegend

bool CQBarChart::mColorLegend

◆ mData

◆ mpBar

Bar* CQBarChart::mpBar

Referenced by plotData(), and sliderMoved().

◆ mpColumnScale

const std::vector<std::string>* CQBarChart::mpColumnScale

Referenced by setAxes(), setScale(), and sliderMoved().

◆ mpRowScale

const std::vector<std::string>* CQBarChart::mpRowScale

Referenced by setAxes(), setScale(), and sliderMoved().

◆ mTitle

QString CQBarChart::mTitle

Referenced by CQBarChart(), emptyPlot(), and setPlotTitle().


The documentation for this class was generated from the following files: