pySimBlocks.gui.addons.sofa.sofa_dialog

class pySimBlocks.gui.addons.sofa.sofa_dialog.SofaDialog(sofa_service: SofaService, parent=None)[source]

Bases: QDialog

Configure and launch SOFA integration actions from the GUI.

sofa_service

Service handling SOFA detection, export, and execution.

build_form(layout)[source]

Build the SOFA configuration form.

Parameters:

layout – Parent layout receiving the form.

apply()[source]

Validate and apply the SOFA executable path.

Returns:

True if the SOFA path is valid, otherwise False.

ok()[source]

Apply the current values and close the dialog.

run()[source]

Run the current SOFA scene through the configured service.

export()[source]

Export the SOFA controller for the current project.

staticMetaObject = PySide6.QtCore.QMetaObject("SofaDialog" inherits "QDialog": )
class pySimBlocks.gui.addons.sofa.sofa_dialog.LogDialog(title: str, content: str, parent=None)[source]

Bases: QDialog

Display execution logs in a read-only dialog.

text

Read-only text area showing the log content.

staticMetaObject = PySide6.QtCore.QMetaObject("LogDialog" inherits "QDialog": )