Computer Assited Medical Intervention Tool Kit  version 4.0
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
LoadsMovie Class Reference

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...
 
LoadsManagermyLM
 the load manager More...
 
QString outputDirName
 the output directory name for making videos More...
 
QLineEdit * outputDirNameLineEdit
 the output dir name line edit More...
 
LoadsSimulationDriversimDriver
 the code core for the display of a loads More...
 
Ui::LoadsMovie ui
 the ui dialog designed in qtdesigner More...
 

Detailed Description

This dialog allows one to see the simulation It plays the impload, allowing the user to see the evolution of translations along time.

Constructor & Destructor Documentation

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.

Member Function Documentation

void LoadsMovie::chooseOutputDir ( )
virtualslot

References outputDirName, and outputDirNameLineEdit.

Referenced by makeVideo().

void LoadsMovie::defaultTMax ( )
virtualslot
void LoadsMovie::defaultTMin ( )
virtualslot
void LoadsMovie::doOneStep ( )
slot
void LoadsMovie::dtChanged ( )
virtualslot
void LoadsMovie::dtModified ( )
virtualslot

References ui.

Referenced by init().

double LoadsMovie::getTime ( ) const

get the actual time

References LoadsSimulationDriver::getTime(), and simDriver.

void LoadsMovie::init ( )
private
void LoadsMovie::initSlider ( )
private
void LoadsMovie::makeVideo ( )
virtualslot
void LoadsMovie::pause ( )
slot

Slot called when the button Pause is clicked.

References simDriver, and LoadsSimulationDriver::stopTimer().

Referenced by init().

void LoadsMovie::play ( )
slot

Slot called when the button Play is clicked.

References doOneStep(), LoadsSimulationDriver::isTimerActive(), simDriver, and LoadsSimulationDriver::startTimer().

Referenced by init().

void LoadsMovie::playOneStep ( )
virtualslot
void LoadsMovie::reset ( )
virtualslot
void LoadsMovie::rewind ( )
slot

Slot called when the button Rewind is clicked.

References LoadsSimulationDriver::rewind(), simDriver, and updateDisplay().

Referenced by init(), makeVideo(), and stop().

void LoadsMovie::stop ( )
slot

Slot called when the button Stop is clicked.

References rewind(), simDriver, and LoadsSimulationDriver::stopTimer().

Referenced by init().

void LoadsMovie::tChanged ( )
virtualslot
void LoadsMovie::tMaxChanged ( )
virtualslot
void LoadsMovie::tMaxModified ( )
virtualslot

References ui.

Referenced by init().

void LoadsMovie::tMinChanged ( )
virtualslot
void LoadsMovie::tMinModified ( )
virtualslot

References ui.

Referenced by init().

void LoadsMovie::tModified ( )
virtualslot

References ui.

Referenced by init().

void LoadsMovie::tSliderChanged ( int  val)
virtualslot

References tChanged(), and ui.

Referenced by init().

void LoadsMovie::updateDisplay ( bool  force)

update the display

Parameters
forceif 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().

Member Data Documentation

QColor LoadsMovie::bgColor
private

the initial bg color

Referenced by dtChanged(), LoadsMovie(), tChanged(), tMaxChanged(), and tMinChanged().

LoadsManager* LoadsMovie::myLM
private

the load manager

Referenced by init(), LoadsMovie(), and makeVideo().

QString LoadsMovie::outputDirName
private

the output directory name for making videos

Referenced by chooseOutputDir(), and makeVideo().

QLineEdit* LoadsMovie::outputDirNameLineEdit
private

the output dir name line edit

Referenced by chooseOutputDir(), and makeVideo().

LoadsSimulationDriver* LoadsMovie::simDriver
private
Ui::LoadsMovie LoadsMovie::ui
private

The documentation for this class was generated from the following files: