COPASI API
4.16.103
|
#include <CQLayoutThread.h>
Public Slots | |
void | terminateLayout () |
Signals | |
void | layoutFinished () |
void | layoutStateChanged (QSharedPointer< CLayoutState > newState) |
void | layoutUpdated () |
Public Member Functions | |
CQLayoutThread (QWidget *parent) | |
void | createSpringLayout (CLayout *layout, int numIntervals=1000, int updateWait=100) |
void | finalize () |
QDockWidget * | getParameterWindow () |
bool | pause () |
void | randomizeLayout (CLayout *layout) |
void | resume () |
void | stopLayout () |
virtual | ~CQLayoutThread () |
Protected Member Functions | |
virtual void | run () |
Protected Attributes | |
int | mNumIterations |
bool | mPause |
QWaitCondition | mPauseCond |
CCopasiSpringLayout * | mpCurrent |
CLayout * | mpCurrentLayout |
CQSpringLayoutParameterWindow * | mpParameterWindow |
bool | mStopLayout |
QMutex | mSync |
int | mUpdateWait |
Definition at line 25 of file CQLayoutThread.h.
CQLayoutThread::CQLayoutThread | ( | QWidget * | parent | ) |
Definition at line 20 of file CQLayoutThread.cpp.
References CopasiUI3Window::getMainWindow(), mpParameterWindow, and terminateLayout().
|
virtual |
Definition at line 70 of file CQLayoutThread.cpp.
References mpCurrent, mpParameterWindow, and pdelete.
void CQLayoutThread::createSpringLayout | ( | CLayout * | layout, |
int | numIntervals = 1000 , |
||
int | updateWait = 100 |
||
) |
Run the layout algorithm on the given layout
Definition at line 88 of file CQLayoutThread.cpp.
References mNumIterations, mpCurrentLayout, and mUpdateWait.
Referenced by CQNewMainWindow::createSpringLayout(), and CQAnimationWindow::slotAutoLayout().
Definition at line 96 of file CQLayoutThread.cpp.
References CCopasiSpringLayout::finalizeState(), and mpCurrent.
Referenced by run().
QDockWidget * CQLayoutThread::getParameterWindow | ( | ) |
Definition at line 65 of file CQLayoutThread.cpp.
References mpParameterWindow.
Referenced by CQNewMainWindow::CQNewMainWindow(), and CQAnimationWindow::init().
|
signal |
Referenced by randomizeLayout(), and run().
|
signal |
Referenced by randomizeLayout(), and run().
bool CQLayoutThread::pause | ( | ) |
Definition at line 53 of file CQLayoutThread.cpp.
Definition at line 76 of file CQLayoutThread.cpp.
References CQSpringLayoutParameterWindow::getLayoutParameters(), layoutStateChanged(), layoutUpdated(), mpParameterWindow, and CCopasiSpringLayout::randomize().
Referenced by CQNewMainWindow::randomizeLayout(), and CQAnimationWindow::slotRandomizeLayout().
void CQLayoutThread::resume | ( | ) |
|
protectedvirtual |
Definition at line 109 of file CQLayoutThread.cpp.
References CCopasiSpringLayout::createVariables(), finalize(), CQSpringLayoutParameterWindow::getLayoutParameters(), layoutFinished(), layoutStateChanged(), layoutUpdated(), mNumIterations, mPause, mPauseCond, mpCurrent, mpCurrentLayout, mpParameterWindow, mStopLayout, mSync, mUpdateWait, and CLayoutEngine::step().
void CQLayoutThread::stopLayout | ( | ) |
Definition at line 103 of file CQLayoutThread.cpp.
References mPauseCond, and mStopLayout.
Referenced by CQAnimationWindow::closeEvent(), CQNewMainWindow::randomizeLayout(), CQAnimationWindow::slotAutoLayout(), CQAnimationWindow::slotRandomizeLayout(), CQNewMainWindow::slotStopClicked(), and CQAnimationWindow::toggleUI().
|
slot |
Definition at line 35 of file CQLayoutThread.cpp.
References mPauseCond, mStopLayout, and mSync.
Referenced by CQLayoutThread(), CQAnimationWindow::~CQAnimationWindow(), and CQNewMainWindow::~CQNewMainWindow().
|
protected |
Number of Iterations the layout algorithm will run
Definition at line 73 of file CQLayoutThread.h.
Referenced by createSpringLayout(), and run().
|
protected |
Definition at line 88 of file CQLayoutThread.h.
|
protected |
Definition at line 87 of file CQLayoutThread.h.
Referenced by resume(), run(), stopLayout(), and terminateLayout().
|
protected |
Definition at line 89 of file CQLayoutThread.h.
Referenced by finalize(), run(), and ~CQLayoutThread().
|
protected |
The current layout
Definition at line 68 of file CQLayoutThread.h.
Referenced by createSpringLayout(), and run().
|
protected |
The parameter window
Definition at line 63 of file CQLayoutThread.h.
Referenced by CQLayoutThread(), getParameterWindow(), randomizeLayout(), run(), and ~CQLayoutThread().
|
protected |
boolean indicating whether the layout algorithm should stop
Definition at line 83 of file CQLayoutThread.h.
Referenced by run(), stopLayout(), and terminateLayout().
|
protected |
Definition at line 86 of file CQLayoutThread.h.
Referenced by pause(), resume(), run(), and terminateLayout().
|
protected |
Number of msecs to wait between updates, use 0 to disable updates
Definition at line 78 of file CQLayoutThread.h.
Referenced by createSpringLayout(), and run().