Medical Imaging Interaction Toolkit
2024.06.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>
38 QString(
"setuptools")};
41 const QString baseDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QDir::separator()
42 + qApp->organizationName() + QDir::separator())
59 itkFactorylessNewMacro(Self);
67 void OnPreviewBtnClicked();
72 void OnPythonPathChanged(
const QString &);
77 std::pair<QString, QString> OnSystemPythonChanged(
const QString &);
82 void OnInstallBtnClicked();
87 void OnOverrideChecked(
int);
92 void OnClearInstall();
104 void EnableAll(
bool);
110 void AutoParsePythonPaths();
117 bool IsTotalSegmentatorInstalled(
const QString &);
122 void ShowErrorMessage(
const std::string &, QMessageBox::Icon = QMessageBox::Critical);
127 void WriteStatusMessage(
const QString &);
132 void WriteErrorMessage(
const QString &);
146 unsigned int FetchSelectedGPUFromUI()
const;
154 QString GetPythonPathFromUI(
const QString &)
const;
164 bool m_FirstPreviewComputation =
true;
165 bool m_IsInstalled =
false;
168 const std::string WARNING_TOTALSEG_NOT_FOUND =
169 "TotalSegmentator is not detected in the selected python environment.Please select a valid "
170 "python environment or install TotalSegmentator.";
171 const QStringList VALID_TASKS = {
179 "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.