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

TODO Comment class here. More...

#include <MonitoringDialog.h>

Inherits QDialog.

Public Slots

void browseLml ()
 Slot called when Browse Lml file is clicked. More...
 
void browseMmlIn ()
 Slot called when Browse MmlIn file is clicked. More...
 
void browsePml ()
 Slot called when Browse Pml file is clicked. More...
 
void dtModified ()
 Slot called after dt editing. More...
 
void pause ()
 do one step of simulation More...
 
void refreshModified ()
 Slot called after refresh editing. More...
 
void rewind ()
 Slot called when the button Rewind is clicked. More...
 
void saveCsv ()
 Slot called when save as csv file is clicked. More...
 
void saveMmlIn ()
 Slot called when save MmlIn file is clicked. More...
 
void saveMmlOut ()
 Slot called when save MmlOut file 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...
 

Signals

void monitorsChanged ()
 emitted More...
 

Public Member Functions

QString getMmlInFileName ()
 get MmlIn file name More...
 
QTableWidget * getMonitorsTableWidget ()
 get the monitors table More...
 
void init ()
 initialize dialog More...
 
 MonitoringDialog (MonitoringGuiManager *guiManager, QWidget *parent=nullptr)
 Default Constructor. More...
 
void updateAll ()
 update all tabs More...
 
void updateMonitors ()
 update monitors tab More...
 
void updateSimulation ()
 update simulation tab More...
 
void updateSimulatorWidget ()
 update simulator specific widget More...
 
void updateStoppingCriteria ()
 update stopping criteria tab More...
 
 ~MonitoringDialog () override
 Destructor. More...
 

Private Member Functions

QTreeWidgetItem * createItem (StoppingCriterion *sc, QTreeWidgetItem *parent)
 
void enableButtons (bool enable)
 set the rew,play,pause,step buttons enable or not More...
 

Private Attributes

QColor bgColor
 the initial bg color More...
 
MonitoringGuiManagerguiManager
 the monitoring manager More...
 
Ui::MonitoringDialog * ui
 the ui dialog designed in qtdesigner More...
 

Detailed Description

TODO Comment class here.

Constructor & Destructor Documentation

◆ MonitoringDialog()

MonitoringDialog::MonitoringDialog ( MonitoringGuiManager guiManager,
QWidget *  parent = nullptr 
)

◆ ~MonitoringDialog()

MonitoringDialog::~MonitoringDialog ( )
override

Destructor.

References ui.

Member Function Documentation

◆ browseLml

void MonitoringDialog::browseLml ( )
slot

Slot called when Browse Lml file is clicked.

References guiManager, MonitoringGuiManager::reload(), ui, and MonitoringGuiManager::updateLml().

Referenced by MonitoringDialog().

◆ browseMmlIn

void MonitoringDialog::browseMmlIn ( )
slot

Slot called when Browse MmlIn file is clicked.

References guiManager, MonitoringGuiManager::loadMmlInFile(), and ui.

Referenced by MonitoringDialog().

◆ browsePml

void MonitoringDialog::browsePml ( )
slot

Slot called when Browse Pml file is clicked.

References guiManager, MonitoringGuiManager::reload(), ui, and MonitoringGuiManager::updatePml().

Referenced by MonitoringDialog().

◆ createItem()

QTreeWidgetItem * MonitoringDialog::createItem ( StoppingCriterion sc,
QTreeWidgetItem *  parent 
)
private

◆ dtModified

void MonitoringDialog::dtModified ( )
slot

Slot called after dt editing.

References guiManager, ui, and MonitoringGuiManager::updateDt().

Referenced by MonitoringDialog().

◆ enableButtons()

void MonitoringDialog::enableButtons ( bool  enable)
private

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

References MonitoringGuiManager::getMonitoringManager(), guiManager, MonitoringManager::isLmlPresent(), MonitoringManager::isPmlPresent(), and ui.

Referenced by updateAll().

◆ getMmlInFileName()

QString MonitoringDialog::getMmlInFileName ( )

get MmlIn file name

References ui.

◆ getMonitorsTableWidget()

QTableWidget * MonitoringDialog::getMonitorsTableWidget ( )

◆ init()

void MonitoringDialog::init ( )

initialize dialog

References updateAll().

Referenced by MonitoringGuiManager::MonitoringGuiManager().

◆ monitorsChanged

void MonitoringDialog::monitorsChanged ( )
signal

emitted

Referenced by updateMonitors().

◆ pause

void MonitoringDialog::pause ( )
slot

do one step of simulation

Returns
true only if the step was doneSlot called when the button Pause is clicked

References guiManager, and MonitoringGuiManager::pause().

Referenced by MonitoringDialog().

◆ refreshModified

void MonitoringDialog::refreshModified ( )
slot

Slot called after refresh editing.

References guiManager, ui, and MonitoringGuiManager::updateRefresh().

Referenced by MonitoringDialog().

◆ rewind

void MonitoringDialog::rewind ( )
slot

Slot called when the button Rewind is clicked.

References guiManager, and MonitoringGuiManager::rewind().

Referenced by MonitoringDialog().

◆ saveCsv

void MonitoringDialog::saveCsv ( )
slot

Slot called when save as csv file is clicked.

References guiManager, and MonitoringGuiManager::saveCsvFile().

Referenced by MonitoringDialog().

◆ saveMmlIn

void MonitoringDialog::saveMmlIn ( )
slot

Slot called when save MmlIn file is clicked.

References guiManager, and MonitoringGuiManager::saveMmlInFile().

Referenced by MonitoringDialog().

◆ saveMmlOut

void MonitoringDialog::saveMmlOut ( )
slot

Slot called when save MmlOut file is clicked.

References guiManager, and MonitoringGuiManager::saveMmlOutFile().

Referenced by MonitoringDialog().

◆ simulate

void MonitoringDialog::simulate ( )
slot

Slot called when the button Play is clicked.

References guiManager, and MonitoringGuiManager::simulate().

Referenced by MonitoringDialog().

◆ simulateOneStep

void MonitoringDialog::simulateOneStep ( )
slot

Slot called when the next step is clicked.

References guiManager, and MonitoringGuiManager::simulateOneStep().

Referenced by MonitoringDialog().

◆ updateAll()

void MonitoringDialog::updateAll ( )

◆ updateMonitors()

void MonitoringDialog::updateMonitors ( )

◆ updateSimulation()

void MonitoringDialog::updateSimulation ( )

◆ updateSimulatorWidget()

void MonitoringDialog::updateSimulatorWidget ( )

update simulator specific widget

References MonitoringGuiManager::getMonitoringManager(), MonitoringManager::getSimulator(), guiManager, and ui.

Referenced by updateAll().

◆ updateStoppingCriteria()

void MonitoringDialog::updateStoppingCriteria ( )

Member Data Documentation

◆ bgColor

QColor MonitoringDialog::bgColor
private

the initial bg color

◆ guiManager

MonitoringGuiManager* MonitoringDialog::guiManager
private

◆ ui

Ui::MonitoringDialog* MonitoringDialog::ui
private

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