copasi API
0.1
|
#include <CQGLNetworkPainter.h>
Public Slots | |
void | triggerAnimationStep () |
Signals | |
void | stepChanged (C_INT32) |
void | endOfAnimationReached () |
void | signalZoomIn () |
void | signalZoomOut () |
Public Member Functions | |
CQGLNetworkPainter (const QGLFormat &format, QWidget *parent=0) | |
~CQGLNetworkPainter () | |
void | setZoomFactor (C_FLOAT64) |
C_FLOAT64 | getZoomFactor () const |
void | setCurrentPosition (C_FLOAT64 x, C_FLOAT64 y) |
void | setCurrentPositionX (C_FLOAT64 x) |
void | setCurrentPositionY (C_FLOAT64 y) |
C_FLOAT64 | getCurrentPositionX () const |
C_FLOAT64 | getCurrentPositionY () const |
void | setGraphSize (const CLPoint &min, const CLPoint &max) |
const CLPoint & | getGraphMin () |
const CLPoint & | getGraphMax () |
void | createGraph (CLayout *lP) |
void | drawGraph () |
void | drawNode (CCompartmentGraphNode &n) |
void | drawNode (CGraphNode &n) |
void | drawEdge (CGraphCurve &c) |
void | drawArrow (CArrow a, CLMetabReferenceGlyph::Role role) |
bool | createDataSets () |
C_INT32 | getNumberOfSteps () |
bool | isCircleMode () |
void | setNodeSize (std::string key, C_FLOAT64 val) |
void | setNodeSizeWithoutChangingCurves (std::string key, C_FLOAT64 val) |
std::string | getNodeNameEntry (int i) |
std::string | getNameForNodeKey (std::string key) |
int | getNumberOfNodeEntries () |
CDataEntity * | getDataSetAt (C_INT32 stepNumber) |
void | mapLabelsToRectangles () |
void | mapLabelsToCircles () |
void | runAnimation () |
void | showStep (C_INT32 i) |
void | rescaleDataSets (CVisParameters::SCALING_MODE scaleMode) |
void | rescaleDataSetsWithNewMinMax (C_FLOAT64 oldMin, C_FLOAT64 oldMax, C_FLOAT64 newMin, C_FLOAT64 newMax, CVisParameters::SCALING_MODE scaleMode) |
void | rescaleNode (std::string key, C_FLOAT64 newMin, C_FLOAT64 newMax, CVisParameters::SCALING_MODE scaleMode) |
void | setConstantNodeSizeForAllSteps (std::string key, C_FLOAT64 midValue) |
void | setConstantNodeSize (std::string key, C_FLOAT64 val) |
void | zoomGraph (C_FLOAT64 zoomFactor) |
QImage | getImage () |
void | setItemAnimated (std::string key, bool animatedP) |
void | setFontSizeForLabels (unsigned int fs) |
C_INT16 | getFontSize () |
void | update () |
void | resetView () |
void | pauseAnimation () |
void | setScaleMode (CVisParameters::SCALING_MODE scaleMode) |
Public Attributes | |
CSimSummaryInfo * | pSummaryInfo |
bool | mDataPresentP |
Protected Member Functions | |
void | initializeDisplayLists () |
void | initializeGraphPainter (QWidget *viewportWidget) |
void | draw () |
void | contextMenuEvent (QContextMenuEvent *event) |
void | testOpenGL () |
void | initializeGL () |
void | resizeGL (int w, int h) |
void | paintGL () |
void | printNodeInfoForKey (std::string key) |
Static Protected Member Functions | |
static std::vector< std::pair < float, float > > | calculateCirclePoints (unsigned int n) |
static double | calculateAngle (const CLPoint &endPoint, const CLPoint &startPoint) |
CQGLNetworkPainter::CQGLNetworkPainter | ( | const QGLFormat & | format, |
QWidget * | parent = 0 |
||
) |
CQGLNetworkPainter::~CQGLNetworkPainter | ( | ) |
double CQGLNetworkPainter::calculateAngle | ( | const CLPoint & | endPoint, |
const CLPoint & | startPoint | ||
) | [static, protected] |
Calculates the angle of the given line and the positive x axis. The returned value is in degrees.
std::vector< std::pair< float, float > > CQGLNetworkPainter::calculateCirclePoints | ( | unsigned int | n | ) | [static, protected] |
Calculates a circle with n points. The points are returned as pairs of x,y values in a vector. The points are calculated for a circle with diameter 1.
void CQGLNetworkPainter::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected] |
bool CQGLNetworkPainter::createDataSets | ( | ) |
void CQGLNetworkPainter::createGraph | ( | CLayout * | lP | ) |
void CQGLNetworkPainter::draw | ( | ) | [protected] |
void CQGLNetworkPainter::drawArrow | ( | CArrow | a, |
CLMetabReferenceGlyph::Role | role | ||
) |
void CQGLNetworkPainter::drawEdge | ( | CGraphCurve & | c | ) |
void CQGLNetworkPainter::drawGraph | ( | ) |
void CQGLNetworkPainter::drawNode | ( | CCompartmentGraphNode & | n | ) |
void CQGLNetworkPainter::drawNode | ( | CGraphNode & | n | ) |
void CQGLNetworkPainter::endOfAnimationReached | ( | ) | [signal] |
C_FLOAT64 CQGLNetworkPainter::getCurrentPositionX | ( | ) | const |
C_FLOAT64 CQGLNetworkPainter::getCurrentPositionY | ( | ) | const |
CDataEntity * CQGLNetworkPainter::getDataSetAt | ( | C_INT32 | stepNumber | ) |
C_INT16 CQGLNetworkPainter::getFontSize | ( | ) | [inline] |
const CLPoint & CQGLNetworkPainter::getGraphMax | ( | ) |
const CLPoint & CQGLNetworkPainter::getGraphMin | ( | ) |
QImage CQGLNetworkPainter::getImage | ( | ) |
std::string CQGLNetworkPainter::getNameForNodeKey | ( | std::string | key | ) |
std::string CQGLNetworkPainter::getNodeNameEntry | ( | int | i | ) |
int CQGLNetworkPainter::getNumberOfNodeEntries | ( | ) | [inline] |
C_INT32 CQGLNetworkPainter::getNumberOfSteps | ( | ) |
C_FLOAT64 CQGLNetworkPainter::getZoomFactor | ( | ) | const |
void CQGLNetworkPainter::initializeDisplayLists | ( | ) | [protected] |
This method creates all display lists and sets the clear color. This should be called whenever a color is changed.
void CQGLNetworkPainter::initializeGL | ( | ) | [protected] |
void CQGLNetworkPainter::initializeGraphPainter | ( | QWidget * | viewportWidget | ) | [protected] |
bool CQGLNetworkPainter::isCircleMode | ( | ) |
void CQGLNetworkPainter::mapLabelsToCircles | ( | ) |
void CQGLNetworkPainter::mapLabelsToRectangles | ( | ) |
void CQGLNetworkPainter::paintGL | ( | ) | [protected] |
void CQGLNetworkPainter::pauseAnimation | ( | ) |
void CQGLNetworkPainter::printNodeInfoForKey | ( | std::string | key | ) | [protected] |
void CQGLNetworkPainter::rescaleDataSets | ( | CVisParameters::SCALING_MODE | scaleMode | ) |
void CQGLNetworkPainter::rescaleDataSetsWithNewMinMax | ( | C_FLOAT64 | oldMin, |
C_FLOAT64 | oldMax, | ||
C_FLOAT64 | newMin, | ||
C_FLOAT64 | newMax, | ||
CVisParameters::SCALING_MODE | scaleMode | ||
) |
void CQGLNetworkPainter::rescaleNode | ( | std::string | key, |
C_FLOAT64 | newMin, | ||
C_FLOAT64 | newMax, | ||
CVisParameters::SCALING_MODE | scaleMode | ||
) |
void CQGLNetworkPainter::resetView | ( | ) |
void CQGLNetworkPainter::resizeGL | ( | int | w, |
int | h | ||
) | [protected] |
void CQGLNetworkPainter::runAnimation | ( | ) |
void CQGLNetworkPainter::setConstantNodeSize | ( | std::string | key, |
C_FLOAT64 | val | ||
) |
void CQGLNetworkPainter::setConstantNodeSizeForAllSteps | ( | std::string | key, |
C_FLOAT64 | midValue | ||
) |
void CQGLNetworkPainter::setCurrentPosition | ( | C_FLOAT64 | x, |
C_FLOAT64 | y | ||
) |
void CQGLNetworkPainter::setCurrentPositionX | ( | C_FLOAT64 | x | ) |
void CQGLNetworkPainter::setCurrentPositionY | ( | C_FLOAT64 | y | ) |
void CQGLNetworkPainter::setFontSizeForLabels | ( | unsigned int | fs | ) |
void CQGLNetworkPainter::setItemAnimated | ( | std::string | key, |
bool | animatedP | ||
) |
void CQGLNetworkPainter::setNodeSize | ( | std::string | key, |
C_FLOAT64 | val | ||
) |
void CQGLNetworkPainter::setNodeSizeWithoutChangingCurves | ( | std::string | key, |
C_FLOAT64 | val | ||
) |
void CQGLNetworkPainter::setScaleMode | ( | CVisParameters::SCALING_MODE | scaleMode | ) |
Sets the scaling mode to either global or individual scaling.
void CQGLNetworkPainter::setZoomFactor | ( | C_FLOAT64 | zoom | ) |
void CQGLNetworkPainter::showStep | ( | C_INT32 | i | ) |
void CQGLNetworkPainter::signalZoomIn | ( | ) | [signal] |
void CQGLNetworkPainter::signalZoomOut | ( | ) | [signal] |
void CQGLNetworkPainter::stepChanged | ( | C_INT32 | ) | [signal] |
void CQGLNetworkPainter::testOpenGL | ( | ) | [protected] |
void CQGLNetworkPainter::triggerAnimationStep | ( | ) | [slot] |
void CQGLNetworkPainter::update | ( | ) |
void CQGLNetworkPainter::zoomGraph | ( | C_FLOAT64 | zoomFactor | ) |