Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNewSegmentationDialog Class Reference

Dialog for QmitkInteractiveSegmentation. More...

#include <QmitkNewSegmentationDialog.h>

Inheritance diagram for QmitkNewSegmentationDialog:
Collaboration diagram for QmitkNewSegmentationDialog:

Public Slots

void setPrompt (const QString &prompt)
 
void setSegmentationName (const QString &name)
 

Public Member Functions

 QmitkNewSegmentationDialog (QWidget *parent=nullptr)
 
virtual ~QmitkNewSegmentationDialog ()
 
const QString GetSegmentationName ()
 
const char * GetOrganType ()
 
mitk::Color GetColor ()
 
void SetSuggestionList (QStringList organColorList)
 

Protected Slots

void onAcceptClicked ()
 
void onNewOrganNameChanged (const QString &)
 
void onColorBtnClicked ()
 
void onColorChange (const QString &completedWord)
 

Protected Attributes

QLabel * lblPrompt
 
Q3ListBox * lstOrgans
 
QLineEdit * edtName
 
QPushButton * btnColor
 
QPushButton * btnOk
 
QLineEdit * edtNewOrgan
 
QString selectedOrgan
 
bool newOrganEntry
 
QColor m_Color
 
QCompleter * completer
 
QString m_SegmentationName
 
QStringList organList
 
QList< QColor > colorList
 

Detailed Description

Dialog for QmitkInteractiveSegmentation.

This dialog is used to ask a user about the type of a newly created segmentation and a name for it.

Warning
Will not create a new organ type in the OrganTypeProperty. Client has to do that.

Last contribution by

Author
maleike

.

Definition at line 46 of file QmitkNewSegmentationDialog.h.

Constructor & Destructor Documentation

QmitkNewSegmentationDialog::QmitkNewSegmentationDialog ( QWidget *  parent = nullptr)
QmitkNewSegmentationDialog::~QmitkNewSegmentationDialog ( )
virtual

Definition at line 88 of file QmitkNewSegmentationDialog.cpp.

Member Function Documentation

mitk::Color QmitkNewSegmentationDialog::GetColor ( )

Definition at line 143 of file QmitkNewSegmentationDialog.cpp.

References m_Color.

const char * QmitkNewSegmentationDialog::GetOrganType ( )

Definition at line 103 of file QmitkNewSegmentationDialog.cpp.

References selectedOrgan.

const QString QmitkNewSegmentationDialog::GetSegmentationName ( )

Definition at line 98 of file QmitkNewSegmentationDialog.cpp.

References m_SegmentationName.

void QmitkNewSegmentationDialog::onAcceptClicked ( )
protectedslot

Definition at line 92 of file QmitkNewSegmentationDialog.cpp.

References edtName, and m_SegmentationName.

Referenced by QmitkNewSegmentationDialog().

void QmitkNewSegmentationDialog::onColorBtnClicked ( )
protectedslot

Definition at line 119 of file QmitkNewSegmentationDialog.cpp.

References btnColor, and m_Color.

Referenced by QmitkNewSegmentationDialog().

void QmitkNewSegmentationDialog::onColorChange ( const QString &  completedWord)
protectedslot

Definition at line 179 of file QmitkNewSegmentationDialog.cpp.

References btnColor, colorList, m_Color, and organList.

Referenced by QmitkNewSegmentationDialog().

void QmitkNewSegmentationDialog::onNewOrganNameChanged ( const QString &  newText)
protectedslot

Definition at line 108 of file QmitkNewSegmentationDialog.cpp.

References btnOk, selectedOrgan, and setSegmentationName().

void QmitkNewSegmentationDialog::setPrompt ( const QString &  prompt)
slot

Definition at line 132 of file QmitkNewSegmentationDialog.cpp.

References lblPrompt.

void QmitkNewSegmentationDialog::setSegmentationName ( const QString &  name)
slot

Definition at line 137 of file QmitkNewSegmentationDialog.cpp.

References edtName, and m_SegmentationName.

Referenced by onNewOrganNameChanged().

void QmitkNewSegmentationDialog::SetSuggestionList ( QStringList  organColorList)

Definition at line 161 of file QmitkNewSegmentationDialog.cpp.

References colorList, completer, and organList.

Member Data Documentation

QPushButton* QmitkNewSegmentationDialog::btnColor
protected
QPushButton* QmitkNewSegmentationDialog::btnOk
protected
QList<QColor> QmitkNewSegmentationDialog::colorList
protected

Definition at line 96 of file QmitkNewSegmentationDialog.h.

Referenced by onColorChange(), and SetSuggestionList().

QCompleter* QmitkNewSegmentationDialog::completer
protected

Definition at line 91 of file QmitkNewSegmentationDialog.h.

Referenced by QmitkNewSegmentationDialog(), and SetSuggestionList().

QLineEdit* QmitkNewSegmentationDialog::edtName
protected
QLineEdit* QmitkNewSegmentationDialog::edtNewOrgan
protected

Definition at line 83 of file QmitkNewSegmentationDialog.h.

QLabel* QmitkNewSegmentationDialog::lblPrompt
protected

Definition at line 76 of file QmitkNewSegmentationDialog.h.

Referenced by QmitkNewSegmentationDialog(), and setPrompt().

Q3ListBox* QmitkNewSegmentationDialog::lstOrgans
protected

Definition at line 77 of file QmitkNewSegmentationDialog.h.

QColor QmitkNewSegmentationDialog::m_Color
protected

Definition at line 89 of file QmitkNewSegmentationDialog.h.

Referenced by GetColor(), onColorBtnClicked(), and onColorChange().

QString QmitkNewSegmentationDialog::m_SegmentationName
protected
bool QmitkNewSegmentationDialog::newOrganEntry
protected

Definition at line 87 of file QmitkNewSegmentationDialog.h.

QStringList QmitkNewSegmentationDialog::organList
protected

Definition at line 95 of file QmitkNewSegmentationDialog.h.

Referenced by onColorChange(), and SetSuggestionList().

QString QmitkNewSegmentationDialog::selectedOrgan
protected

Definition at line 85 of file QmitkNewSegmentationDialog.h.

Referenced by GetOrganType(), and onNewOrganNameChanged().


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