COPASI API
4.16.103
|
#include <CQAnimationWindow.h>
Public Slots | |
void | slotAutoLayout () |
Slots the auto layout. More... | |
void | slotEditSettings () |
void | slotExportImage () |
void | slotLayoutStateChanged (QSharedPointer< CLayoutState > state) |
void | slotRandomizeLayout () |
void | slotShowStep (int) |
void | slotStopLayout () |
void | slotSwitchAnimation () |
Public Member Functions | |
CQAnimationWindow (CLayout *layout, CCopasiDataModel *dataModel=NULL) | |
CQAnimationWindow () | |
virtual QMenu * | getWindowMenu () const |
void | setAnimation (CQCopasiAnimation *animation, CCopasiDataModel *dataModel) |
void | setScene (CQLayoutScene *scene, CCopasiDataModel *dataModel) |
virtual | ~CQAnimationWindow () |
![]() | |
void | addToMainWindow (CopasiUI3Window *window=NULL) |
CWindowInterface (QWidget *parent=NULL, Qt::WindowFlags flags=NULL) | |
void | removeFromMainWindow (CopasiUI3Window *window=NULL) |
virtual void | saveToFile (const QString &fileName) const |
virtual | ~CWindowInterface () |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *closeEvent) |
Protected Attributes | |
CQCopasiAnimation * | mAnimation |
CLayout * | mpCopy |
CQLayoutThread * | mpLayoutThread |
CCopasiDataModel * | mpModel |
CQLayoutScene * | mpScene |
QMenu * | mpWindowMenu |
Private Member Functions | |
void | init () |
void | toggleUI (bool isPlaying) |
Definition at line 25 of file CQAnimationWindow.h.
CQAnimationWindow::CQAnimationWindow | ( | CLayout * | layout, |
CCopasiDataModel * | dataModel = NULL |
||
) |
Definition at line 263 of file CQAnimationWindow.cpp.
References init(), and setScene().
CQAnimationWindow::CQAnimationWindow | ( | ) |
|
virtual |
Definition at line 331 of file CQAnimationWindow.cpp.
References mAnimation, mpCopy, mpLayoutThread, mpScene, pdelete, CWindowInterface::removeFromMainWindow(), and CQLayoutThread::terminateLayout().
|
protectedvirtual |
Definition at line 431 of file CQAnimationWindow.cpp.
References mpLayoutThread, and CQLayoutThread::stopLayout().
|
virtual |
Implements CWindowInterface.
Definition at line 390 of file CQAnimationWindow.cpp.
References mpWindowMenu.
|
private |
Definition at line 286 of file CQAnimationWindow.cpp.
References CQIconResource::copasi, CQIconResource::fileExport, CQLayoutThread::getParameterWindow(), CQIconResource::icon(), mpLayoutThread, mpWindowMenu, CQIconResource::play, CQIconResource::roll, slotLayoutStateChanged(), slotStopLayout(), and toggleUI().
Referenced by CQAnimationWindow().
void CQAnimationWindow::setAnimation | ( | CQCopasiAnimation * | animation, |
CCopasiDataModel * | dataModel | ||
) |
Definition at line 395 of file CQAnimationWindow.cpp.
References CQCopasiAnimation::getNumSteps(), CQCopasiAnimation::initialize(), mAnimation, mpScene, CQCopasiAnimation::removeFromScene(), and slotShowStep().
Referenced by setScene(), and slotSwitchAnimation().
void CQAnimationWindow::setScene | ( | CQLayoutScene * | scene, |
CCopasiDataModel * | dataModel | ||
) |
Definition at line 353 of file CQAnimationWindow.cpp.
References CQLayoutScene::getCurrentLayout(), mpModel, mpScene, pdelete, CQLayoutScene::recreate(), and setAnimation().
Referenced by CQAnimationWindow().
|
slot |
Slots the auto layout.
Definition at line 500 of file CQAnimationWindow.cpp.
References CQLayoutThread::createSpringLayout(), CQLayoutScene::getCurrentLayout(), mpCopy, mpLayoutThread, mpScene, CQLayoutThread::stopLayout(), CLayoutState::tagLayout(), and toggleUI().
Referenced by CQLayoutsWidget::slotBtnNewClicked().
|
slot |
Definition at line 437 of file CQAnimationWindow.cpp.
References CQAnimationSettingsEditor::initFrom(), mAnimation, and CQAnimationSettingsEditor::saveTo().
|
slot |
Definition at line 323 of file CQAnimationWindow.cpp.
|
slot |
Definition at line 477 of file CQAnimationWindow.cpp.
References CQLayoutScene::getCurrentLayout(), mpScene, and CQLayoutScene::recreate().
Referenced by init().
|
slot |
Definition at line 448 of file CQAnimationWindow.cpp.
References CQLayoutScene::getCurrentLayout(), mpLayoutThread, mpScene, CQLayoutThread::randomizeLayout(), CQLayoutThread::stopLayout(), and CLayoutState::tagLayout().
|
slot |
Definition at line 420 of file CQAnimationWindow.cpp.
References CQCopasiAnimation::applyToScene(), CQCopasiAnimation::getNumSteps(), mAnimation, and mpScene.
Referenced by setAnimation().
|
slot |
Definition at line 464 of file CQAnimationWindow.cpp.
References CQIconResource::icon(), mpCopy, and CQIconResource::play.
Referenced by init().
|
slot |
Definition at line 370 of file CQAnimationWindow.cpp.
References setAnimation().
|
private |
Definition at line 483 of file CQAnimationWindow.cpp.
References CQIconResource::icon(), mpLayoutThread, CQIconResource::pause, and CQLayoutThread::stopLayout().
Referenced by init(), and slotAutoLayout().
|
protected |
Definition at line 53 of file CQAnimationWindow.h.
Referenced by setAnimation(), slotEditSettings(), slotShowStep(), and ~CQAnimationWindow().
|
protected |
Definition at line 55 of file CQAnimationWindow.h.
Referenced by slotAutoLayout(), slotStopLayout(), and ~CQAnimationWindow().
|
protected |
Definition at line 54 of file CQAnimationWindow.h.
Referenced by closeEvent(), init(), slotAutoLayout(), slotRandomizeLayout(), toggleUI(), and ~CQAnimationWindow().
|
protected |
Definition at line 51 of file CQAnimationWindow.h.
Referenced by setScene().
|
protected |
Definition at line 50 of file CQAnimationWindow.h.
Referenced by setAnimation(), setScene(), slotAutoLayout(), slotLayoutStateChanged(), slotRandomizeLayout(), slotShowStep(), and ~CQAnimationWindow().
|
protected |
Definition at line 52 of file CQAnimationWindow.h.
Referenced by getWindowMenu(), and init().