COPASI API
4.16.103
|
#include <CQGLLayoutViewer.h>
Public Slots | |
void | slotRevertCurve () |
void | updateWidget () |
Signals | |
void | documentChanged () |
void | singleCurveSelected (bool selected) |
Public Member Functions | |
void | change_style (const CLRenderInformationBase *pRenderInfo, bool defaultStyle=false) |
CQGLLayoutViewer (QWidget *pParent=0, Qt::WindowFlags f=0) | |
double | fitToScreen () |
CQGLLayoutPainter * | getPainter () |
const CQGLLayoutPainter * | getPainter () const |
void | restoreDeducedRoles () |
void | revertDeducedRoles () |
void | setZoomFactor (double zoom) |
void | update (const CCopasiDataModel *pDataModel, CLayout *pLayout, const CLRenderInformationBase *pRenderInfo, const QString &baseDir) |
virtual | ~CQGLLayoutViewer () |
Protected Slots | |
void | slotDocumentChanged () |
void | slotHValueChanged (int value) |
void | slotSingleCurveSelected (bool selected) |
void | slotVValueChanged (int value) |
Protected Member Functions | |
void | resetView () |
virtual void | resizeEvent (QResizeEvent *e) |
void | updateScrollbars () |
Protected Attributes | |
QScrollBar * | mpHorizontalScrollbar |
CQGLLayoutPainter * | mpLayoutPainter |
QScrollBar * | mpVerticalScrollbar |
This class is supposed to act as a sort of scrollview for a CQGLNetworkPainter.
Definition at line 20 of file CQGLLayoutViewer.h.
CQGLLayoutViewer::CQGLLayoutViewer | ( | QWidget * | pParent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
Definition at line 18 of file CQGLLayoutViewer.cpp.
References documentChanged(), mpHorizontalScrollbar, mpLayoutPainter, mpVerticalScrollbar, singleCurveSelected(), slotDocumentChanged(), slotHValueChanged(), slotSingleCurveSelected(), slotVValueChanged(), and TRUE.
|
virtual |
void CQGLLayoutViewer::change_style | ( | const CLRenderInformationBase * | pRenderInfo, |
bool | defaultStyle = false |
||
) |
The default style indicates that the passed in render information is a default style. The renderer uses this information to determine whether roles for species reference glyphs need to be deduced.
Definition at line 185 of file CQGLLayoutViewer.cpp.
References CQGLLayoutPainter::change_style(), and mpLayoutPainter.
Referenced by CQNewMainWindow::change_style(), and CQNewMainWindow::updateRenderer().
|
signal |
Referenced by CQGLLayoutViewer(), and slotDocumentChanged().
double CQGLLayoutViewer::fitToScreen | ( | ) |
Calculates the ratio that is needed to fit the diagram on the current viewport and sets this as the zoom factor. The methods returns the new zoom factor.
Calculates the ratio that is needed to fit the diagram on the current viewport and sets this as the zoom factor. The methods return the newly calculated zoom factor.
Definition at line 163 of file CQGLLayoutViewer.cpp.
References CQGLLayoutPainter::fitToScreen(), mpLayoutPainter, and updateScrollbars().
Referenced by CQNewMainWindow::slotFitToScreen().
CQGLLayoutPainter * CQGLLayoutViewer::getPainter | ( | ) |
Returns a pointer to the OpenGL painter.
Definition at line 220 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter.
Referenced by CQNewMainWindow::changeColorSlot(), CQNewMainWindow::CQNewMainWindow(), CQNewMainWindow::elementaryModeTriggeredSlot(), CQNewMainWindow::export_bitmap(), CQNewMainWindow::fogDensitySlot(), CQNewMainWindow::redrawNow(), CQNewMainWindow::slotCalculateDimensions(), CQNewMainWindow::slotScreenshot(), and CQNewMainWindow::toggleHighlightSlot().
const CQGLLayoutPainter * CQGLLayoutViewer::getPainter | ( | ) | const |
Returns a const pointer to the OpenGL painter.
Definition at line 228 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter.
|
protected |
Definition at line 150 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter, CQGLLayoutPainter::resetView(), and updateScrollbars().
|
protectedvirtual |
void CQGLLayoutViewer::restoreDeducedRoles | ( | ) |
Restores te deduced object roles after they have been temporarily reverted by a call to revertDeducedRoles.
void CQGLLayoutViewer::revertDeducedRoles | ( | ) |
This method tells the painter to temporarily revert the deduced object roles. The painter will however remember the rolls and a call to restoreDeducedRoles will restore them.
void CQGLLayoutViewer::setZoomFactor | ( | double | zoom | ) |
Sets the zoom factor on the network painter and updates the scrollbars.
Definition at line 58 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter, CQGLLayoutPainter::setZoomFactor(), CQGLLayoutPainter::update(), and updateScrollbars().
Referenced by CQNewMainWindow::slotFitToScreen(), CQNewMainWindow::slotResetView(), CQNewMainWindow::slotZoomChanged(), and CQNewMainWindow::slotZoomMenuItemActivated().
|
signal |
Referenced by CQGLLayoutViewer(), and slotSingleCurveSelected().
|
protectedslot |
This slot is called when the layout painter changes the document (layout).
Definition at line 194 of file CQGLLayoutViewer.cpp.
References documentChanged().
Referenced by CQGLLayoutViewer().
|
protectedslot |
Definition at line 143 of file CQGLLayoutViewer.cpp.
References CQGLLayoutPainter::getZoomFactor(), CQGLLayoutPainter::minX(), mpLayoutPainter, and CQGLLayoutPainter::setCurrentPositionX().
Referenced by CQGLLayoutViewer(), and updateScrollbars().
|
slot |
This slot is called when the user initiates the action to revert the currently selected curve.
Definition at line 212 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter, and CQGLLayoutPainter::revertCurve().
|
protectedslot |
This slot is called when the selection changes. The value determines whether a single curve is selected or not.
Definition at line 203 of file CQGLLayoutViewer.cpp.
References singleCurveSelected().
Referenced by CQGLLayoutViewer().
|
protectedslot |
Definition at line 136 of file CQGLLayoutViewer.cpp.
References CQGLLayoutPainter::getZoomFactor(), CQGLLayoutPainter::minY(), mpLayoutPainter, and CQGLLayoutPainter::setCurrentPositionY().
Referenced by CQGLLayoutViewer(), and updateScrollbars().
void CQGLLayoutViewer::update | ( | const CCopasiDataModel * | pDataModel, |
CLayout * | pLayout, | ||
const CLRenderInformationBase * | pRenderInfo, | ||
const QString & | baseDir | ||
) |
Definition at line 175 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter, CQGLLayoutPainter::update(), and updateScrollbars().
Referenced by CQNewMainWindow::updateRenderer().
|
protected |
Definition at line 65 of file CQGLLayoutViewer.cpp.
References CQGLLayoutPainter::getZoomFactor(), CQGLLayoutPainter::maxX(), CQGLLayoutPainter::maxY(), CQGLLayoutPainter::minX(), CQGLLayoutPainter::minY(), mpHorizontalScrollbar, mpLayoutPainter, mpVerticalScrollbar, CQGLLayoutPainter::setCurrentPositionX(), CQGLLayoutPainter::setCurrentPositionY(), slotHValueChanged(), and slotVValueChanged().
Referenced by fitToScreen(), resetView(), resizeEvent(), setZoomFactor(), and update().
|
slot |
Definition at line 170 of file CQGLLayoutViewer.cpp.
References mpLayoutPainter, and CQGLLayoutPainter::update().
|
protected |
Definition at line 26 of file CQGLLayoutViewer.h.
Referenced by CQGLLayoutViewer(), and updateScrollbars().
|
protected |
Definition at line 27 of file CQGLLayoutViewer.h.
Referenced by change_style(), CQGLLayoutViewer(), fitToScreen(), getPainter(), resetView(), setZoomFactor(), slotHValueChanged(), slotRevertCurve(), slotVValueChanged(), update(), updateScrollbars(), and updateWidget().
|
protected |
Definition at line 25 of file CQGLLayoutViewer.h.
Referenced by CQGLLayoutViewer(), and updateScrollbars().