Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkSegmentAnythingPreferencePage Class Reference

#include <QmitkSegmentAnythingPreferencePage.h>

Inheritance diagram for QmitkSegmentAnythingPreferencePage:
Collaboration diagram for QmitkSegmentAnythingPreferencePage:

Public Member Functions

 QmitkSegmentAnythingPreferencePage ()
 
 ~QmitkSegmentAnythingPreferencePage () override
 
void Init (berry::IWorkbench::Pointer workbench) override
 
void CreateQtControl (QWidget *parent) override
 
QWidget * GetQtControl () const override
 
bool PerformOk () override
 
void PerformCancel () override
 
void Update () override
 
- Public Member Functions inherited from berry::IQtPreferencePage
 berryObjectMacro (berry::IQtPreferencePage)
 
- Public Member Functions inherited from berry::IPreferencePage
 berryObjectMacro (berry::IPreferencePage)
 
 ~IPreferencePage () override
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Protected Member Functions

void AutoParsePythonPaths ()
 Searches and parses paths of python virtual enviroments from predefined lookout locations. More...
 
QString GetPythonPathFromUI (const QString &) const
 Get the virtual env path from UI combobox removing any extra special characters. More...
 
void SetGPUInfo ()
 Adds GPU information to the gpu combo box. In case, there aren't any GPUs avaialble, the combo box will be rendered editable. More...
 
int FetchSelectedGPUFromUI () const
 Returns GPU id of the selected GPU from the Combo box. More...
 
void WriteStatusMessage (const QString &)
 
void WriteErrorMessage (const QString &)
 
- Protected Member Functions inherited from berry::IQtPreferencePage
void CreateControl (void *parent) override
 
void * GetControl () const override
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 

Additional Inherited Members

- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

Definition at line 46 of file QmitkSegmentAnythingPreferencePage.h.

Constructor & Destructor Documentation

◆ QmitkSegmentAnythingPreferencePage()

QmitkSegmentAnythingPreferencePage::QmitkSegmentAnythingPreferencePage ( )

◆ ~QmitkSegmentAnythingPreferencePage()

QmitkSegmentAnythingPreferencePage::~QmitkSegmentAnythingPreferencePage ( )
override

Member Function Documentation

◆ AutoParsePythonPaths()

void QmitkSegmentAnythingPreferencePage::AutoParsePythonPaths ( )
protected

Searches and parses paths of python virtual enviroments from predefined lookout locations.

◆ CreateQtControl()

void QmitkSegmentAnythingPreferencePage::CreateQtControl ( QWidget *  parent)
overridevirtual

◆ FetchSelectedGPUFromUI()

int QmitkSegmentAnythingPreferencePage::FetchSelectedGPUFromUI ( ) const
protected

Returns GPU id of the selected GPU from the Combo box.

Returns
int

◆ GetPythonPathFromUI()

QString QmitkSegmentAnythingPreferencePage::GetPythonPathFromUI ( const QString &  ) const
protected

Get the virtual env path from UI combobox removing any extra special characters.

Returns
QString

◆ GetQtControl()

QWidget* QmitkSegmentAnythingPreferencePage::GetQtControl ( ) const
overridevirtual

◆ Init()

void QmitkSegmentAnythingPreferencePage::Init ( berry::IWorkbench::Pointer  workbench)
overridevirtual

Initializes this preference page for the given workbench.

This method is called automatically as the preference page is being created and initialized. Clients must not call this method.

Parameters
workbenchthe workbench

Implements berry::IPreferencePage.

◆ PerformCancel()

void QmitkSegmentAnythingPreferencePage::PerformCancel ( )
overridevirtual

Invoked when the Cancel button was clicked in the preferences dialog

Implements berry::IPreferencePage.

◆ PerformOk()

bool QmitkSegmentAnythingPreferencePage::PerformOk ( )
overridevirtual

Invoked when the OK button was clicked in the preferences dialog

Implements berry::IPreferencePage.

◆ SetGPUInfo()

void QmitkSegmentAnythingPreferencePage::SetGPUInfo ( )
protected

Adds GPU information to the gpu combo box. In case, there aren't any GPUs avaialble, the combo box will be rendered editable.

◆ Update()

void QmitkSegmentAnythingPreferencePage::Update ( )
overridevirtual

Invoked when the user performed an import. As the values of the preferences may have changed you should read all values again from the preferences service.

Implements berry::IPreferencePage.

◆ WriteErrorMessage()

void QmitkSegmentAnythingPreferencePage::WriteErrorMessage ( const QString &  )
protected

◆ WriteStatusMessage()

void QmitkSegmentAnythingPreferencePage::WriteStatusMessage ( const QString &  )
protected

The documentation for this class was generated from the following file: