Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef QmitkTotalSegmentatorToolGUI_h_Included
14 #define QmitkTotalSegmentatorToolGUI_h_Included
19 #include "ui_QmitkTotalSegmentatorGUIControls.h"
21 #include <QMessageBox>
23 #include <QStandardPaths>
40 const QString baseDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QDir::separator()
41 + qApp->organizationName() + QDir::separator())
58 itkFactorylessNewMacro(Self);
66 void OnPreviewBtnClicked();
71 void OnPythonPathChanged(
const QString &);
76 std::pair<QString, QString> OnSystemPythonChanged(
const QString &);
81 void OnInstallBtnClicked();
86 void OnOverrideChecked(
int);
91 void OnClearInstall();
103 void EnableAll(
bool);
109 void AutoParsePythonPaths();
116 bool IsTotalSegmentatorInstalled(
const QString &);
121 void ShowErrorMessage(
const std::string &, QMessageBox::Icon = QMessageBox::Critical);
126 void WriteStatusMessage(
const QString &);
131 void WriteErrorMessage(
const QString &);
145 unsigned int FetchSelectedGPUFromUI()
const;
153 QString GetPythonPathFromUI(
const QString &)
const;
163 bool m_FirstPreviewComputation =
true;
164 bool m_IsInstalled =
false;
167 const std::string WARNING_TOTALSEG_NOT_FOUND =
168 "TotalSegmentator is not detected in the selected python environment.Please select a valid "
169 "python environment or install TotalSegmentator.";
170 const QStringList VALID_TASKS = {
177 "pleural_pericard_effusion"
#define MITKSEGMENTATIONUI_EXPORT
Abstract Class to Setup a python virtual environment and pip install required packages....
Class to load and save GPU information for further validation.