Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerPresetComboBox Class Reference

#include <Modules/Loadable/VolumeRendering/Widgets/qSlicerPresetComboBox.h>

Inheritance diagram for qSlicerPresetComboBox:
Collaboration diagram for qSlicerPresetComboBox:

Public Types

typedef qMRMLNodeComboBox Superclass
 Constructors.
 
- Public Types inherited from qMRMLNodeComboBox
typedef QWidget Superclass
 

Properties

QSize iconSizeInPopup
 Icon size in popup.
 
bool showIcons
 Show icons in the combobox and popup window.
 
bool showLabelsInPopup
 Show label in the popup window.
 
- Properties inherited from qMRMLNodeComboBox
bool addEnabled
 
QString baseName
 
QString currentNodeID
 
QString currentNodeId
 
bool editEnabled
 
QStringList hideChildNodeTypes
 
QString interactionNodeSingletonTag
 
QStringList nodeTypes
 
QString noneDisplay
 
bool noneEnabled
 
bool removeEnabled
 
bool renameEnabled
 
bool selectNodeUponCreation
 
bool showChildNodeTypes
 
bool showHidden
 
QComboBox::SizeAdjustPolicy sizeAdjustPolicy
 

Public Slots

void setIconSizeInPopup (const QSize &size)
 
void setIconToPreset (vtkMRMLNode *presetNode)
 
void setShowIcons (bool show)
 
void setShowLabelsInPopup (bool show)
 
- Public Slots inherited from qMRMLNodeComboBox
virtual vtkMRMLNodeaddNode ()
 Creates a node of the same type as the first in the "node types" property.
 
virtual vtkMRMLNodeaddNode (QString nodeType)
 Creates a node of the same type as in the "node types" property.
 
virtual void editCurrentNode ()
 Edits the currently selected node.
 
virtual void removeCurrentNode ()
 
virtual void renameCurrentNode ()
 
void setCurrentNode (const QString &nodeID)
 
void setCurrentNode (vtkMRMLNode *node)
 Select the node to be current.
 
void setCurrentNodeID (const QString &nodeID)
 
void setCurrentNodeIndex (int index)
 
virtual void setMRMLScene (vtkMRMLScene *scene)
 

Public Member Functions

QSize iconSizeInPopup () const
 
 qSlicerPresetComboBox (QWidget *parent=nullptr)
 
bool showIcons () const
 
bool showLabelsInPopup () const
 
 ~qSlicerPresetComboBox () override
 
- Public Member Functions inherited from qMRMLNodeComboBox
Q_INVOKABLE void addAttribute (const QString &nodeType, const QString &attributeName, const QVariant &attributeValue=QVariant())
 
bool addEnabled () const
 
virtual Q_INVOKABLE void addMenuAction (QAction *newAction)
 
QString baseName (const QString &nodeType="") const
 
Q_INVOKABLE vtkMRMLNodecurrentNode () const
 Return the currently selected node. 0 if no node is selected.
 
QString currentNodeID () const
 
Q_INVOKABLE QString currentNodeId () const
 
bool editEnabled () const
 
QStringList hideChildNodeTypes () const
 
virtual QString interactionNodeSingletonTag () const
 
QAbstractItemModel * model () const
 
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 
Q_INVOKABLE int nodeCount () const
 
qMRMLNodeFactorynodeFactory () const
 
Q_INVOKABLE vtkMRMLNodenodeFromIndex (int index) const
 
QList< vtkMRMLNode * > nodes () const
 Return a list of all the nodes that are displayed in the combo box.
 
Q_INVOKABLE QString nodeTypeLabel (const QString &nodeType) const
 
QStringList nodeTypes () const
 
QString noneDisplay () const
 
bool noneEnabled () const
 
 qMRMLNodeComboBox (QWidget *parent=nullptr)
 
Q_INVOKABLE void removeAttribute (const QString &nodeType, const QString &attributeName)
 
bool removeEnabled () const
 
bool renameEnabled () const
 Allow the user to rename the node.
 
qMRMLSceneModelsceneModel () const
 
bool selectNodeUponCreation () const
 
void setAddEnabled (bool enable)
 
void setBaseName (const QString &baseName, const QString &nodeType="")
 
void setEditEnabled (bool enable)
 
void setHideChildNodeTypes (const QStringList &nodeTypes)
 
virtual void setInteractionNodeSingletonTag (const QString &tag)
 
Q_INVOKABLE void setNodeTypeLabel (const QString &label, const QString &nodeType)
 
void setNodeTypes (const QStringList &nodeTypes)
 
void setNoneDisplay (const QString &displayName)
 
void setNoneEnabled (bool enable)
 
void setRemoveEnabled (bool enable)
 
void setRenameEnabled (bool enable)
 
void setSelectNodeUponCreation (bool value)
 
void setShowChildNodeTypes (bool show)
 
void setShowHidden (bool)
 
void setSizeAdjustPolicy (QComboBox::SizeAdjustPolicy policy)
 
bool showChildNodeTypes () const
 
bool showHidden () const
 
QComboBox::SizeAdjustPolicy sizeAdjustPolicy () const
 
Q_INVOKABLE qMRMLSortFilterProxyModelsortFilterProxyModel () const
 
 ~qMRMLNodeComboBox () override
 

Protected Slots

void updateComboBoxTitleAndIcon (vtkMRMLNode *presetNode)
 
- Protected Slots inherited from qMRMLNodeComboBox
void activateExtraItem (const QModelIndex &index)
 
void emitCurrentNodeChanged ()
 
void emitNodeActivated (int currentIndex)
 
void emitNodesAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void emitNodesAdded (const QModelIndex &parent, int start, int end)
 
void refreshIfCurrentNodeHidden ()
 

Protected Attributes

QScopedPointer< qSlicerPresetComboBoxPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLNodeComboBox
QScopedPointer< qMRMLNodeComboBoxPrivate > d_ptr
 

Additional Inherited Members

- Signals inherited from qMRMLNodeComboBox
void currentNodeChanged (bool validNode)
 
void currentNodeChanged (vtkMRMLNode *node)
 
void currentNodeIDChanged (const QString &id)
 
void currentNodeRenamed (const QString &newName)
 Signal emitted when the current node is renamed.
 
void nodeAboutToBeEdited (vtkMRMLNode *node)
 Signal emitted when edit node menu action is selected.
 
void nodeAboutToBeRemoved (vtkMRMLNode *node)
 
void nodeActivated (vtkMRMLNode *node)
 
void nodeAdded (vtkMRMLNode *node)
 
void nodeAddedByUser (vtkMRMLNode *node)
 Signal emitted when node is added by the user.
 
- Protected Member Functions inherited from qMRMLNodeComboBox
void changeEvent (QEvent *event) override
 
QComboBox * comboBox () const
 
 qMRMLNodeComboBox (QAbstractItemModel *model, QWidget *parent=nullptr)
 qMRMLNodeComboBox will not take ownership on the model.
 
 qMRMLNodeComboBox (qMRMLNodeComboBoxPrivate *pimpl, QWidget *parent=nullptr)
 
QAbstractItemModel * rootModel () const
 
void setComboBox (QComboBox *comboBox)
 

Detailed Description

Definition at line 33 of file qSlicerPresetComboBox.h.

Member Typedef Documentation

◆ Superclass

Constructors.

Definition at line 46 of file qSlicerPresetComboBox.h.

Property Documentation

◆ iconSizeInPopup

QSize qSlicerPresetComboBox::iconSizeInPopup
readwrite

Icon size in popup.

Definition at line 42 of file qSlicerPresetComboBox.h.

◆ showIcons

bool qSlicerPresetComboBox::showIcons
readwrite

Show icons in the combobox and popup window.

Definition at line 38 of file qSlicerPresetComboBox.h.

◆ showLabelsInPopup

bool qSlicerPresetComboBox::showLabelsInPopup
readwrite

Show label in the popup window.

Definition at line 40 of file qSlicerPresetComboBox.h.

Constructor & Destructor Documentation

◆ qSlicerPresetComboBox()

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

◆ ~qSlicerPresetComboBox()

qSlicerPresetComboBox::~qSlicerPresetComboBox ( )
override

Member Function Documentation

◆ iconSizeInPopup()

QSize qSlicerPresetComboBox::iconSizeInPopup ( ) const

◆ setIconSizeInPopup

void qSlicerPresetComboBox::setIconSizeInPopup ( const QSize & size)
slot

◆ setIconToPreset

void qSlicerPresetComboBox::setIconToPreset ( vtkMRMLNode * presetNode)
slot

◆ setShowIcons

void qSlicerPresetComboBox::setShowIcons ( bool show)
slot

◆ setShowLabelsInPopup

void qSlicerPresetComboBox::setShowLabelsInPopup ( bool show)
slot

◆ showIcons()

bool qSlicerPresetComboBox::showIcons ( ) const

◆ showLabelsInPopup()

bool qSlicerPresetComboBox::showLabelsInPopup ( ) const

◆ updateComboBoxTitleAndIcon

void qSlicerPresetComboBox::updateComboBoxTitleAndIcon ( vtkMRMLNode * presetNode)
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerPresetComboBoxPrivate> qSlicerPresetComboBox::d_ptr
protected

Definition at line 64 of file qSlicerPresetComboBox.h.


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