Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Classes | Properties | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
qSlicerTerminologyNavigatorWidget Class Reference

Qt widget for browsing a terminology dictionary. DICOM properties of the selected entry can also be set if enabled. More...

#include <Modules/Loadable/Terminologies/Widgets/qSlicerTerminologyNavigatorWidget.h>

Inheritance diagram for qSlicerTerminologyNavigatorWidget:
Inheritance graph
[legend]
Collaboration diagram for qSlicerTerminologyNavigatorWidget:
Collaboration graph
[legend]

Classes

class  TerminologyInfoBundle
 

Properties

bool anatomicRegionSectionVisible
 
bool overrideSectionVisible
 

Public Slots

void setAnatomicRegionSectionVisible (bool)
 Show/hide anatomic region section section. More...
 
void setOverrideSectionVisible (bool)
 Show/hide name and color override section. More...
 
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...
 

Signals

void selectionValidityChanged (bool)
 Emitted when selection becomes valid (true argument) or invalid (false argument) More...
 
void typeDoubleClicked ()
 Emitted when type is double clicked. It can be interpreted as having made a selection. More...
 
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

bool anatomicRegionSectionVisible () const
 Get whether anatomic region section are visible. More...
 
QString nameFromCurrentTerminology ()
 Generate name for current terminology. More...
 
bool overrideSectionVisible () const
 Get whether name and color override section is visible. More...
 
 qSlicerTerminologyNavigatorWidget (QWidget *parent=nullptr)
 Constructor. More...
 
QColor recommendedColorFromCurrentTerminology ()
 Get recommended color from type (or type modifier if any) of the current terminology in the widget. More...
 
Q_INVOKABLE bool setTerminologyEntry (vtkSlicerTerminologyEntry *entry)
 
void setTerminologyInfo (TerminologyInfoBundle &terminologyInfo)
 Set selection to widget: terminology and meta-data (name, color, auto-generated flags) More...
 
Q_INVOKABLE bool terminologyEntry (vtkSlicerTerminologyEntry *entry)
 
void terminologyInfo (TerminologyInfoBundle &terminologyInfo)
 
 ~qSlicerTerminologyNavigatorWidget () override
 Destructor. More...
 
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~qMRMLWidget () override
 

Static Public Member Functions

static Q_INVOKABLE QString nameFromTerminology (vtkSlicerTerminologyEntry *entry)
 Generate name for given terminology. More...
 
static Q_INVOKABLE QColor recommendedColorFromTerminology (vtkSlicerTerminologyEntry *entry)
 Get recommended color from type (or type modifier if any) of the given terminology entry. More...
 
- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE QPixmap pixmapFromIcon (const QIcon &icon)
 
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
 
static Q_INVOKABLE void preInitializeApplication ()
 

Protected Slots

void anatomicalRegionExpandButtonDown ()
 
void anatomicalRegionExpandButtonUp ()
 
void onAnatomicContextSelectionChanged (int)
 
void onCategorySearchTextChanged (QString)
 
void onCategorySelectionChanged ()
 
void onColorChanged (QColor)
 
void onLoadAnatomicContextClicked ()
 
void onLoadTerminologyClicked ()
 
void onLogicModified ()
 
void onNameChanged (QString)
 
void onRegionModifierSelectionChanged (int)
 
void onRegionSearchTextChanged (QString)
 
void onRegionSelected (QTableWidgetItem *, QTableWidgetItem *)
 
void onResetColorClicked ()
 
void onResetNameClicked ()
 
void onTerminologySelectionChanged (int)
 
void onTypeCellDoubleClicked (int, int)
 
void onTypeModifierSelectionChanged (int)
 
void onTypeSearchTextChanged (QString)
 
void onTypeSelected (QTableWidgetItem *, QTableWidgetItem *)
 

Protected Member Functions

void copyContextToUserDirectory (QString filePath)
 Copy terminology or anatomic context file to user folder. More...
 
void populateAnatomicContextComboBox ()
 Populate anatomic region context combobox based on current selection. More...
 
void populateCategoryTable ()
 Populate category table based on selected terminology and category search term. More...
 
void populateRegionModifierComboBox ()
 Populate region modifier combobox based on current selection. More...
 
void populateRegionTable ()
 Populate region table based on selected anatomic region context and type search term. More...
 
void populateTerminologyComboBox ()
 Populate terminology combobox based on current selection. More...
 
void populateTypeModifierComboBox ()
 Populate type modifier combobox based on current selection. More...
 
void populateTypeTable ()
 Populate type table based on selected category and type search term. More...
 
void setCurrentAnatomicContext (QString contextName)
 Set current anatomic context to widget. More...
 
bool setCurrentCategory (vtkSlicerTerminologyCategory *category)
 
bool setCurrentRegion (vtkSlicerTerminologyType *region)
 
bool setCurrentRegionModifier (vtkSlicerTerminologyType *modifier)
 
void setCurrentTerminology (QString terminologyName)
 Set current terminology to widget. More...
 
bool setCurrentType (vtkSlicerTerminologyType *type)
 
bool setCurrentTypeModifier (vtkSlicerTerminologyType *modifier)
 
void updateWidgetFromCurrentCategory ()
 Update widget UI based on the current category selection. More...
 

Protected Attributes

QScopedPointer< qSlicerTerminologyNavigatorWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Additional Inherited Members

- Public Types inherited from qMRMLWidget
typedef QWidget Superclass
 

Detailed Description

Qt widget for browsing a terminology dictionary. DICOM properties of the selected entry can also be set if enabled.

Definition at line 49 of file qSlicerTerminologyNavigatorWidget.h.

Property Documentation

◆ anatomicRegionSectionVisible

bool qSlicerTerminologyNavigatorWidget::anatomicRegionSectionVisible
readwrite

Definition at line 54 of file qSlicerTerminologyNavigatorWidget.h.

◆ overrideSectionVisible

bool qSlicerTerminologyNavigatorWidget::overrideSectionVisible
readwrite

Definition at line 55 of file qSlicerTerminologyNavigatorWidget.h.

Constructor & Destructor Documentation

◆ qSlicerTerminologyNavigatorWidget()

qSlicerTerminologyNavigatorWidget::qSlicerTerminologyNavigatorWidget ( QWidget *  parent = nullptr)
explicit

Constructor.

◆ ~qSlicerTerminologyNavigatorWidget()

qSlicerTerminologyNavigatorWidget::~qSlicerTerminologyNavigatorWidget ( )
override

Destructor.

Member Function Documentation

◆ anatomicalRegionExpandButtonDown

void qSlicerTerminologyNavigatorWidget::anatomicalRegionExpandButtonDown ( )
protectedslot

◆ anatomicalRegionExpandButtonUp

void qSlicerTerminologyNavigatorWidget::anatomicalRegionExpandButtonUp ( )
protectedslot

◆ anatomicRegionSectionVisible()

bool qSlicerTerminologyNavigatorWidget::anatomicRegionSectionVisible ( ) const

Get whether anatomic region section are visible.

◆ copyContextToUserDirectory()

void qSlicerTerminologyNavigatorWidget::copyContextToUserDirectory ( QString  filePath)
protected

Copy terminology or anatomic context file to user folder.

◆ nameFromCurrentTerminology()

QString qSlicerTerminologyNavigatorWidget::nameFromCurrentTerminology ( )

Generate name for current terminology.

◆ nameFromTerminology()

static Q_INVOKABLE QString qSlicerTerminologyNavigatorWidget::nameFromTerminology ( vtkSlicerTerminologyEntry entry)
static

Generate name for given terminology.

◆ onAnatomicContextSelectionChanged

void qSlicerTerminologyNavigatorWidget::onAnatomicContextSelectionChanged ( int  )
protectedslot

◆ onCategorySearchTextChanged

void qSlicerTerminologyNavigatorWidget::onCategorySearchTextChanged ( QString  )
protectedslot

◆ onCategorySelectionChanged

void qSlicerTerminologyNavigatorWidget::onCategorySelectionChanged ( )
protectedslot

◆ onColorChanged

void qSlicerTerminologyNavigatorWidget::onColorChanged ( QColor  )
protectedslot

◆ onLoadAnatomicContextClicked

void qSlicerTerminologyNavigatorWidget::onLoadAnatomicContextClicked ( )
protectedslot

◆ onLoadTerminologyClicked

void qSlicerTerminologyNavigatorWidget::onLoadTerminologyClicked ( )
protectedslot

◆ onLogicModified

void qSlicerTerminologyNavigatorWidget::onLogicModified ( )
protectedslot

◆ onNameChanged

void qSlicerTerminologyNavigatorWidget::onNameChanged ( QString  )
protectedslot

◆ onRegionModifierSelectionChanged

void qSlicerTerminologyNavigatorWidget::onRegionModifierSelectionChanged ( int  )
protectedslot

◆ onRegionSearchTextChanged

void qSlicerTerminologyNavigatorWidget::onRegionSearchTextChanged ( QString  )
protectedslot

◆ onRegionSelected

void qSlicerTerminologyNavigatorWidget::onRegionSelected ( QTableWidgetItem *  ,
QTableWidgetItem *   
)
protectedslot

◆ onResetColorClicked

void qSlicerTerminologyNavigatorWidget::onResetColorClicked ( )
protectedslot

◆ onResetNameClicked

void qSlicerTerminologyNavigatorWidget::onResetNameClicked ( )
protectedslot

◆ onTerminologySelectionChanged

void qSlicerTerminologyNavigatorWidget::onTerminologySelectionChanged ( int  )
protectedslot

◆ onTypeCellDoubleClicked

void qSlicerTerminologyNavigatorWidget::onTypeCellDoubleClicked ( int  ,
int   
)
protectedslot

◆ onTypeModifierSelectionChanged

void qSlicerTerminologyNavigatorWidget::onTypeModifierSelectionChanged ( int  )
protectedslot

◆ onTypeSearchTextChanged

void qSlicerTerminologyNavigatorWidget::onTypeSearchTextChanged ( QString  )
protectedslot

◆ onTypeSelected

void qSlicerTerminologyNavigatorWidget::onTypeSelected ( QTableWidgetItem *  ,
QTableWidgetItem *   
)
protectedslot

◆ overrideSectionVisible()

bool qSlicerTerminologyNavigatorWidget::overrideSectionVisible ( ) const

Get whether name and color override section is visible.

◆ populateAnatomicContextComboBox()

void qSlicerTerminologyNavigatorWidget::populateAnatomicContextComboBox ( )
protected

Populate anatomic region context combobox based on current selection.

◆ populateCategoryTable()

void qSlicerTerminologyNavigatorWidget::populateCategoryTable ( )
protected

Populate category table based on selected terminology and category search term.

◆ populateRegionModifierComboBox()

void qSlicerTerminologyNavigatorWidget::populateRegionModifierComboBox ( )
protected

Populate region modifier combobox based on current selection.

◆ populateRegionTable()

void qSlicerTerminologyNavigatorWidget::populateRegionTable ( )
protected

Populate region table based on selected anatomic region context and type search term.

◆ populateTerminologyComboBox()

void qSlicerTerminologyNavigatorWidget::populateTerminologyComboBox ( )
protected

Populate terminology combobox based on current selection.

◆ populateTypeModifierComboBox()

void qSlicerTerminologyNavigatorWidget::populateTypeModifierComboBox ( )
protected

Populate type modifier combobox based on current selection.

◆ populateTypeTable()

void qSlicerTerminologyNavigatorWidget::populateTypeTable ( )
protected

Populate type table based on selected category and type search term.

◆ recommendedColorFromCurrentTerminology()

QColor qSlicerTerminologyNavigatorWidget::recommendedColorFromCurrentTerminology ( )

Get recommended color from type (or type modifier if any) of the current terminology in the widget.

◆ recommendedColorFromTerminology()

static Q_INVOKABLE QColor qSlicerTerminologyNavigatorWidget::recommendedColorFromTerminology ( vtkSlicerTerminologyEntry entry)
static

Get recommended color from type (or type modifier if any) of the given terminology entry.

◆ selectionValidityChanged

void qSlicerTerminologyNavigatorWidget::selectionValidityChanged ( bool  )
signal

Emitted when selection becomes valid (true argument) or invalid (false argument)

◆ setAnatomicRegionSectionVisible

void qSlicerTerminologyNavigatorWidget::setAnatomicRegionSectionVisible ( bool  )
slot

Show/hide anatomic region section section.

◆ setCurrentAnatomicContext()

void qSlicerTerminologyNavigatorWidget::setCurrentAnatomicContext ( QString  contextName)
protected

Set current anatomic context to widget.

◆ setCurrentCategory()

bool qSlicerTerminologyNavigatorWidget::setCurrentCategory ( vtkSlicerTerminologyCategory category)
protected

Set current category to widget. Only used when setting the category from a given entry to the widget!

Returns
Flag indicating whether the given category was found in the category table

◆ setCurrentRegion()

bool qSlicerTerminologyNavigatorWidget::setCurrentRegion ( vtkSlicerTerminologyType region)
protected

Set current region to widget

Returns
Flag indicating whether the given region was found in the region table

◆ setCurrentRegionModifier()

bool qSlicerTerminologyNavigatorWidget::setCurrentRegionModifier ( vtkSlicerTerminologyType modifier)
protected

Set current region modifier to widget

Returns
Flag indicating whether the given modifier was found in the combobox

◆ setCurrentTerminology()

void qSlicerTerminologyNavigatorWidget::setCurrentTerminology ( QString  terminologyName)
protected

Set current terminology to widget.

◆ setCurrentType()

bool qSlicerTerminologyNavigatorWidget::setCurrentType ( vtkSlicerTerminologyType type)
protected

Set current type to widget

Returns
Flag indicating whether the given type was found in the type table

◆ setCurrentTypeModifier()

bool qSlicerTerminologyNavigatorWidget::setCurrentTypeModifier ( vtkSlicerTerminologyType modifier)
protected

Set current type modifier to widget

Returns
Flag indicating whether the given modifier was found in the combobox

◆ setOverrideSectionVisible

void qSlicerTerminologyNavigatorWidget::setOverrideSectionVisible ( bool  )
slot

Show/hide name and color override section.

◆ setTerminologyEntry()

Q_INVOKABLE bool qSlicerTerminologyNavigatorWidget::setTerminologyEntry ( vtkSlicerTerminologyEntry entry)

Update terminology and anatomy widgets and selections from terminology entry

Returns
Success flag (e.g. fail if no type is specified in entry)

◆ setTerminologyInfo()

void qSlicerTerminologyNavigatorWidget::setTerminologyInfo ( TerminologyInfoBundle terminologyInfo)

Set selection to widget: terminology and meta-data (name, color, auto-generated flags)

◆ terminologyEntry()

Q_INVOKABLE bool qSlicerTerminologyNavigatorWidget::terminologyEntry ( vtkSlicerTerminologyEntry entry)

Populate terminology entry from terminology and anatomy selection

Returns
Success flag (e.g. fail if no type is selected)

◆ terminologyInfo()

void qSlicerTerminologyNavigatorWidget::terminologyInfo ( TerminologyInfoBundle terminologyInfo)

Get selection from widget: terminology and meta-data (name, color, auto-generated flags)

Parameters
terminologyInfoInfo bundle to get terminology information into

◆ typeDoubleClicked

void qSlicerTerminologyNavigatorWidget::typeDoubleClicked ( )
signal

Emitted when type is double clicked. It can be interpreted as having made a selection.

◆ updateWidgetFromCurrentCategory()

void qSlicerTerminologyNavigatorWidget::updateWidgetFromCurrentCategory ( )
protected

Update widget UI based on the current category selection.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerTerminologyNavigatorWidgetPrivate> qSlicerTerminologyNavigatorWidget::d_ptr
protected

Definition at line 209 of file qSlicerTerminologyNavigatorWidget.h.


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