copasi API  0.1
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
CQArrayAnnotationsWidget Class Reference

#include <CQArrayAnnotationsWidget.h>

List of all members.

Public Member Functions

 CQArrayAnnotationsWidget (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0, bool barChart=true, bool slider=true)
 ~CQArrayAnnotationsWidget ()
void setArrayAnnotation (const CArrayAnnotation *pArray)
void setColorCoding (CColorScale *cs)
CColorScalegetColorCoding () const
void setColorScalingAutomatic (bool s)
void setLegendEnabled (bool b)
void disableBarChart ()
void disableSlider ()
void setFocusOnTable ()
void setFocusOnBars ()
void switchToTable ()
void clearWidget ()

Protected Slots

void selectionTableChanged (int row, int col)
void changeContents ()
void tableDoubleClicked ()
void setColumnSize (int col, int size0, int size)

Protected Member Functions

void fillTable (unsigned C_INT32 rowIndex, unsigned C_INT32 colIndex, CCopasiAbstractArray::index_type &index)
void fillTable (unsigned C_INT32 rowIndex, CCopasiAbstractArray::index_type &index)
void fillTable ()
void createBarChart ()
void fillBarChart ()
void initSelectionTable ()
C_INT32 currentItem (C_INT32 row)
void setCurrentItem (C_INT32 row, C_INT32 index)
void storeCurrentCombos ()
void enableBarChart (bool enable)
void switchToBarChart ()

Protected Attributes

CQBarChartmpPlot3d
Q3HBox * mpHBoxSelection
Q3HBox * mpHBoxContents
QStackedWidget * mpStack
bool mWithBarChart
bool mUseSliders
QPushButton * mpButton
double ** data
std::vector< QColor > mColors
Q3Table * mpSelectionTable
Q3Table * mpContentTable
const CArrayAnnotationmpArray
CColorScalempColorScale
bool mAutomaticColorScaling
unsigned C_INT32 mRowIndex
unsigned C_INT32 mColIndex
CCopasiAbstractArray::index_type mIndex
bool mBarChartFilled
bool mOneDimensional
std::vector< C_INT32 > combos

Detailed Description

This Widget displays a CArrayAnnotation (no editing yet)


Constructor & Destructor Documentation

CQArrayAnnotationsWidget::CQArrayAnnotationsWidget ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WFlags  fl = 0,
bool  barChart = true,
bool  slider = true 
)
CQArrayAnnotationsWidget::~CQArrayAnnotationsWidget ( )

Member Function Documentation

void CQArrayAnnotationsWidget::changeContents ( ) [protected, slot]
void CQArrayAnnotationsWidget::clearWidget ( )
void CQArrayAnnotationsWidget::createBarChart ( ) [protected]

Function to create the 3D bar chart

C_INT32 CQArrayAnnotationsWidget::currentItem ( C_INT32  row) [protected]

get the active item from the combo box in the specified row in the mpSelectionTable

void CQArrayAnnotationsWidget::disableBarChart ( )
void CQArrayAnnotationsWidget::disableSlider ( )
void CQArrayAnnotationsWidget::enableBarChart ( bool  enable) [protected]
void CQArrayAnnotationsWidget::fillBarChart ( ) [protected]
void CQArrayAnnotationsWidget::fillTable ( unsigned C_INT32  rowIndex,
unsigned C_INT32  colIndex,
CCopasiAbstractArray::index_type index 
) [protected]
void CQArrayAnnotationsWidget::fillTable ( unsigned C_INT32  rowIndex,
CCopasiAbstractArray::index_type index 
) [protected]
void CQArrayAnnotationsWidget::fillTable ( ) [protected]
CColorScale* CQArrayAnnotationsWidget::getColorCoding ( ) const [inline]

returns the color coding algorithm

void CQArrayAnnotationsWidget::initSelectionTable ( ) [protected]

only for dimensionality > 2

void CQArrayAnnotationsWidget::selectionTableChanged ( int  row,
int  col 
) [protected, slot]
void CQArrayAnnotationsWidget::setArrayAnnotation ( const CArrayAnnotation pArray)
void CQArrayAnnotationsWidget::setColorCoding ( CColorScale cs)

set an algorithm for color coding. If cs=NULL no color coding is performed. The widget assumes ownership of the scaler and will delete it in its destructor. This means a CColorScale can only be used in one widget.

void CQArrayAnnotationsWidget::setColorScalingAutomatic ( bool  s) [inline]

if true the parameters for the color coding are determined automatically

void CQArrayAnnotationsWidget::setColumnSize ( int  col,
int  size0,
int  size 
) [protected, slot]
void CQArrayAnnotationsWidget::setCurrentItem ( C_INT32  row,
C_INT32  index 
) [protected]

set the active item of the combo box in the specified row in the mpSelectionTable

void CQArrayAnnotationsWidget::setFocusOnBars ( )

Function to set the appearance focus on bars

void CQArrayAnnotationsWidget::setFocusOnTable ( )

Function to set the appearance focus on table

void CQArrayAnnotationsWidget::setLegendEnabled ( bool  b)

enable or disable the display of the dimensions annotation (the upper table)

void CQArrayAnnotationsWidget::storeCurrentCombos ( ) [protected]

store the current state of all the combo boxes

void CQArrayAnnotationsWidget::switchToBarChart ( ) [protected]

Function to switch the appearance to bar chart

void CQArrayAnnotationsWidget::switchToTable ( )

Function to switch the appearance to table

void CQArrayAnnotationsWidget::tableDoubleClicked ( ) [protected, slot]

Member Data Documentation

std::vector<C_INT32> CQArrayAnnotationsWidget::combos [protected]

the current active item of all the combo boxes

double** CQArrayAnnotationsWidget::data [protected]
unsigned C_INT32 CQArrayAnnotationsWidget::mColIndex [protected]
std::vector< QColor > CQArrayAnnotationsWidget::mColors [protected]
QPushButton* CQArrayAnnotationsWidget::mpButton [protected]
QStackedWidget* CQArrayAnnotationsWidget::mpStack [protected]
unsigned C_INT32 CQArrayAnnotationsWidget::mRowIndex [protected]

indicates whether sliders are used in the 3d bar chart

indicates whether 3d bar chart is activated


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