COPASI API
4.16.103
|
#include <CQGLNetworkPainter.h>
Public Slots | |
void | triggerAnimationStep () |
Signals | |
void | endOfAnimationReached () |
void | signalZoomIn () |
void | signalZoomOut () |
void | stepChanged (int) |
Public Attributes | |
bool | mDataPresentP |
CSimSummaryInfo * | pSummaryInfo |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) |
void | draw () |
void | initializeDisplayLists () |
void | initializeGL () |
void | initializeGraphPainter (QWidget *viewportWidget) |
void | paintGL () |
void | printNodeInfoForKey (std::string key) |
void | resizeGL (int w, int h) |
void | testOpenGL () |
Static Protected Member Functions | |
static double | calculateAngle (const CLPoint &endPoint, const CLPoint &startPoint) |
static std::vector< std::pair < float, float > > | calculateCirclePoints (unsigned int n) |
Private Types | |
enum | shapeOfLabels { CIRCLE, RECTANGLE } |
Private Slots | |
void | setFontSize () |
void | zoomIn () |
void | zoomOut () |
Static Private Attributes | |
static const float | COMPARTMENT_DEPTH = 0.001f |
static const float | COMPARTMENT_FRAME_DEPTH = 0.0011f |
static const float | COMPARTMENT_SHADOW_DEPTH = 0.0009f |
static const C_FLOAT64 | DEFAULT_NODE_SIZE |
static const C_INT32 | MIN_HEIGHT = 10 |
static const GLfloat | MIRROR_X [16] |
static const GLfloat | MIRROR_Y [16] |
static const float | SPECIES_DEPTH = 0.005f |
static const float | SPECIES_FRAME_DEPTH = 0.0051f |
static const float | SPECIES_SHADOW_DEPTH = 0.0049f |
static const float | SPECIESREFERENCE_DEPTH = 0.003f |
Definition at line 62 of file CQGLNetworkPainter.h.
|
private |
CQGLNetworkPainter::CQGLNetworkPainter | ( | const QGLFormat & | format, |
QWidget * | parent = 0 |
||
) |
Definition at line 112 of file CQGLNetworkPainter.cpp.
References initializeGraphPainter().
CQGLNetworkPainter::~CQGLNetworkPainter | ( | ) |
Definition at line 119 of file CQGLNetworkPainter.cpp.
References labelTextureMap, and mDisplayLists.
|
private |
Definition at line 2582 of file CQGLNetworkPainter.cpp.
References CLLineSegment::getBase1(), CLLineSegment::getBase2(), CLLineSegment::getEnd(), getPointNearCircle(), CLLineSegment::getStart(), CLPoint::getX(), CLPoint::getY(), CLLineSegment::isBezier(), mCurrentZoom, nodeArrowMap, and CLLineSegment::setEnd().
Referenced by mapLabelsToCircles().
|
private |
Definition at line 2635 of file CQGLNetworkPainter.cpp.
References CLLineSegment::getBase1(), CLLineSegment::getBase2(), CLLineSegment::getEnd(), getPointOnRectangle(), CLLineSegment::getStart(), CLPoint::getX(), CLPoint::getY(), CLLineSegment::isBezier(), mCurrentZoom, nodeArrowMap, and CLLineSegment::setEnd().
Referenced by mapLabelsToRectangles().
|
private |
|
staticprotected |
Calculates the angle of the given line and the positive x axis. The returned value is in degrees.
Definition at line 1408 of file CQGLNetworkPainter.cpp.
References CLPoint::getX(), and CLPoint::getY().
Referenced by drawArrow().
|
staticprotected |
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.
Definition at line 3200 of file CQGLNetworkPainter.cpp.
Referenced by initializeGraphPainter().
|
private |
Definition at line 788 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CLBoundingBox::getDimensions(), CLDimensions::getHeight(), CLCurve::getListOfPoints(), CLBoundingBox::getPosition(), CLDimensions::getWidth(), CLPoint::getX(), CLPoint::getY(), CGraphCurve::invertOrderOfPoints(), CLPoint::setX(), and CLPoint::setY().
Referenced by createGraph().
|
protected |
Definition at line 2845 of file CQGLNetworkPainter.cpp.
References setFontSizeAction, zoomInAction, and zoomOutAction.
|
private |
Definition at line 2693 of file CQGLNetworkPainter.cpp.
References setFontSize(), setFontSizeAction, zoomIn(), zoomInAction, zoomOut(), and zoomOutAction.
Referenced by initializeGraphPainter().
bool CQGLNetworkPainter::createDataSets | ( | ) |
Definition at line 2050 of file CQGLNetworkPainter.cpp.
References CTimeSeries::allocate(), C_FLOAT64, CTimeSeries::compile(), COutputInterface::DURING, CVisParameters::EPSILON, CTimeSeries::getConcentrationData(), CCopasiRootContainer::getDatamodelList(), CTimeSeries::getKey(), CSimSummaryInfo::getMaxForSpecies(), CQLayoutMainWindow::getMaxNodeSize(), CSimSummaryInfo::getMaxOverallConcentration(), CSimSummaryInfo::getMinForSpecies(), CQLayoutMainWindow::getMinNodeSize(), CSimSummaryInfo::getMinOverallConcentration(), CTimeSeries::getNumVariables(), CTimeSeries::getRecordedSteps(), CQLayoutMainWindow::getScalingMode(), CTrajectoryTask::getTimeSeries(), CTimeSeries::getTitle(), CVisParameters::INDIVIDUAL_SCALING, CQLayoutMainWindow::insertValueTable(), keyMap, max, mDataPresentP, mDataSets, CTimeSeries::output(), pParentLayoutWindow, pSummaryInfo, CDataEntity::putOrigValueForSpecies(), CDataEntity::putValueForSpecies(), CSimSummaryInfo::setMaxOverallConcentration(), CSimSummaryInfo::storeMax(), and CSimSummaryInfo::storeMin().
Referenced by CQLayoutMainWindow::loadData(), and runAnimation().
Definition at line 583 of file CQGLNetworkPainter.cpp.
References CLMetabReferenceGlyph::ACTIVATOR, checkCurve(), compartmentNodeMap, curvesWithArrow, CLLineSegment::getBase1(), CLLineSegment::getBase2(), CLCurve::getCurveSegments(), CLayout::getDimensions(), CLLineSegment::getEnd(), CLDimensions::getHeight(), CCopasiObject::getKey(), CLayout::getListOfCompartmentGlyphs(), CLayout::getListOfMetaboliteGlyphs(), CLayout::getListOfReactionGlyphs(), CLayout::getListOfTextGlyphs(), CLLineSegment::getStart(), CLDimensions::getWidth(), CLPoint::getX(), CLPoint::getY(), CLMetabReferenceGlyph::INHIBITOR, CLLineSegment::isBezier(), keyMap, labelNodeMap, mCurrentZoom, CLMetabReferenceGlyph::MODIFIER, nodeArrowMap, nodeCurveMap, nodeMap, CLMetabReferenceGlyph::PRODUCT, CGraphCurve::setArrow(), CGraphCurve::setArrowP(), setGraphSize(), CGraphCurve::setRole(), CLMetabReferenceGlyph::SIDEPRODUCT, CCopasiVector< T >::size(), viewerCompartmentNodes, viewerCurves, viewerLabels, and viewerNodes.
Referenced by CQGLViewport::createGraph().
|
private |
Definition at line 1627 of file CQGLNetworkPainter.cpp.
References C_INT32, labelTextureMap, mFontname, mFontsize, RG_createTextureForText(), and viewerLabels.
Referenced by setFontSizeForLabels(), and zoom().
|
protected |
Definition at line 577 of file CQGLNetworkPainter.cpp.
References drawGraph().
Referenced by paintGL().
void CQGLNetworkPainter::drawArrow | ( | CArrow | a, |
CLMetabReferenceGlyph::Role | role | ||
) |
Definition at line 1471 of file CQGLNetworkPainter.cpp.
References CLMetabReferenceGlyph::ACTIVATOR, calculateAngle(), CArrow::getEndOfLine(), CArrow::getStartOfLine(), CLPoint::getX(), CLPoint::getY(), CLMetabReferenceGlyph::INHIBITOR, mDisplayLists, CLMetabReferenceGlyph::MODIFIER, mSpeciesReferenceColor, CLMetabReferenceGlyph::PRODUCT, and CLMetabReferenceGlyph::SIDEPRODUCT.
Referenced by drawEdge().
|
private |
Definition at line 957 of file CQGLNetworkPainter.cpp.
References C_INT16, C_INT32, and RG_drawStringAt().
Referenced by drawGraph().
void CQGLNetworkPainter::drawEdge | ( | CGraphCurve & | c | ) |
Definition at line 1340 of file CQGLNetworkPainter.cpp.
References drawArrow(), CGraphCurve::getArrow(), CLLineSegment::getBase1(), CLLineSegment::getBase2(), CLCurve::getCurveSegments(), CLLineSegment::getEnd(), CLCurve::getNumCurveSegments(), CGraphCurve::getRole(), CLLineSegment::getStart(), CLPoint::getX(), CLPoint::getY(), CGraphCurve::hasArrowP(), CLLineSegment::isBezier(), and SPECIESREFERENCE_DEPTH.
Referenced by drawGraph().
void CQGLNetworkPainter::drawGraph | ( | ) |
Definition at line 823 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, C_INT32, CIRCLE, CVisParameters::COLOR_MODE, compartmentNodeMap, CVisParameters::DEFAULT_NODE_SIZE, drawColorLegend(), drawEdge(), drawNode(), CQLayoutMainWindow::getMappingMode(), getTextWidth(), mCurrentZoom, mf, mFontname, mFontsize, mLabelShape, mSpeciesReferenceColor, nodeCurveMap, nodeMap, pParentLayoutWindow, RECTANGLE, RG_drawStringAt(), viewerCompartmentNodes, viewerCurves, viewerLabels, and viewerNodes.
Referenced by draw(), export_bitmap(), mapLabelsToCircles(), mapLabelsToRectangles(), setFontSizeForLabels(), showStep(), and zoom().
void CQGLNetworkPainter::drawNode | ( | CCompartmentGraphNode & | n | ) |
Definition at line 1003 of file CQGLNetworkPainter.cpp.
References COMPARTMENT_SHADOW_DEPTH, CLGraphicalObject::getHeight(), CLGraphicalObject::getWidth(), CLGraphicalObject::getX(), CLGraphicalObject::getY(), mCompartmentShadowXOffset, mCompartmentShadowYOffset, mDisplayLists, mDrawShadows, and MIRROR_Y.
Referenced by drawGraph().
void CQGLNetworkPainter::drawNode | ( | CGraphNode & | n | ) |
Definition at line 1080 of file CQGLNetworkPainter.cpp.
References CIRCLE, CVisParameters::DEFAULT_NODE_SIZE, CLGraphicalObject::getHeight(), CQLayoutMainWindow::getMappingMode(), CGraphNode::getOrigNodeKey(), CGraphNode::getSize(), CLGraphicalObject::getWidth(), CLGraphicalObject::getX(), CLGraphicalObject::getY(), mAnimatedSpeciesColor, mCirclePoints, mConstantSpeciesColor, mCurrentZoom, mDisplayLists, mDrawShadows, mFrameColor, MIRROR_Y, mLabelShape, mSpeciesShadowXOffset, mSpeciesShadowYOffset, pParentLayoutWindow, setOfConstantMetabolites, setOfDisabledMetabolites, CVisParameters::SIZE_AREA_MODE, CVisParameters::SIZE_DIAMETER_MODE, SPECIES_DEPTH, SPECIES_FRAME_DEPTH, and SPECIES_SHADOW_DEPTH.
|
private |
Definition at line 1745 of file CQGLNetworkPainter.cpp.
References FROM_UTF8, mf, mFontsize, mFontsizeDouble, mTextColor, and round2powN().
|
signal |
Referenced by initializeGraphPainter(), and triggerAnimationStep().
bool CQGLNetworkPainter::export_bitmap | ( | double | x, |
double | y, | ||
double | width, | ||
double | height, | ||
unsigned int | imageWidth, | ||
unsigned int | imageHeight, | ||
const QString & | filename, | ||
const std::vector< size_t > | frames | ||
) |
New method for creating a bitmap from the animation window. This method uses QPainter, QImage and QGLFrameBufferObject to draw into a multisample buffer if availabel and if not, it will be single sample. This way the implementation should work on more computers. The image is rendered in tiles of size 128x128 which should be OK for even small frame buffers and it is a multiple of 2 which is compliant with older versions of OpenGL.
The methods get the region to be drawn and the size of the final image as parameters. In addition to that, the user can specify a vectir of frame numbers to be rendered. If no frame number is given, nothing is rendered. If a frame number is outside the range of valid frame numbers, the last frame is rendered. If the rendering was successfull, true is returned, otherwise false is returned.
Definition at line 3237 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, drawGraph(), mCurrentPositionX, mCurrentPositionY, mCurrentZoom, mDataSets, resizeGL(), showStep(), and stepShown.
Referenced by CQLayoutMainWindow::saveImage().
double CQGLNetworkPainter::fitToScreen | ( | ) |
Calculates the ratio that is needed to fit the diagram on the current viewport and sets this as the zoom factor. The new zoom factor is returned.
Definition at line 3163 of file CQGLNetworkPainter.cpp.
References getGraphMax(), getGraphMin(), CLPoint::getX(), CLPoint::getY(), max, min, setCurrentPosition(), setZoomFactor(), and zoom().
Referenced by CQGLViewport::fitToScreen().
C_FLOAT64 CQGLNetworkPainter::getCurrentPositionX | ( | ) | const |
Definition at line 3142 of file CQGLNetworkPainter.cpp.
References mCurrentPositionX.
Referenced by CQLayoutMainWindow::saveImage().
C_FLOAT64 CQGLNetworkPainter::getCurrentPositionY | ( | ) | const |
Definition at line 3147 of file CQGLNetworkPainter.cpp.
References mCurrentPositionY.
Referenced by CQLayoutMainWindow::saveImage().
size_t CQGLNetworkPainter::getCurrentStep | ( | ) | const |
Definition at line 2209 of file CQGLNetworkPainter.cpp.
References stepShown.
Referenced by CQLayoutMainWindow::saveImage().
CDataEntity * CQGLNetworkPainter::getDataSetAt | ( | size_t | stepNumber | ) |
Definition at line 2264 of file CQGLNetworkPainter.cpp.
References mDataSets.
Referenced by CQLayoutMainWindow::showStep().
|
inline |
Definition at line 126 of file CQGLNetworkPainter.h.
References mFontsize.
Referenced by FontChooser::FontChooser(), and CQLayoutMainWindow::getFontSize().
const CLPoint & CQGLNetworkPainter::getGraphMax | ( | ) |
Definition at line 562 of file CQGLNetworkPainter.cpp.
References mgraphMax.
Referenced by fitToScreen(), CQLayoutMainWindow::saveImage(), and CQGLViewport::updateScrollbars().
const CLPoint & CQGLNetworkPainter::getGraphMin | ( | ) |
Definition at line 556 of file CQGLNetworkPainter.cpp.
References mgraphMin.
Referenced by fitToScreen(), resetView(), CQLayoutMainWindow::saveImage(), CQGLViewport::slotHValueChanged(), CQGLViewport::slotVValueChanged(), and CQGLViewport::updateScrollbars().
QImage CQGLNetworkPainter::getImage | ( | ) |
Definition at line 2840 of file CQGLNetworkPainter.cpp.
|
private |
Definition at line 1614 of file CQGLNetworkPainter.cpp.
std::string CQGLNetworkPainter::getNameForNodeKey | ( | std::string | key | ) |
Definition at line 3037 of file CQGLNetworkPainter.cpp.
References nodeMap.
Referenced by CQLayoutMainWindow::insertValueTable(), and CQLayoutMainWindow::updateValueTable().
std::string CQGLNetworkPainter::getNodeNameEntry | ( | int | i | ) |
Definition at line 3048 of file CQGLNetworkPainter.cpp.
References viewerNodes.
Referenced by CQLayoutMainWindow::insertValueTable(), and CQLayoutMainWindow::updateValueTable().
|
inline |
Definition at line 104 of file CQGLNetworkPainter.h.
References viewerNodes.
size_t CQGLNetworkPainter::getNumberOfSteps | ( | ) | const |
Definition at line 2204 of file CQGLNetworkPainter.cpp.
References mDataSets.
Referenced by CQLayoutMainWindow::forwardAnimation(), CQLayoutMainWindow::loadData(), CQLayoutMainWindow::mapLabelsToCircles(), CQLayoutMainWindow::saveImage(), CQLayoutMainWindow::startAnimation(), CQLayoutMainWindow::stepForwardAnimation(), and triggerAnimationStep().
|
private |
Definition at line 2567 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CVisParameters::DEFAULT_NODE_SIZE, CLBoundingBox::getDimensions(), CLDimensions::getHeight(), CLBoundingBox::getPosition(), CLDimensions::getWidth(), CLPoint::getX(), CLPoint::getY(), CLPoint::setX(), and CLPoint::setY().
Referenced by adaptCurveForCircle().
|
private |
Definition at line 2552 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CVisParameters::DEFAULT_NODE_SIZE, CLBoundingBox::getDimensions(), CLDimensions::getHeight(), CLBoundingBox::getPosition(), CLDimensions::getWidth(), CLPoint::getX(), CLPoint::getY(), CLPoint::setX(), and CLPoint::setY().
|
private |
Definition at line 2490 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CLBoundingBox::getDimensions(), CLDimensions::getHeight(), CLBoundingBox::getPosition(), CLDimensions::getWidth(), CLPoint::getX(), CLPoint::getY(), CLPoint::setX(), and CLPoint::setY().
Referenced by adaptCurveForRectangles().
|
private |
Definition at line 1651 of file CQGLNetworkPainter.cpp.
References labelTextureMap, and RG_createTextureForText().
Referenced by RG_drawStringAt().
|
private |
Definition at line 1603 of file CQGLNetworkPainter.cpp.
Referenced by drawGraph().
C_FLOAT64 CQGLNetworkPainter::getZoomFactor | ( | ) | const |
Definition at line 3096 of file CQGLNetworkPainter.cpp.
References mCurrentZoom.
Referenced by CQLayoutMainWindow::saveImage(), CQGLViewport::slotHValueChanged(), CQGLViewport::slotVValueChanged(), and CQGLViewport::updateScrollbars().
|
protected |
This method creates all display lists and sets the clear color. This should be called whenever a color is changed.
Definition at line 134 of file CQGLNetworkPainter.cpp.
References COMPARTMENT_DEPTH, COMPARTMENT_FRAME_DEPTH, mAnimatedSpeciesColor, mBackgroundColor, mCirclePoints, mCompartmentColor, mConstantSpeciesColor, mDisplayLists, mFrameColor, mInanimatedSpeciesColor, MIRROR_X, mShadowColor, mSpeciesColor, mSpeciesReferenceColor, SPECIES_DEPTH, SPECIES_FRAME_DEPTH, and SPECIESREFERENCE_DEPTH.
Referenced by initializeGL().
|
protected |
Definition at line 519 of file CQGLNetworkPainter.cpp.
References initializeDisplayLists(), mIsInitialized, and textureNames.
|
protected |
Definition at line 2908 of file CQGLNetworkPainter.cpp.
References calculateCirclePoints(), createActions(), endOfAnimationReached(), FROM_UTF8, CVisParameters::INDIVIDUAL_SCALING, mAnimatedSpeciesColor, mBackgroundColor, mCirclePoints, mCompartmentColor, mCompartmentShadowXOffset, mCompartmentShadowYOffset, mConstantSpeciesColor, mCurrentPositionX, mCurrentPositionY, mCurrentZoom, mDataPresentP, mDrawShadows, mf, mFontname, mFontsize, mFontsizeDouble, mFrameColor, mgraphMax, mgraphMin, mInanimatedSpeciesColor, mLabelShape, mNumCirclePoints, mScaleMode, mShadowColor, mSpeciesColor, mSpeciesReferenceColor, mSpeciesShadowXOffset, mSpeciesShadowYOffset, mTextColor, pParentLayoutWindow, preserveMinLabelHeightP, RECTANGLE, regularTimer, stepChanged(), stepShown, and triggerAnimationStep().
Referenced by CQGLNetworkPainter().
bool CQGLNetworkPainter::isCircleMode | ( | ) |
Definition at line 2896 of file CQGLNetworkPainter.cpp.
References CIRCLE, and mLabelShape.
Referenced by CQGLViewport::isCircleMode(), and CQLayoutMainWindow::loadData().
void CQGLNetworkPainter::mapLabelsToCircles | ( | ) |
Definition at line 2522 of file CQGLNetworkPainter.cpp.
References adaptCurveForCircle(), CIRCLE, drawGraph(), mLabelShape, nodeArrowMap, nodeCurveMap, nodeMap, and viewerNodes.
Referenced by CQLayoutMainWindow::mapLabelsToCircles().
void CQGLNetworkPainter::mapLabelsToRectangles | ( | ) |
Definition at line 2462 of file CQGLNetworkPainter.cpp.
References adaptCurveForRectangles(), drawGraph(), mLabelShape, nodeArrowMap, nodeCurveMap, nodeMap, RECTANGLE, and viewerNodes.
Referenced by CQLayoutMainWindow::mapLabelsToRectangles().
|
protected |
void CQGLNetworkPainter::pauseAnimation | ( | ) |
Definition at line 3190 of file CQGLNetworkPainter.cpp.
References regularTimer.
Referenced by CQLayoutMainWindow::pauseAnimation().
|
private |
Definition at line 3056 of file CQGLNetworkPainter.cpp.
|
protected |
Definition at line 3032 of file CQGLNetworkPainter.cpp.
|
private |
Definition at line 3021 of file CQGLNetworkPainter.cpp.
References nodeMap.
|
private |
void CQGLNetworkPainter::rescaleDataSets | ( | CVisParameters::SCALING_MODE | scaleMode | ) |
Definition at line 1968 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CVisParameters::COLOR_MODE, CVisParameters::EPSILON, CQLayoutMainWindow::getMappingMode(), CSimSummaryInfo::getMaxForSpecies(), CQLayoutMainWindow::getMaxNodeSize(), CSimSummaryInfo::getMaxOverallConcentration(), CSimSummaryInfo::getMinForSpecies(), CQLayoutMainWindow::getMinNodeSize(), CSimSummaryInfo::getMinOverallConcentration(), CDataEntity::getOrigValueForSpecies(), CDataEntity::getValueForSpecies(), CVisParameters::INDIVIDUAL_SCALING, mDataSets, pParentLayoutWindow, pSummaryInfo, CDataEntity::putValueForSpecies(), setOfConstantMetabolites, and viewerNodes.
Referenced by CQLayoutMainWindow::setGlobalScaling(), and CQLayoutMainWindow::setIndividualScaling().
void CQGLNetworkPainter::rescaleDataSetsWithNewMinMax | ( | C_FLOAT64 | oldMin, |
C_FLOAT64 | oldMax, | ||
C_FLOAT64 | newMin, | ||
C_FLOAT64 | newMax, | ||
CVisParameters::SCALING_MODE | scaleMode | ||
) |
Definition at line 1825 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CVisParameters::EPSILON, CSimSummaryInfo::getMaxForSpecies(), CSimSummaryInfo::getMaxOverallConcentration(), CSimSummaryInfo::getMinForSpecies(), CSimSummaryInfo::getMinOverallConcentration(), CDataEntity::getOrigValueForSpecies(), CDataEntity::getValueForSpecies(), CVisParameters::INDIVIDUAL_SCALING, mDataSets, pParentLayoutWindow, pSummaryInfo, CDataEntity::putValueForSpecies(), setOfConstantMetabolites, and viewerNodes.
Referenced by CQLayoutMainWindow::setColorMode(), CQLayoutMainWindow::setMaxValue(), CQLayoutMainWindow::setMinAndMaxValue(), CQLayoutMainWindow::setMinValue(), CQLayoutMainWindow::setSizeMode(), and zoom().
void CQGLNetworkPainter::rescaleNode | ( | std::string | key, |
C_FLOAT64 | newMin, | ||
C_FLOAT64 | newMax, | ||
CVisParameters::SCALING_MODE | scaleMode | ||
) |
Definition at line 1892 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CVisParameters::EPSILON, CSimSummaryInfo::getMaxForSpecies(), CSimSummaryInfo::getMaxOverallConcentration(), CSimSummaryInfo::getMinForSpecies(), CSimSummaryInfo::getMinOverallConcentration(), CDataEntity::getOrigValueForSpecies(), CDataEntity::getValueForSpecies(), CVisParameters::INDIVIDUAL_SCALING, mDataSets, pParentLayoutWindow, pSummaryInfo, CDataEntity::putValueForSpecies(), and setOfConstantMetabolites.
Referenced by setItemAnimated().
void CQGLNetworkPainter::resetView | ( | ) |
Definition at line 3152 of file CQGLNetworkPainter.cpp.
References getGraphMin(), setCurrentPosition(), and setZoomFactor().
Referenced by CQGLViewport::resetView().
|
protected |
Definition at line 535 of file CQGLNetworkPainter.cpp.
References mCurrentPositionX, mCurrentPositionY, and mCurrentZoom.
Referenced by export_bitmap(), and update().
|
private |
Definition at line 1670 of file CQGLNetworkPainter.cpp.
References RGTextureSpec::textHeight, RGTextureSpec::textureData, RGTextureSpec::textureHeight, RGTextureSpec::textureWidth, RGTextureSpec::textWidth, and RGTextureSpec::textYOffset.
Referenced by createTextureForAllLabels(), and getTextureForText().
|
private |
Definition at line 1556 of file CQGLNetworkPainter.cpp.
References getTextureForText(), mFontname, mTextColor, RGTextureSpec::textHeight, RGTextureSpec::textureData, RGTextureSpec::textureHeight, textureNames, RGTextureSpec::textureWidth, RGTextureSpec::textWidth, and RGTextureSpec::textYOffset.
Referenced by drawColorLegend(), and drawGraph().
|
private |
Definition at line 1796 of file CQGLNetworkPainter.cpp.
Referenced by drawStringAt().
void CQGLNetworkPainter::runAnimation | ( | ) |
Definition at line 2214 of file CQGLNetworkPainter.cpp.
References C_INT16, CIRCLE, createDataSets(), CQLayoutMainWindow::getStepsPerSecond(), mDataSets, mLabelShape, pParentLayoutWindow, regularTimer, and CQLayoutMainWindow::setAnimationRunning().
Referenced by CQLayoutMainWindow::startAnimation().
Definition at line 1952 of file CQGLNetworkPainter.cpp.
References mDataSets, CDataEntity::putValueForSpecies(), and setOfConstantMetabolites.
Definition at line 1941 of file CQGLNetworkPainter.cpp.
References mDataSets, and CDataEntity::putValueForSpecies().
Referenced by setItemAnimated().
Definition at line 3101 of file CQGLNetworkPainter.cpp.
References mCurrentPositionX, mCurrentPositionY, and update().
Referenced by fitToScreen(), and resetView().
Definition at line 3124 of file CQGLNetworkPainter.cpp.
References mCurrentPositionX, and update().
Referenced by CQGLViewport::slotHValueChanged().
Definition at line 3133 of file CQGLNetworkPainter.cpp.
References mCurrentPositionY, and update().
Referenced by CQGLViewport::slotVValueChanged().
|
privateslot |
Definition at line 2708 of file CQGLNetworkPainter.cpp.
Referenced by createActions().
void CQGLNetworkPainter::setFontSizeForLabels | ( | unsigned int | fs | ) |
Definition at line 2823 of file CQGLNetworkPainter.cpp.
References createTextureForAllLabels(), drawGraph(), mFontsize, mFontsizeDouble, update(), and viewerLabels.
Referenced by FontChooser::changeFontSize(), and CQLayoutMainWindow::setFontSizeForLabels().
Definition at line 569 of file CQGLNetworkPainter.cpp.
References CLPoint::getX(), CLPoint::getY(), mgraphMax, mgraphMin, CLPoint::setX(), and CLPoint::setY().
Referenced by createGraph().
void CQGLNetworkPainter::setItemAnimated | ( | std::string | key, |
bool | animatedP | ||
) |
Definition at line 1808 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CQLayoutMainWindow::getCurrentStep(), CQLayoutMainWindow::getMaxNodeSize(), CQLayoutMainWindow::getMinNodeSize(), CQLayoutMainWindow::getScalingMode(), pParentLayoutWindow, rescaleNode(), setConstantNodeSizeForAllSteps(), setOfDisabledMetabolites, and showStep().
Referenced by CQLayoutMainWindow::addItemInAnimation(), and CQLayoutMainWindow::removeItemInAnimation().
Definition at line 2384 of file CQGLNetworkPainter.cpp.
References C_FLOAT64, CLLineSegment::getBase1(), CLLineSegment::getBase2(), CLLineSegment::getEnd(), CLCurve::getNumCurveSegments(), CLCurve::getSegmentAt(), CLLineSegment::getStart(), CLPoint::getX(), CLPoint::getY(), CGraphCurve::hasArrowP(), CLLineSegment::isBezier(), mCurrentZoom, nodeArrowMap, nodeCurveMap, nodeMap, CGraphCurve::setArrow(), and CLLineSegment::setEnd().
Referenced by showStep().
Definition at line 2374 of file CQGLNetworkPainter.cpp.
References nodeMap.
Referenced by showStep().
void CQGLNetworkPainter::setScaleMode | ( | CVisParameters::SCALING_MODE | scaleMode | ) |
Sets the scaling mode to either global or individual scaling.
Definition at line 3218 of file CQGLNetworkPainter.cpp.
References mScaleMode.
Referenced by CQLayoutMainWindow::setGlobalScaling(), and CQLayoutMainWindow::setIndividualScaling().
Definition at line 3083 of file CQGLNetworkPainter.cpp.
References mCurrentZoom, and zoom().
Referenced by fitToScreen(), resetView(), and CQGLViewport::setZoomFactor().
void CQGLNetworkPainter::showStep | ( | size_t | i | ) |
Definition at line 2276 of file CQGLNetworkPainter.cpp.
References CIRCLE, CVisParameters::COLOR_MODE, CVisParameters::DEFAULT_NODE_SIZE, drawGraph(), CVisParameters::EPSILON, CQLayoutMainWindow::getMappingMode(), CSimSummaryInfo::getMaxForSpecies(), CQLayoutMainWindow::getMaxNodeSize(), CSimSummaryInfo::getMaxOverallConcentration(), CSimSummaryInfo::getMinForSpecies(), CQLayoutMainWindow::getMinNodeSize(), CSimSummaryInfo::getMinOverallConcentration(), CDataEntity::getOrigValueForSpecies(), CVisParameters::INDIVIDUAL_SCALING, max, mDataSets, min, mLabelShape, mScaleMode, nodeMap, pParentLayoutWindow, pSummaryInfo, setNodeSize(), setNodeSizeWithoutChangingCurves(), setOfConstantMetabolites, setOfDisabledMetabolites, stepShown, and viewerNodes.
Referenced by CQLayoutMainWindow::backwardAnimation(), export_bitmap(), setItemAnimated(), and CQLayoutMainWindow::showStep().
|
signal |
Referenced by initializeGraphPainter(), and triggerAnimationStep().
|
protected |
Definition at line 2855 of file CQGLNetworkPainter.cpp.
|
slot |
Definition at line 2237 of file CQGLNetworkPainter.cpp.
References endOfAnimationReached(), CQLayoutMainWindow::getAnimationRunning(), getNumberOfSteps(), pParentLayoutWindow, regularTimer, stepChanged(), and stepShown.
Referenced by initializeGraphPainter().
void CQGLNetworkPainter::update | ( | ) |
Definition at line 3111 of file CQGLNetworkPainter.cpp.
References mIsInitialized, and resizeGL().