Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
LoadsSimulation Class Reference

This dialog allows to run a simulation using a simulation motor. More...

#include <LoadsSimulation.h>

+ Inheritance diagram for LoadsSimulation:

Public Slots

virtual void addAnimationMotorAddon ()
 adding a animation motor add-on (in the 2nd tab) More...
 
virtual void chooseOutputDir ()
 
bool doOneStep ()
 do one step of simulation More...
 
virtual void dtChanged ()
 
virtual void dtModified ()
 
void init ()
 init display More...
 
void pause ()
 Slot called when the button Pause is clicked. More...
 
virtual void refreshDtChanged ()
 
virtual void refreshDtModified ()
 
virtual void reject ()
 dialog is closed More...
 
void rewind ()
 Slot called when the button Rewind is clicked. More...
 
void simulate ()
 Slot called when the button Play is clicked. More...
 
void simulateOneStep ()
 Slot called when the next step is clicked. More...
 
virtual void tMaxChanged ()
 
virtual void tMaxModified ()
 
virtual void videoToggled (bool)
 

Public Member Functions

void addTab (QWidget *)
 add a tabulation (will be remove when the current animation motor add-on will be removed More...
 
double getTime () const
 get the actual time More...
 
 LoadsSimulation (LoadsManager *myLoadsManager, QWidget *parent=0)
 Default Constructor. More...
 
void updateDisplay (bool force)
 update the display (the boolean indicates if the scene3d has to be refresh or not) More...
 
void updateTime (bool getMotorTime=false)
 update time display More...
 
virtual ~LoadsSimulation ()
 Destructor. More...
 

Private Member Functions

void enableButtons (bool enable)
 set the rew,play,pause,step buttons enable or not More...
 
void loadAddon (QString)
 load a animation motor add-on using a filename (shared lib location) More...
 

Private Attributes

QString addonFilename
 
QColor bgColor
 the initial bg color More...
 
double elapsed
 total elapsed time (to calculate simulator frequency) More...
 
unsigned int imageId
 the number of screenshots More...
 
double iterationCount
 total nr of iteration computed (to calculate simulator frequency) More...
 
LoadsManagermyLM
 the load manager More...
 
AnimationMotorAddonmyMotor
 the motor More...
 
bool output
 if there is no output directory we can't make video More...
 
QString outputDir
 the output directory name for making videos More...
 
QString outputDirName
 the output directory name for making videos More...
 
QAction * pauseToolbar
 
QAction * playOneStepToolbar
 
QAction * playToolbar
 
QAction * rewindToolbar
 toolbar buttons More...
 
LoadsSimulationDriversimDriver
 the code core for the display of a loads More...
 
QToolBar * simulationToolBar
 the tool bar More...
 
QLineEdit * tLineEditToolbar
 toolbar t line edit More...
 
Ui::AnimationMotorDialog ui
 the ui dialog designed in qtdesigner More...
 
bool video
 record video or not? More...
 

Detailed Description

This dialog allows to run a simulation using a simulation motor.

It plays the impload, allowing the user to see the evolution of translations along time.

Constructor & Destructor Documentation

LoadsSimulation::LoadsSimulation ( LoadsManager myLoadsManager,
QWidget *  parent = 0 
)

Default Constructor.

virtual LoadsSimulation::~LoadsSimulation ( )
virtual

Destructor.

Member Function Documentation

virtual void LoadsSimulation::addAnimationMotorAddon ( )
virtualslot

adding a animation motor add-on (in the 2nd tab)

void LoadsSimulation::addTab ( QWidget *  )

add a tabulation (will be remove when the current animation motor add-on will be removed

virtual void LoadsSimulation::chooseOutputDir ( )
virtualslot
bool LoadsSimulation::doOneStep ( )
slot

do one step of simulation

Returns
true only if the step was done (it happens that it can not be done if the timer is too fast, so it might return false sometimes)
virtual void LoadsSimulation::dtChanged ( )
virtualslot
virtual void LoadsSimulation::dtModified ( )
virtualslot
void LoadsSimulation::enableButtons ( bool  enable)
private

set the rew,play,pause,step buttons enable or not

double LoadsSimulation::getTime ( ) const

get the actual time

void LoadsSimulation::init ( )
slot

init display

void LoadsSimulation::loadAddon ( QString  )
private

load a animation motor add-on using a filename (shared lib location)

void LoadsSimulation::pause ( )
slot

Slot called when the button Pause is clicked.

virtual void LoadsSimulation::refreshDtChanged ( )
virtualslot
virtual void LoadsSimulation::refreshDtModified ( )
virtualslot
virtual void LoadsSimulation::reject ( )
virtualslot

dialog is closed

void LoadsSimulation::rewind ( )
slot

Slot called when the button Rewind is clicked.

void LoadsSimulation::simulate ( )
slot

Slot called when the button Play is clicked.

void LoadsSimulation::simulateOneStep ( )
slot

Slot called when the next step is clicked.

virtual void LoadsSimulation::tMaxChanged ( )
virtualslot
virtual void LoadsSimulation::tMaxModified ( )
virtualslot
void LoadsSimulation::updateDisplay ( bool  force)

update the display (the boolean indicates if the scene3d has to be refresh or not)

Parameters
forceif true force display update independantly from refresh dt (default is false)
void LoadsSimulation::updateTime ( bool  getMotorTime = false)

update time display

Parameters
getMotorTimeif force is true, then the time taken by the method is not the simulation driver time, but the animation motor add-on time.
virtual void LoadsSimulation::videoToggled ( bool  )
virtualslot

Member Data Documentation

QString LoadsSimulation::addonFilename
private
QColor LoadsSimulation::bgColor
private

the initial bg color

double LoadsSimulation::elapsed
private

total elapsed time (to calculate simulator frequency)

unsigned int LoadsSimulation::imageId
private

the number of screenshots

double LoadsSimulation::iterationCount
private

total nr of iteration computed (to calculate simulator frequency)

LoadsManager* LoadsSimulation::myLM
private

the load manager

AnimationMotorAddon* LoadsSimulation::myMotor
private

the motor

bool LoadsSimulation::output
private

if there is no output directory we can't make video

QString LoadsSimulation::outputDir
private

the output directory name for making videos

QString LoadsSimulation::outputDirName
private

the output directory name for making videos

QAction* LoadsSimulation::pauseToolbar
private
QAction* LoadsSimulation::playOneStepToolbar
private
QAction* LoadsSimulation::playToolbar
private
QAction* LoadsSimulation::rewindToolbar
private

toolbar buttons

LoadsSimulationDriver* LoadsSimulation::simDriver
private

the code core for the display of a loads

QToolBar* LoadsSimulation::simulationToolBar
private

the tool bar

QLineEdit* LoadsSimulation::tLineEditToolbar
private

toolbar t line edit

Ui::AnimationMotorDialog LoadsSimulation::ui
private

the ui dialog designed in qtdesigner

bool LoadsSimulation::video
private

record video or not?


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