Computer Assited Medical Intervention Tool Kit  version 5.0
SofaWidget Class Reference

TODO Comment class here. More...

#include <SofaWidget.h>

+ Inheritance diagram for SofaWidget:
+ Collaboration diagram for SofaWidget:

Public Slots

void applyChanges ()
 slot called when apply changes is pressed More...
 
void runSofa ()
 slot called when runSofa button is pressed More...
 
void sofaExited ()
 slot called when sofa is finished More...
 

Public Member Functions

 SofaWidget (QWidget *parent=0, SofaSimulator *sofaSimulator=NULL)
 constructor More...
 
void writeScn (QString path)
 write text typed in the highlighted QTextEdit into a scn file More...
 
 ~SofaWidget ()
 destructor More...
 
- Public Member Functions inherited from SimulatorWidget
 SimulatorWidget (QWidget *parent=nullptr)
 constructor More...
 
 ~SimulatorWidget () override=default
 destructor More...
 

Private Attributes

std::string scnFile
 sofa scn file More...
 
std::string scnFileTemp
 temp copy of scn filr More...
 
SofaSimulatorsofaSimulator
 the sofa simulator More...
 
Ui::ui_SofaWidget ui
 the ui widget designed in qtdesigner More...
 
XmlHighlighterxmlHighlighter
 xml highlighter More...
 

Additional Inherited Members

- Signals inherited from SimulatorWidget
void reload ()
 

Detailed Description

TODO Comment class here.

Constructor & Destructor Documentation

◆ SofaWidget()

SofaWidget::SofaWidget ( QWidget *  parent = 0,
SofaSimulator sofaSimulator = NULL 
)

constructor

References applyChanges(), SofaSimulator::getScnFile(), runSofa(), scnFile, scnFileTemp, sofaSimulator, ui, and xmlHighlighter.

+ Here is the call graph for this function:

◆ ~SofaWidget()

SofaWidget::~SofaWidget ( )

destructor

References xmlHighlighter.

Member Function Documentation

◆ applyChanges

void SofaWidget::applyChanges ( )
slot

slot called when apply changes is pressed

References SimulatorWidget::reload(), scnFile, and writeScn().

Referenced by SofaWidget().

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

◆ runSofa

void SofaWidget::runSofa ( )
slot

slot called when runSofa button is pressed

References scnFileTemp, sofaExited(), and writeScn().

Referenced by SofaWidget().

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

◆ sofaExited

void SofaWidget::sofaExited ( )
slot

slot called when sofa is finished

References scnFileTemp.

Referenced by runSofa().

+ Here is the caller graph for this function:

◆ writeScn()

void SofaWidget::writeScn ( QString  path)

write text typed in the highlighted QTextEdit into a scn file

Parameters
pathfilename to use

References ui.

Referenced by applyChanges(), and runSofa().

+ Here is the caller graph for this function:

Member Data Documentation

◆ scnFile

std::string SofaWidget::scnFile
private

sofa scn file

Referenced by applyChanges(), and SofaWidget().

◆ scnFileTemp

std::string SofaWidget::scnFileTemp
private

temp copy of scn filr

Referenced by runSofa(), sofaExited(), and SofaWidget().

◆ sofaSimulator

SofaSimulator* SofaWidget::sofaSimulator
private

the sofa simulator

Referenced by SofaWidget().

◆ ui

Ui::ui_SofaWidget SofaWidget::ui
private

the ui widget designed in qtdesigner

Referenced by SofaWidget(), and writeScn().

◆ xmlHighlighter

XmlHighlighter* SofaWidget::xmlHighlighter
private

xml highlighter

Referenced by SofaWidget(), and ~SofaWidget().


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