![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
This dialog allows one to see the simulation It plays the impload, allowing the user to see the evolution of translations along time. More...
#include <LoadsMovie.h>
Inherits QDialog.
Public Slots | |
| virtual void | chooseOutputDir () |
| virtual void | defaultTMax () |
| virtual void | defaultTMin () |
| void | doOneStep () |
| increment t and update the display More... | |
| virtual void | dtChanged () |
| virtual void | dtModified () |
| virtual void | makeVideo () |
| void | pause () |
| Slot called when the button Pause is clicked. More... | |
| void | play () |
| Slot called when the button Play is clicked. More... | |
| virtual void | playOneStep () |
| virtual void | reset () |
| void | rewind () |
| Slot called when the button Rewind is clicked. More... | |
| void | stop () |
| Slot called when the button Stop is clicked. More... | |
| virtual void | tChanged () |
| virtual void | tMaxChanged () |
| virtual void | tMaxModified () |
| virtual void | tMinChanged () |
| virtual void | tMinModified () |
| virtual void | tModified () |
| virtual void | tSliderChanged (int) |
Public Member Functions | |
| double | getTime () const |
| get the actual time More... | |
| LoadsMovie (LoadsManager *myLoadsManager, QWidget *parent=0) | |
| Default Constructor. More... | |
| void | updateDisplay (bool force) |
| update the display More... | |
| ~LoadsMovie () | |
| Destructor. More... | |
Private Member Functions | |
| void | init () |
| init display More... | |
| void | initSlider () |
| change the slider range/value depending on tmin, tmax and dt More... | |
Private Attributes | |
| QColor | bgColor |
| the initial bg color More... | |
| LoadsManager * | myLM |
| the load manager More... | |
| QString | outputDirName |
| the output directory name for making videos More... | |
| QLineEdit * | outputDirNameLineEdit |
| the output dir name line edit More... | |
| LoadsSimulationDriver * | simDriver |
| the code core for the display of a loads More... | |
| Ui::LoadsMovie | ui |
| the ui dialog designed in qtdesigner More... | |
This dialog allows one to see the simulation It plays the impload, allowing the user to see the evolution of translations along time.
| LoadsMovie::LoadsMovie | ( | LoadsManager * | myLoadsManager, |
| QWidget * | parent = 0 |
||
| ) |
Default Constructor.
References bgColor, doOneStep(), LoadsManager::getLoads(), init(), myLM, simDriver, ui, and updateDisplay().
| LoadsMovie::~LoadsMovie | ( | ) |
Destructor.
References simDriver.
|
virtualslot |
References outputDirName, and outputDirNameLineEdit.
Referenced by makeVideo().
|
virtualslot |
References LoadsSimulationDriver::getTMax(), initSlider(), LoadsSimulationDriver::resetTMaxToDefault(), simDriver, and ui.
Referenced by init().
|
virtualslot |
References LoadsSimulationDriver::getTMin(), initSlider(), LoadsSimulationDriver::resetTMinToDefault(), simDriver, and ui.
Referenced by init().
|
slot |
increment t and update the display
References LoadsSimulationDriver::getDt(), LoadsSimulationDriver::getTime(), LoadsSimulationDriver::getTMax(), LoadsSimulationDriver::rewind(), LoadsSimulationDriver::setTime(), simDriver, LoadsSimulationDriver::stopTimer(), ui, and updateDisplay().
Referenced by LoadsMovie(), play(), and playOneStep().
|
virtualslot |
References bgColor, initSlider(), LoadsSimulationDriver::setDt(), LoadsSimulationDriver::setRefreshDt(), simDriver, and ui.
Referenced by init().
| double LoadsMovie::getTime | ( | ) | const |
get the actual time
References LoadsSimulationDriver::getTime(), and simDriver.
|
private |
init display
References defaultTMax(), defaultTMin(), dtChanged(), dtModified(), LoadsSimulationDriver::getDt(), LoadsManager::getLoads(), makeVideo(), myLM, pause(), play(), playOneStep(), reset(), rewind(), simDriver, stop(), tChanged(), tMaxChanged(), tMaxModified(), tMinChanged(), tMinModified(), tModified(), tSliderChanged(), and ui.
Referenced by LoadsMovie().
|
private |
change the slider range/value depending on tmin, tmax and dt
References LoadsSimulationDriver::getDt(), LoadsSimulationDriver::getTime(), LoadsSimulationDriver::getTMax(), LoadsSimulationDriver::getTMin(), simDriver, and ui.
Referenced by defaultTMax(), defaultTMin(), dtChanged(), tMaxChanged(), and tMinChanged().
|
virtualslot |
References chooseOutputDir(), LoadsSimulationDriver::getDt(), PhysicalModel::getName(), PMManagerDC::getPhysicalModel(), LoadsManager::getPMManagerDC(), LoadsSimulationDriver::getTime(), LoadsSimulationDriver::getTMax(), LoadsSimulationDriver::getTMin(), myLM, outputDirName, outputDirNameLineEdit, rewind(), LoadsSimulationDriver::setTime(), simDriver, and updateDisplay().
Referenced by init().
|
slot |
Slot called when the button Pause is clicked.
References simDriver, and LoadsSimulationDriver::stopTimer().
Referenced by init().
|
slot |
Slot called when the button Play is clicked.
References doOneStep(), LoadsSimulationDriver::isTimerActive(), simDriver, and LoadsSimulationDriver::startTimer().
Referenced by init().
|
virtualslot |
References doOneStep(), simDriver, and LoadsSimulationDriver::stopTimer().
Referenced by init().
|
virtualslot |
References LoadsSimulationDriver::resetPositions(), simDriver, and updateDisplay().
Referenced by init().
|
slot |
Slot called when the button Rewind is clicked.
References LoadsSimulationDriver::rewind(), simDriver, and updateDisplay().
Referenced by init(), makeVideo(), and stop().
|
slot |
Slot called when the button Stop is clicked.
References rewind(), simDriver, and LoadsSimulationDriver::stopTimer().
Referenced by init().
|
virtualslot |
References bgColor, LoadsSimulationDriver::setTime(), simDriver, ui, and updateDisplay().
Referenced by init(), and tSliderChanged().
|
virtualslot |
References bgColor, initSlider(), LoadsSimulationDriver::setTMax(), simDriver, and ui.
Referenced by init().
|
virtualslot |
References bgColor, initSlider(), LoadsSimulationDriver::setTMin(), simDriver, and ui.
Referenced by init().
|
virtualslot |
References tChanged(), and ui.
Referenced by init().
| void LoadsMovie::updateDisplay | ( | bool | force | ) |
update the display
| force | if true force display update independently from refresh dt (default is false) |
References LoadsSimulationDriver::getTime(), simDriver, ui, and LoadsSimulationDriver::updateDisplay().
Referenced by doOneStep(), LoadsMovie(), makeVideo(), reset(), rewind(), and tChanged().
|
private |
the initial bg color
Referenced by dtChanged(), LoadsMovie(), tChanged(), tMaxChanged(), and tMinChanged().
|
private |
the load manager
Referenced by init(), LoadsMovie(), and makeVideo().
|
private |
the output directory name for making videos
Referenced by chooseOutputDir(), and makeVideo().
|
private |
the output dir name line edit
Referenced by chooseOutputDir(), and makeVideo().
|
private |
the code core for the display of a loads
Referenced by defaultTMax(), defaultTMin(), doOneStep(), dtChanged(), getTime(), init(), initSlider(), LoadsMovie(), makeVideo(), pause(), play(), playOneStep(), reset(), rewind(), stop(), tChanged(), tMaxChanged(), tMinChanged(), updateDisplay(), and ~LoadsMovie().
|
private |
the ui dialog designed in qtdesigner
Referenced by defaultTMax(), defaultTMin(), doOneStep(), dtChanged(), dtModified(), init(), initSlider(), LoadsMovie(), tChanged(), tMaxChanged(), tMaxModified(), tMinChanged(), tMinModified(), tModified(), tSliderChanged(), and updateDisplay().
1.8.13