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::LoadsMovie ( LoadsManager myLoadsManager,
QWidget *  parent = 0 
)

Default Constructor.

References bgColor, doOneStep(), LoadsManager::getLoads(), init(), myLM, simDriver, ui, and updateDisplay().

◆ ~LoadsMovie()

LoadsMovie::~LoadsMovie ( )

Destructor.

References simDriver.

Member Function Documentation

◆ chooseOutputDir

void LoadsMovie::chooseOutputDir ( )
virtualslot

References outputDirName, and outputDirNameLineEdit.

Referenced by makeVideo().

◆ defaultTMax

void LoadsMovie::defaultTMax ( )
virtualslot

◆ defaultTMin

void LoadsMovie::defaultTMin ( )
virtualslot

◆ doOneStep

void LoadsMovie::doOneStep ( )
slot

◆ dtChanged

void LoadsMovie::dtChanged ( )
virtualslot

◆ dtModified

void LoadsMovie::dtModified ( )
virtualslot

References ui.

Referenced by init().

◆ getTime()

double LoadsMovie::getTime ( ) const

get the actual time

References LoadsSimulationDriver::getTime(), and simDriver.

◆ init()

void LoadsMovie::init ( )
private

◆ initSlider()

void LoadsMovie::initSlider ( )
private

◆ makeVideo

void LoadsMovie::makeVideo ( )
virtualslot

◆ pause

void LoadsMovie::pause ( )
slot

Slot called when the button Pause is clicked.

References simDriver, and LoadsSimulationDriver::stopTimer().

Referenced by init().

◆ play

void LoadsMovie::play ( )
slot

Slot called when the button Play is clicked.

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

Referenced by init().

◆ playOneStep

void LoadsMovie::playOneStep ( )
virtualslot

◆ reset

void LoadsMovie::reset ( )
virtualslot

◆ rewind

void LoadsMovie::rewind ( )
slot

Slot called when the button Rewind is clicked.

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

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

◆ stop

void LoadsMovie::stop ( )
slot

Slot called when the button Stop is clicked.

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

Referenced by init().

◆ tChanged

void LoadsMovie::tChanged ( )
virtualslot

◆ tMaxChanged

void LoadsMovie::tMaxChanged ( )
virtualslot

◆ tMaxModified

void LoadsMovie::tMaxModified ( )
virtualslot

References ui.

Referenced by init().

◆ tMinChanged

void LoadsMovie::tMinChanged ( )
virtualslot

◆ tMinModified

void LoadsMovie::tMinModified ( )
virtualslot

References ui.

Referenced by init().

◆ tModified

void LoadsMovie::tModified ( )
virtualslot

References ui.

Referenced by init().

◆ tSliderChanged

void LoadsMovie::tSliderChanged ( int  val)
virtualslot

References tChanged(), and ui.

Referenced by init().

◆ updateDisplay()

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

◆ bgColor

QColor LoadsMovie::bgColor
private

the initial bg color

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

◆ myLM

LoadsManager* LoadsMovie::myLM
private

the load manager

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

◆ outputDirName

QString LoadsMovie::outputDirName
private

the output directory name for making videos

Referenced by chooseOutputDir(), and makeVideo().

◆ outputDirNameLineEdit

QLineEdit* LoadsMovie::outputDirNameLineEdit
private

the output dir name line edit

Referenced by chooseOutputDir(), and makeVideo().

◆ simDriver

LoadsSimulationDriver* LoadsMovie::simDriver
private

◆ ui

Ui::LoadsMovie LoadsMovie::ui
private

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