Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
MonitoringGuiManager Class Reference

A GUI to manipulate mml documents. More...

#include <MonitoringGuiManager.h>

+ Inheritance diagram for MonitoringGuiManager:
+ Collaboration diagram for MonitoringGuiManager:

Public Slots

bool doOneStep ()
 do one step of simulation
 
void reload ()
 reload simulation with current parameters
 

Signals

void changed ()
 emitted when one step of simulation is done, there was changes, so maybe there are some display to update
 
void reconnectPml ()
 

Public Member Functions

MonitoringDialoggetDialog ()
 get dialog
 
MonitoringDrivergetDriver ()
 get driver
 
MonitoringManagergetMonitoringManager ()
 get Monitoring Manager
 
bool loadMmlInFile (QString fileName)
 Load a MMLIn file.
 
 MonitoringGuiManager ()
 constructor
 
void pause ()
 pause simulation
 
void rewind ()
 rewind simulation
 
bool saveCsvFile (QString fileName)
 Save csv file.
 
bool saveMmlInFile (QString fileName)
 Save MMLIn file.
 
bool saveMmlOutFile (QString fileName)
 Save MMLout file.
 
void simulate ()
 do simulation lopp
 
void simulateOneStep ()
 do one step of simulation
 
void updateDt (double dt)
 update dt
 
void updateLml (QString fileName)
 update lml
 
void updatePml (QString fileName)
 update pml
 
void updateRefresh (double refresh)
 update refresh
 
 ~MonitoringGuiManager () override
 destructor
 

Detailed Description

A GUI to manipulate mml documents.

Constructor & Destructor Documentation

◆ MonitoringGuiManager()

MonitoringGuiManager::MonitoringGuiManager ( )

constructor

References MonitoringDialog::init(), and MonitoringDriver::init().

+ Here is the call graph for this function:

◆ ~MonitoringGuiManager()

MonitoringGuiManager::~MonitoringGuiManager ( )
override

destructor

Member Function Documentation

◆ changed

void MonitoringGuiManager::changed ( )
signal

emitted when one step of simulation is done, there was changes, so maybe there are some display to update

Referenced by doOneStep(), and rewind().

+ Here is the caller graph for this function:

◆ doOneStep

bool MonitoringGuiManager::doOneStep ( )
slot

do one step of simulation

Returns
true only if the step was done

References changed(), MonitoringManager::checkStop(), MonitoringManager::doMove(), MonitoringManager::getCurrentTime(), MonitoringManager::getRefresh(), MonitoringDriver::stopTimer(), and MonitoringDialog::updateSimulation().

Referenced by simulate(), and simulateOneStep().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDialog()

MonitoringDialog * MonitoringGuiManager::getDialog ( )

◆ getDriver()

MonitoringDriver * MonitoringGuiManager::getDriver ( )

get driver

Referenced by MonitoringDialog::MonitoringDialog().

+ Here is the caller graph for this function:

◆ getMonitoringManager()

MonitoringManager * MonitoringGuiManager::getMonitoringManager ( )

◆ loadMmlInFile()

bool MonitoringGuiManager::loadMmlInFile ( QString  fileName)

Load a MMLIn file.

References MonitoringManagerFactory::createManager(), MonitoringManager::init(), and MonitoringDialog::updateAll().

Referenced by MonitoringDialog::browseMmlIn(), and MMLComponent::MMLComponent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pause()

void MonitoringGuiManager::pause ( )

pause simulation

References MonitoringDriver::stopTimer().

Referenced by MonitoringDialog::pause(), reload(), and rewind().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reconnectPml

void MonitoringGuiManager::reconnectPml ( )
signal

Referenced by reload().

+ Here is the caller graph for this function:

◆ reload

void MonitoringGuiManager::reload ( )
slot

reload simulation with current parameters

References pause(), reconnectPml(), MonitoringManager::reload(), and MonitoringDialog::updateAll().

Referenced by MonitoringDialog::browseLml(), and MonitoringDialog::browsePml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rewind()

void MonitoringGuiManager::rewind ( )

rewind simulation

References changed(), pause(), MonitoringManager::rewind(), and MonitoringDialog::updateSimulation().

Referenced by MonitoringDialog::rewind().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveCsvFile()

bool MonitoringGuiManager::saveCsvFile ( QString  fileName)

Save csv file.

References MonitoringManager::writeCsv().

Referenced by MonitoringDialog::saveCsv().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveMmlInFile()

bool MonitoringGuiManager::saveMmlInFile ( QString  fileName)

Save MMLIn file.

References MonitoringManager::saveMmlIn().

Referenced by MMLComponent::saveMML(), and MonitoringDialog::saveMmlIn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveMmlOutFile()

bool MonitoringGuiManager::saveMmlOutFile ( QString  fileName)

Save MMLout file.

References MonitoringManager::writeOutput().

Referenced by MonitoringDialog::saveMmlOut().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ simulate()

void MonitoringGuiManager::simulate ( )

do simulation lopp

References doOneStep(), MonitoringDriver::isTimerActive(), and MonitoringDriver::startTimer().

Referenced by MonitoringDialog::simulate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ simulateOneStep()

void MonitoringGuiManager::simulateOneStep ( )

do one step of simulation

References MonitoringManager::checkStop(), and doOneStep().

Referenced by MonitoringDialog::simulateOneStep().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateDt()

void MonitoringGuiManager::updateDt ( double  dt)

update dt

References MonitoringManager::setDt().

Referenced by MonitoringDialog::dtModified().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateLml()

void MonitoringGuiManager::updateLml ( QString  fileName)

update lml

References MonitoringManager::setLmlFileName().

Referenced by MonitoringDialog::browseLml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePml()

void MonitoringGuiManager::updatePml ( QString  fileName)

update pml

References MonitoringManager::setPmlFileName().

Referenced by MonitoringDialog::browsePml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateRefresh()

void MonitoringGuiManager::updateRefresh ( double  refresh)

update refresh

References MonitoringManager::setRefresh().

Referenced by MonitoringDialog::refreshModified().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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