Slicer
4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Combobox of display node view nodes. Observe the view nodes of a display node and mark them as checked in the scene view node list. View nodes can be vtkMRMLViewNode for the 3D view or vtkMRMLSliceNode for the 2d case, or vtkMRMLChartViewNodes for charts. More...
#include <Libs/MRML/Widgets/qMRMLDisplayNodeViewComboBox.h>
Public Types | |
typedef qMRMLCheckableNodeComboBox | Superclass |
Superclass typedef. More... | |
Public Types inherited from qMRMLCheckableNodeComboBox | |
typedef qMRMLNodeComboBox | Superclass |
Superclass typedef. More... | |
Public Types inherited from qMRMLNodeComboBox | |
typedef QWidget | Superclass |
Public Slots | |
void | setMRMLDisplayNode (vtkMRMLDisplayNode *node) |
Set the display node to observe. More... | |
void | setMRMLDisplayNode (vtkMRMLNode *displayNode) |
Public Slots inherited from qMRMLCheckableNodeComboBox | |
void | check (vtkMRMLNode *node) |
Set the check state of the node to Qt::Checked. More... | |
void | uncheck (vtkMRMLNode *node) |
Set the check state of the node to Qt::Unchecked. More... | |
Public Slots inherited from qMRMLNodeComboBox | |
virtual vtkMRMLNode * | addNode (QString nodeType) |
Creates a node of the same type as in the "node types" property. More... | |
virtual vtkMRMLNode * | addNode () |
Creates a node of the same type as the first in the "node types" property. More... | |
virtual void | editCurrentNode () |
Edits the currently selected node. More... | |
virtual void | removeCurrentNode () |
virtual void | renameCurrentNode () |
void | setCurrentNode (vtkMRMLNode *node) |
Select the node to be current. More... | |
void | setCurrentNode (const QString &nodeID) |
void | setCurrentNodeID (const QString &nodeID) |
void | setCurrentNodeIndex (int index) |
virtual void | setMRMLScene (vtkMRMLScene *scene) |
Public Member Functions | |
QList< vtkMRMLAbstractViewNode * > | checkedViewNodes () const |
Return a list of view nodes the display node is visible into. More... | |
vtkMRMLDisplayNode * | mrmlDisplayNode () const |
qMRMLDisplayNodeViewComboBox (QWidget *parent=0) | |
QList< vtkMRMLAbstractViewNode * > | uncheckedViewNodes () const |
Return a list of view nodes the display node is not visible into. More... | |
virtual | ~qMRMLDisplayNodeViewComboBox () |
Public Member Functions inherited from qMRMLCheckableNodeComboBox | |
Q_INVOKABLE bool | allChecked () const |
Q_INVOKABLE QList< vtkMRMLNode * > | checkedNodes () const |
Q_INVOKABLE Qt::CheckState | checkState (vtkMRMLNode *node) const |
Q_INVOKABLE bool | noneChecked () const |
qMRMLCheckableNodeComboBox (QWidget *parent=0) | |
Q_INVOKABLE void | setCheckState (vtkMRMLNode *node, Qt::CheckState check) |
Q_INVOKABLE void | setUserCheckable (vtkMRMLNode *node, bool userCheckable) |
Q_INVOKABLE QList< vtkMRMLNode * > | uncheckedNodes () const |
virtual | ~qMRMLCheckableNodeComboBox () |
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 vtkMRMLNode * | currentNode () const |
Return the currently selected node. 0 if no node is selected. More... | |
QString | currentNodeID () const |
Q_INVOKABLE QString | currentNodeId () const |
bool | editEnabled () const |
QStringList | hideChildNodeTypes () const |
QAbstractItemModel * | model () const |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
int | nodeCount () const |
qMRMLNodeFactory * | nodeFactory () const |
vtkMRMLNode * | nodeFromIndex (int index) const |
QList< vtkMRMLNode * > | nodes () const |
Return a list of all the nodes that are displayed in the combo box. More... | |
Q_INVOKABLE QString | nodeTypeLabel (const QString &nodeType) const |
QStringList | nodeTypes () const |
QString | noneDisplay () const |
bool | noneEnabled () const |
qMRMLNodeComboBox (QWidget *parent=0) | |
Q_INVOKABLE void | removeAttribute (const QString &nodeType, const QString &attributeName) |
bool | removeEnabled () const |
bool | renameEnabled () const |
Allow the user to rename the node. More... | |
qMRMLSceneModel * | sceneModel () 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) |
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 qMRMLSortFilterProxyModel * | sortFilterProxyModel () const |
virtual | ~qMRMLNodeComboBox () |
Protected Slots | |
void | updateMRMLFromWidget () |
void | updateWidgetFromMRML () |
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< qMRMLDisplayNodeViewComboBoxPrivate > | d_ptr |
Protected Attributes inherited from qMRMLNodeComboBox | |
QScopedPointer< qMRMLNodeComboBoxPrivate > | d_ptr |
Additional Inherited Members | |
Properties inherited from qMRMLNodeComboBox | |
bool | addEnabled |
QString | baseName |
QString | currentNodeId |
QString | currentNodeID |
bool | editEnabled |
QStringList | hideChildNodeTypes |
QStringList | nodeTypes |
QString | noneDisplay |
bool | noneEnabled |
bool | removeEnabled |
bool | renameEnabled |
bool | selectNodeUponCreation |
bool | showChildNodeTypes |
bool | showHidden |
QComboBox::SizeAdjustPolicy | sizeAdjustPolicy |
Signals inherited from qMRMLCheckableNodeComboBox | |
void | checkedNodesChanged () |
Signal fired anytime a node is checked or unchecked. More... | |
Signals inherited from qMRMLNodeComboBox | |
void | currentNodeChanged (vtkMRMLNode *node) |
void | currentNodeChanged (bool validNode) |
void | currentNodeIDChanged (const QString &id) |
void | currentNodeRenamed (const QString &newName) |
Signal emitted when the current node is renamed. More... | |
void | nodeAboutToBeEdited (vtkMRMLNode *node) |
Signal emitted when edit node menu action is selected. More... | |
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. More... | |
Protected Member Functions inherited from qMRMLNodeComboBox | |
virtual void | changeEvent (QEvent *event) |
QComboBox * | comboBox () const |
qMRMLNodeComboBox (QAbstractItemModel *model, QWidget *parent=0) | |
qMRMLNodeComboBox will not take ownership on the model. More... | |
qMRMLNodeComboBox (qMRMLNodeComboBoxPrivate *pimpl, QWidget *parent=0) | |
QAbstractItemModel * | rootModel () const |
void | setComboBox (QComboBox *comboBox) |
Combobox of display node view nodes. Observe the view nodes of a display node and mark them as checked in the scene view node list. View nodes can be vtkMRMLViewNode for the 3D view or vtkMRMLSliceNode for the 2d case, or vtkMRMLChartViewNodes for charts.
Definition at line 40 of file qMRMLDisplayNodeViewComboBox.h.
Superclass typedef.
Definition at line 47 of file qMRMLDisplayNodeViewComboBox.h.
|
explicit |
Construct an empty qMRMLDisplayNodeViewComboBox with a null scene, no nodeType, where the hidden nodes are not forced on display.
|
virtual |
QList<vtkMRMLAbstractViewNode*> qMRMLDisplayNodeViewComboBox::checkedViewNodes | ( | ) | const |
Return a list of view nodes the display node is visible into.
vtkMRMLDisplayNode* qMRMLDisplayNodeViewComboBox::mrmlDisplayNode | ( | ) | const |
|
slot |
Set the display node to observe.
|
slot |
Utility function to conveniently connect the combobox with other qMRMLWidgets.
QList<vtkMRMLAbstractViewNode*> qMRMLDisplayNodeViewComboBox::uncheckedViewNodes | ( | ) | const |
Return a list of view nodes the display node is not visible into.
|
protectedslot |
|
protectedslot |
|
protected |
Definition at line 73 of file qMRMLDisplayNodeViewComboBox.h.