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

TODO Comment class here. More...

#include <SofaWidget.h>

Inherits SimulatorWidget.

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 
)

◆ ~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().

◆ runSofa

void SofaWidget::runSofa ( )
slot

slot called when runSofa button is pressed

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

Referenced by SofaWidget().

◆ sofaExited

void SofaWidget::sofaExited ( )
slot

slot called when sofa is finished

References scnFileTemp.

Referenced by runSofa().

◆ 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().

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: