COPASI API
4.16.103
|
#include <CQGLViewport.h>
Public Slots | |
void | updateWidget () |
Public Member Functions | |
CQGLViewport (QWidget *pParent=0, Qt::WFlags f=0) | |
void | createGraph (CLayout *lP) |
double | fitToScreen () |
const CQGLNetworkPainter * | getPainter () const |
CQGLNetworkPainter * | getPainter () |
bool | isCircleMode () const |
void | resetView () |
void | setZoomFactor (double zoom) |
virtual | ~CQGLViewport () |
Protected Slots | |
void | slotHValueChanged (int value) |
void | slotVValueChanged (int value) |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *e) |
void | updateScrollbars () |
Protected Attributes | |
QScrollBar * | mpHorizontalScrollbar |
CQGLNetworkPainter * | mpNetworkPainter |
QScrollBar * | mpVerticalScrollbar |
This class is supposed to act as a sort of scrollview for a CQGLNetworkPainter.
Definition at line 22 of file CQGLViewport.h.
CQGLViewport::CQGLViewport | ( | QWidget * | pParent = 0 , |
Qt::WFlags | f = 0 |
||
) |
Constructor.
Definition at line 31 of file CQGLViewport.cpp.
References mpHorizontalScrollbar, mpNetworkPainter, mpVerticalScrollbar, slotHValueChanged(), slotVValueChanged(), and TRUE.
|
virtual |
Pass the layout on to the network painters createGraph and set the scrollbar ranges.
Definition at line 76 of file CQGLViewport.cpp.
References CQGLNetworkPainter::createGraph(), mpNetworkPainter, and updateScrollbars().
Referenced by CQLayoutMainWindow::CQLayoutMainWindow(), CQLayoutMainWindow::loadSBMLFile(), and CQLayoutMainWindow::setLayout().
double CQGLViewport::fitToScreen | ( | ) |
Make the diagram fit the screen. Returns the new zoom factor.
Make the diagram fit the screen. Returns the new zoom value.
Definition at line 158 of file CQGLViewport.cpp.
References CQGLNetworkPainter::fitToScreen(), mpNetworkPainter, and updateScrollbars().
Referenced by CQLayoutMainWindow::slotFitToScreen().
const CQGLNetworkPainter * CQGLViewport::getPainter | ( | ) | const |
Definition at line 66 of file CQGLViewport.cpp.
References mpNetworkPainter.
Referenced by CQLayoutMainWindow::addItemInAnimation(), CQLayoutMainWindow::backwardAnimation(), CQLayoutMainWindow::forwardAnimation(), CQLayoutMainWindow::getFontSize(), CQLayoutMainWindow::insertValueTable(), CQLayoutMainWindow::loadData(), CQLayoutMainWindow::mapLabelsToCircles(), CQLayoutMainWindow::mapLabelsToRectangles(), CQLayoutMainWindow::pauseAnimation(), CQLayoutMainWindow::removeItemInAnimation(), CQLayoutMainWindow::saveImage(), CQLayoutMainWindow::setColorMode(), CQLayoutMainWindow::setFontSizeForLabels(), CQLayoutMainWindow::setGlobalScaling(), CQLayoutMainWindow::setIndividualScaling(), CQLayoutMainWindow::setMaxValue(), CQLayoutMainWindow::setMinAndMaxValue(), CQLayoutMainWindow::setMinValue(), CQLayoutMainWindow::setSizeMode(), CQLayoutMainWindow::showStep(), CQLayoutMainWindow::startAnimation(), CQLayoutMainWindow::stepForwardAnimation(), and CQLayoutMainWindow::updateValueTable().
CQGLNetworkPainter * CQGLViewport::getPainter | ( | ) |
bool CQGLViewport::isCircleMode | ( | ) | const |
Returns whether the layout window is in circle (animation mode) or not. This method only calls the corresponding method in the contained network painter.
Definition at line 170 of file CQGLViewport.cpp.
References CQGLNetworkPainter::isCircleMode(), and mpNetworkPainter.
Referenced by CQLayoutMainWindow::parameterTableValueChanged().
void CQGLViewport::resetView | ( | ) |
Definition at line 146 of file CQGLViewport.cpp.
References mpNetworkPainter, CQGLNetworkPainter::resetView(), and updateScrollbars().
Referenced by CQLayoutMainWindow::slotResetView().
|
protectedvirtual |
void CQGLViewport::setZoomFactor | ( | double | zoom | ) |
Sets the zoom factor on the network painter and updates the scrollbars.
Definition at line 82 of file CQGLViewport.cpp.
References mpNetworkPainter, CQGLNetworkPainter::setZoomFactor(), CQGLNetworkPainter::update(), and updateScrollbars().
Referenced by CQLayoutMainWindow::setZoomFactor().
|
protectedslot |
Definition at line 139 of file CQGLViewport.cpp.
References CQGLNetworkPainter::getGraphMin(), CLPoint::getX(), CQGLNetworkPainter::getZoomFactor(), mpNetworkPainter, and CQGLNetworkPainter::setCurrentPositionX().
Referenced by CQGLViewport().
|
protectedslot |
Definition at line 132 of file CQGLViewport.cpp.
References CQGLNetworkPainter::getGraphMin(), CLPoint::getY(), CQGLNetworkPainter::getZoomFactor(), mpNetworkPainter, and CQGLNetworkPainter::setCurrentPositionY().
Referenced by CQGLViewport().
|
protected |
Definition at line 90 of file CQGLViewport.cpp.
References CQGLNetworkPainter::getGraphMax(), CQGLNetworkPainter::getGraphMin(), CLPoint::getX(), CLPoint::getY(), CQGLNetworkPainter::getZoomFactor(), max, min, mpHorizontalScrollbar, mpNetworkPainter, mpVerticalScrollbar, and CQGLNetworkPainter::update().
Referenced by createGraph(), fitToScreen(), resetView(), resizeEvent(), and setZoomFactor().
|
slot |
Definition at line 165 of file CQGLViewport.cpp.
References mpNetworkPainter, and CQGLNetworkPainter::update().
Referenced by CQLayoutMainWindow::parameterTableValueChanged().
|
protected |
Definition at line 28 of file CQGLViewport.h.
Referenced by CQGLViewport(), and updateScrollbars().
|
protected |
Definition at line 29 of file CQGLViewport.h.
Referenced by CQGLViewport(), createGraph(), fitToScreen(), getPainter(), isCircleMode(), resetView(), setZoomFactor(), slotHValueChanged(), slotVValueChanged(), updateScrollbars(), and updateWidget().
|
protected |
Definition at line 27 of file CQGLViewport.h.
Referenced by CQGLViewport(), and updateScrollbars().