COPASI API
4.16.103
|
#include <CQArrayAnnotationsWidget.h>
Public Member Functions | |
void | clearWidget () |
CQArrayAnnotationsWidget (QWidget *parent=0, bool slider=true) | |
void | disableBarChart () |
void | disableSlider () |
CColorScale * | getColorCoding () const |
void | setArrayAnnotation (const CArrayAnnotation *pArray) |
void | setColorCoding (CColorScale *cs) |
void | setColorScalingAutomatic (bool s) |
void | setFocusOnBars () |
void | setFocusOnTable () |
void | setLegendEnabled (bool b) |
void | switchToTable () |
virtual | ~CQArrayAnnotationsWidget () |
Protected Slots | |
void | changeContents () |
void | setColumnSize (int col, int size0, int size) |
void | slotColumnSelectionChanged (int col) |
void | slotContentCellClicked (int row, int col) |
void | slotContentDoubleClicked () |
void | slotCurrentSelectionIndexChanged (int row, int index) |
void | slotRowSelectionChanged (int row) |
Protected Member Functions | |
void | createBarChart () |
void | enableBarChart (bool enable) |
void | fillBarChart () |
void | fillTable () |
void | fillTable0 () |
void | fillTable1 (size_t rowIndex, const CCopasiAbstractArray::index_type &index) |
void | fillTableN (size_t rowIndex, size_t colIndex, const CCopasiAbstractArray::index_type &index) |
void | initSelectionTable () |
void | switchToBarChart () |
Protected Attributes | |
double ** | data |
bool | mAutomaticColorScaling |
bool | mBarChartFilled |
size_t | mColIndex |
std::vector< QColor > | mColors |
QStringList | mComboEntries |
bool | mOneDimensional |
const CArrayAnnotation * | mpArray |
CColorScale * | mpColorScale |
CQComboDelegate * | mpComboDelegate |
size_t | mRowIndex |
CCopasiAbstractArray::index_type | mSelectedCell |
CCopasiAbstractArray::index_type | mSelectionIndex |
bool | mUseSliders |
bool | mWithBarChart |
This Widget displays a CArrayAnnotation (no editing yet)
Definition at line 33 of file CQArrayAnnotationsWidget.h.
CQArrayAnnotationsWidget::CQArrayAnnotationsWidget | ( | QWidget * | parent = 0 , |
bool | slider = true |
||
) |
Definition at line 37 of file CQArrayAnnotationsWidget.cpp.
References changeContents(), mBarChartFilled, mpComboDelegate, mUseSliders, mWithBarChart, setColumnSize(), slotContentCellClicked(), slotContentDoubleClicked(), and slotCurrentSelectionIndexChanged().
|
virtual |
Definition at line 91 of file CQArrayAnnotationsWidget.cpp.
References mpColorScale.
|
protectedslot |
Definition at line 542 of file CQArrayAnnotationsWidget.cpp.
References switchToBarChart(), and switchToTable().
Referenced by CQArrayAnnotationsWidget().
void CQArrayAnnotationsWidget::clearWidget | ( | ) |
Definition at line 262 of file CQArrayAnnotationsWidget.cpp.
References mBarChartFilled, and mWithBarChart.
Referenced by setArrayAnnotation().
|
protected |
Function to create the 3D bar chart
Definition at line 1001 of file CQArrayAnnotationsWidget.cpp.
References CQIconResource::bars, CQIconResource::icon(), mBarChartFilled, and mUseSliders.
Referenced by fillBarChart(), and switchToBarChart().
void CQArrayAnnotationsWidget::disableBarChart | ( | ) |
Definition at line 634 of file CQArrayAnnotationsWidget.cpp.
References switchToTable().
void CQArrayAnnotationsWidget::disableSlider | ( | ) |
Definition at line 644 of file CQArrayAnnotationsWidget.cpp.
|
protected |
Definition at line 555 of file CQArrayAnnotationsWidget.cpp.
References mWithBarChart, and switchToTable().
Referenced by fillBarChart().
|
protected |
Definition at line 832 of file CQArrayAnnotationsWidget.cpp.
References CArrayAnnotation::array(), createBarChart(), data, enableBarChart(), CArrayAnnotation::getAnnotationsString(), CColorScale::getColor(), mBarChartFilled, mColIndex, mColors, mOneDimensional, mpArray, mpColorScale, mRowIndex, mSelectedCell, mWithBarChart, and CArrayAnnotation::size().
Referenced by fillTable1(), fillTableN(), and switchToBarChart().
|
protected |
Definition at line 342 of file CQArrayAnnotationsWidget.cpp.
References CArrayAnnotation::dimensionality(), fillTable0(), fillTable1(), fillTableN(), mColIndex, mpArray, mRowIndex, and mSelectionIndex.
Referenced by slotColumnSelectionChanged(), slotCurrentSelectionIndexChanged(), and slotRowSelectionChanged().
|
protected |
Definition at line 521 of file CQArrayAnnotationsWidget.cpp.
References CArrayAnnotation::array(), and mpArray.
Referenced by fillTable(), and setArrayAnnotation().
|
protected |
Definition at line 460 of file CQArrayAnnotationsWidget.cpp.
References CArrayAnnotation::array(), fillBarChart(), CColorScale::finishAutomaticParameterCalculation(), FROM_UTF8, CArrayAnnotation::getAnnotationsString(), CColorScale::getColor(), mAutomaticColorScaling, mOneDimensional, mpArray, mpColorScale, CColorScale::passValue(), CArrayAnnotation::size(), and CColorScale::startAutomaticParameterCalculation().
Referenced by fillTable().
|
protected |
Definition at line 364 of file CQArrayAnnotationsWidget.cpp.
References CArrayAnnotation::array(), fillBarChart(), CColorScale::finishAutomaticParameterCalculation(), FROM_UTF8, CArrayAnnotation::getAnnotationsString(), CColorScale::getColor(), mAutomaticColorScaling, mOneDimensional, mpArray, mpColorScale, CColorScale::passValue(), CArrayAnnotation::size(), and CColorScale::startAutomaticParameterCalculation().
Referenced by fillTable().
|
inline |
returns the color coding algorithm
Definition at line 55 of file CQArrayAnnotationsWidget.h.
References mpColorScale.
|
protected |
only for dimensionality > 2
Definition at line 226 of file CQArrayAnnotationsWidget.cpp.
References CArrayAnnotation::dimensionality(), FROM_UTF8, CArrayAnnotation::getAnnotationsString(), CArrayAnnotation::getDimensionDescription(), mpArray, mSelectionIndex, and vectorOfStrings2QStringList().
void CQArrayAnnotationsWidget::setArrayAnnotation | ( | const CArrayAnnotation * | pArray | ) |
Definition at line 120 of file CQArrayAnnotationsWidget.cpp.
References C_INVALID_INDEX, clearWidget(), CArrayAnnotation::dimensionality(), fillTable0(), FROM_UTF8, CArrayAnnotation::getDimensionDescription(), mColIndex, mpArray, mRowIndex, mSelectedCell, mSelectionIndex, and slotRowSelectionChanged().
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.
Definition at line 101 of file CQArrayAnnotationsWidget.cpp.
References CColorScale::isUsed(), mpColorScale, and CColorScale::setIsUsed().
|
inline |
if true the parameters for the color coding are determined automatically
Definition at line 60 of file CQArrayAnnotationsWidget.h.
References mAutomaticColorScaling.
|
protectedslot |
Definition at line 806 of file CQArrayAnnotationsWidget.cpp.
References C_FLOAT64, and C_INT32.
Referenced by CQArrayAnnotationsWidget().
void CQArrayAnnotationsWidget::setFocusOnBars | ( | ) |
Function to set the appearance focus on bars
Definition at line 726 of file CQArrayAnnotationsWidget.cpp.
References mWithBarChart.
Referenced by switchToBarChart().
void CQArrayAnnotationsWidget::setFocusOnTable | ( | ) |
Function to set the appearance focus on table
Definition at line 659 of file CQArrayAnnotationsWidget.cpp.
References mWithBarChart.
Referenced by switchToTable().
void CQArrayAnnotationsWidget::setLegendEnabled | ( | bool | b | ) |
enable or disable the display of the dimensions annotation (the upper table)
Definition at line 282 of file CQArrayAnnotationsWidget.cpp.
|
protectedslot |
Definition at line 315 of file CQArrayAnnotationsWidget.cpp.
References fillTable(), mColIndex, and mRowIndex.
|
protectedslot |
Definition at line 776 of file CQArrayAnnotationsWidget.cpp.
References mColIndex, mRowIndex, and mSelectedCell.
Referenced by CQArrayAnnotationsWidget().
|
protectedslot |
Definition at line 796 of file CQArrayAnnotationsWidget.cpp.
References switchToBarChart().
Referenced by CQArrayAnnotationsWidget().
|
protectedslot |
Definition at line 336 of file CQArrayAnnotationsWidget.cpp.
References fillTable(), and mSelectionIndex.
Referenced by CQArrayAnnotationsWidget().
|
protectedslot |
Definition at line 294 of file CQArrayAnnotationsWidget.cpp.
References fillTable(), mColIndex, and mRowIndex.
Referenced by setArrayAnnotation().
|
protected |
Function to switch the appearance to bar chart
Definition at line 607 of file CQArrayAnnotationsWidget.cpp.
References createBarChart(), fillBarChart(), CQIconResource::icon(), mBarChartFilled, mWithBarChart, setFocusOnBars(), and CQIconResource::table.
Referenced by changeContents(), and slotContentDoubleClicked().
void CQArrayAnnotationsWidget::switchToTable | ( | ) |
Function to switch the appearance to table
Definition at line 582 of file CQArrayAnnotationsWidget.cpp.
References CQIconResource::bars, CQIconResource::icon(), mWithBarChart, and setFocusOnTable().
Referenced by changeContents(), disableBarChart(), and enableBarChart().
|
protected |
Definition at line 125 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart().
|
protected |
Definition at line 134 of file CQArrayAnnotationsWidget.h.
Referenced by fillTable1(), fillTableN(), and setColorScalingAutomatic().
|
protected |
Definition at line 142 of file CQArrayAnnotationsWidget.h.
Referenced by clearWidget(), CQArrayAnnotationsWidget(), createBarChart(), fillBarChart(), and switchToBarChart().
|
protected |
Definition at line 137 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart(), fillTable(), setArrayAnnotation(), slotColumnSelectionChanged(), slotContentCellClicked(), and slotRowSelectionChanged().
|
protected |
Definition at line 126 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart().
|
protected |
Definition at line 145 of file CQArrayAnnotationsWidget.h.
|
protected |
Definition at line 143 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart(), fillTable1(), and fillTableN().
|
protected |
Definition at line 131 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart(), fillTable(), fillTable0(), fillTable1(), fillTableN(), initSelectionTable(), and setArrayAnnotation().
|
protected |
Definition at line 133 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart(), fillTable1(), fillTableN(), getColorCoding(), setColorCoding(), and ~CQArrayAnnotationsWidget().
|
protected |
Definition at line 146 of file CQArrayAnnotationsWidget.h.
Referenced by CQArrayAnnotationsWidget().
|
protected |
Definition at line 136 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart(), fillTable(), setArrayAnnotation(), slotColumnSelectionChanged(), slotContentCellClicked(), and slotRowSelectionChanged().
|
protected |
Definition at line 140 of file CQArrayAnnotationsWidget.h.
Referenced by fillBarChart(), setArrayAnnotation(), and slotContentCellClicked().
|
protected |
Definition at line 138 of file CQArrayAnnotationsWidget.h.
Referenced by fillTable(), initSelectionTable(), setArrayAnnotation(), and slotCurrentSelectionIndexChanged().
|
protected |
indicates whether sliders are used in the 3d bar chart
Definition at line 123 of file CQArrayAnnotationsWidget.h.
Referenced by CQArrayAnnotationsWidget(), and createBarChart().
|
protected |
indicates whether 3d bar chart is activated
Definition at line 118 of file CQArrayAnnotationsWidget.h.
Referenced by clearWidget(), CQArrayAnnotationsWidget(), enableBarChart(), fillBarChart(), setFocusOnBars(), setFocusOnTable(), switchToBarChart(), and switchToTable().