GUI for mitk::MedSAMTool.
More...
#include <QmitkMedSAMToolGUI.h>
GUI for mitk::MedSAMTool.
Definition at line 26 of file QmitkMedSAMToolGUI.h.
◆ QmitkMedSAMToolGUI()
QmitkMedSAMToolGUI::QmitkMedSAMToolGUI |
( |
| ) |
|
|
protected |
◆ ~QmitkMedSAMToolGUI()
QmitkMedSAMToolGUI::~QmitkMedSAMToolGUI |
( |
| ) |
|
|
protected |
◆ ActivateSAMDaemon()
bool QmitkMedSAMToolGUI::ActivateSAMDaemon |
( |
| ) |
|
Requests the tool class to spawn the SAM python daemon process. Waits until the daemon is started.
- Returns
- bool
◆ Clone()
Pointer QmitkMedSAMToolGUI::Clone |
( |
| ) |
const |
◆ EnableAll()
void QmitkMedSAMToolGUI::EnableAll |
( |
bool |
| ) |
|
Enable (or Disable) GUI elements. Currently, on the activate button is affected.
◆ InitializeUI()
void QmitkMedSAMToolGUI::InitializeUI |
( |
QBoxLayout * |
mainLayout | ) |
|
|
overrideprotectedvirtual |
This method is called by OnNewToolAssociated if the UI is initialized the first time to allow derived classes to introduce own UI code. Overwrite to change. The implementation should ensure that alle widgets needed for the tool UI are properly allocated. If one needs to eecute time (e.g. to connect events between the tool and the UI) each time the tool changes, override the functions ConnectNewTool() and DisconnectOldTool().
Reimplemented from QmitkSegWithPreviewToolGUIBase.
◆ mitkClassMacro()
◆ New()
static Pointer QmitkMedSAMToolGUI::New |
( |
| ) |
|
|
static |
◆ OnActivateBtnClicked
void QmitkMedSAMToolGUI::OnActivateBtnClicked |
( |
| ) |
|
|
protectedslot |
◆ OnPreferenceChangedEvent()
Function to listen to preference emitters.
◆ OnPreviewBtnClicked
void QmitkMedSAMToolGUI::OnPreviewBtnClicked |
( |
| ) |
|
|
protectedslot |
◆ OnResetPicksClicked
void QmitkMedSAMToolGUI::OnResetPicksClicked |
( |
| ) |
|
|
protectedslot |
◆ ShowErrorMessage()
void QmitkMedSAMToolGUI::ShowErrorMessage |
( |
const std::string & |
, |
|
|
QMessageBox::Icon |
= QMessageBox::Critical |
|
) |
| |
Creates a QMessage object and shows on screen.
◆ ShowProgressBar()
void QmitkMedSAMToolGUI::ShowProgressBar |
( |
bool |
| ) |
|
Enable (or Disable) progressbar on GUI.
◆ StatusMessageListener()
void QmitkMedSAMToolGUI::StatusMessageListener |
( |
const std::string & |
| ) |
|
|
protected |
Function to listen to tool class status emitters.
◆ ValidatePrefences()
bool QmitkMedSAMToolGUI::ValidatePrefences |
( |
| ) |
|
Checks if the preferences are correctly set by the user.
- Returns
- bool
◆ WriteErrorMessage()
void QmitkMedSAMToolGUI::WriteErrorMessage |
( |
const QString & |
| ) |
|
Writes any message in red on the tool pane.
◆ WriteStatusMessage()
void QmitkMedSAMToolGUI::WriteStatusMessage |
( |
const QString & |
| ) |
|
Writes any message in white on the tool pane.
The documentation for this class was generated from the following file: