Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Annotations/Widgets/qMRMLAnnotationTreeView.h>
Public Types | |
typedef qMRMLTreeView | Superclass |
Public Types inherited from qMRMLTreeView | |
typedef QTreeView | Superclass |
Signals | |
void | onPropertyEditButtonClicked (QString id) |
Signals inherited from qMRMLTreeView | |
void | currentNodeChanged (vtkMRMLNode *node) |
void | currentNodeDeleted (const QModelIndex &index) |
void | currentNodeRenamed (const QString &newName) |
void | decorationClicked (const QModelIndex &) |
void | editNodeRequested (vtkMRMLNode *node) |
Public Member Functions | |
qMRMLSceneAnnotationModel * | annotationModel () const |
void | deleteSelected () |
const char * | firstSelectedNode () |
void | hideScene () |
qMRMLAnnotationTreeView (QWidget *parent=nullptr) | |
void | selectedAsCollection (vtkCollection *collection) |
void | setLogic (vtkSlicerAnnotationModuleLogic *logic) |
void | toggleLockForSelected () |
void | toggleVisibilityForSelected () |
~qMRMLAnnotationTreeView () override | |
Public Member Functions inherited from qMRMLTreeView | |
void | appendNodeMenuAction (QAction *action) |
void | appendSceneMenuAction (QAction *action) |
virtual bool | clickDecoration (const QModelIndex &index) |
vtkMRMLNode * | currentNode () const |
bool | eventFilter (QObject *object, QEvent *e) override |
bool | fitSizeToVisibleIndexes () const |
bool | isDeleteMenuActionVisible () const |
bool | isEditMenuActionVisible () const |
bool | isRenameMenuActionVisible () const |
qMRMLSceneModel::NodeTypes | listenNodeModifiedEvent () const |
QSize | minimumSizeHint () const override |
QSize | minSizeHint () const |
vtkMRMLScene * | mrmlScene () const |
QStringList | nodeTypes () const |
void | prependNodeMenuAction (QAction *action) |
void | prependSceneMenuAction (QAction *action) |
qMRMLTreeView (QWidget *parent=nullptr) | |
void | removeNodeMenuAction (QAction *action) |
Remove action from the "NodeMenu". More... | |
vtkMRMLNode * | rootNode () const |
Q_INVOKABLE qMRMLSceneModel * | sceneModel () const |
QString | sceneModelType () const |
void | setDeleteMenuActionVisible (bool show) |
void | setEditMenuActionVisible (bool show) |
void | setFitSizeToVisibleIndexes (bool) |
void | setListenNodeModifiedEvent (qMRMLSceneModel::NodeTypes listen) |
void | setMinSizeHint (QSize min) |
void | setNodeTypes (const QStringList &nodeTypes) |
void | setRenameMenuActionVisible (bool show) |
void | setSceneModel (qMRMLSceneModel *newSceneModel, const QString &modelType) |
Customize the model. More... | |
void | setShowHidden (bool) |
void | setShowRootNode (bool show) |
void | setShowScene (bool show) |
void | setSortFilterProxyModel (qMRMLSortFilterProxyModel *newFilterModel) |
Customize the filter model. More... | |
void | showEvent (QShowEvent *show) override |
bool | showHidden () const |
bool | showRootNode () const |
bool | showScene () const |
QSize | sizeHint () const override |
Q_INVOKABLE qMRMLSortFilterProxyModel * | sortFilterProxyModel () const |
~qMRMLTreeView () override | |
Protected Slots | |
void | onClicked (const QModelIndex &index) |
Protected Slots inherited from qMRMLTreeView | |
void | loadTreeExpandState () |
void | onCustomContextMenu (const QPoint &point) |
void | onNumberOfVisibleIndexChanged () |
void | saveTreeExpandState () |
void | updateRootNode (vtkObject *modifiedRootNode) |
Protected Member Functions | |
void | mouseMoveEvent (QMouseEvent *e) override |
void | mousePressEvent (QMouseEvent *event) override |
void | onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
void | toggleVisibility (const QModelIndex &index) override |
bool | viewportEvent (QEvent *e) override |
Protected Member Functions inherited from qMRMLTreeView | |
void | keyPressEvent (QKeyEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
qMRMLTreeView (qMRMLTreeViewPrivate *pimpl, QWidget *parent=nullptr) | |
void | updateGeometries () override |
Protected Attributes | |
QScopedPointer< qMRMLAnnotationTreeViewPrivate > | d_ptr |
Protected Attributes inherited from qMRMLTreeView | |
QScopedPointer< qMRMLTreeViewPrivate > | d_ptr |
Additional Inherited Members | |
Properties inherited from qMRMLTreeView | |
bool | deleteMenuActionVisible |
bool | editMenuActionVisible |
bool | fitSizeToVisibleIndexes |
qMRMLSceneModel::NodeTypes | listenNodeModifiedEvent |
QSize | minSizeHint |
QStringList | nodeTypes |
bool | renameMenuActionVisible |
QString | sceneModelType |
bool | showHidden |
bool | showRootNode |
bool | showScene |
Public Slots inherited from qMRMLTreeView | |
void | deleteCurrentNode () |
void | editCurrentNode () |
void | renameCurrentNode () |
void | scrollTo (const QString &displayName) |
void | scrollToNext () |
void | setCurrentNode (vtkMRMLNode *node) |
void | setDontHideAll (bool) |
void | setHideAll (bool) |
virtual void | setMRMLScene (vtkMRMLScene *scene) |
void | setRootNode (vtkMRMLNode *root) |
void | setSceneModelType (const QString &modelType) |
void | setShowAll (bool) |
Static Public Member Functions inherited from qMRMLTreeView | |
static QModelIndex | findAncestor (const QModelIndex &index, const QModelIndexList &potentialAncestors) |
static bool | isAncestor (const QModelIndex &index, const QModelIndex &potentialAncestor) |
static QModelIndexList | removeChildren (const QModelIndexList &indexes) |
Remove indexes that have at least one ancestor in the list. More... | |
Definition at line 43 of file qMRMLAnnotationTreeView.h.
Definition at line 49 of file qMRMLAnnotationTreeView.h.
qMRMLAnnotationTreeView::qMRMLAnnotationTreeView | ( | QWidget * | parent = nullptr | ) |
|
override |
qMRMLSceneAnnotationModel* qMRMLAnnotationTreeView::annotationModel | ( | ) | const |
void qMRMLAnnotationTreeView::deleteSelected | ( | ) |
const char* qMRMLAnnotationTreeView::firstSelectedNode | ( | ) |
void qMRMLAnnotationTreeView::hideScene | ( | ) |
|
overrideprotected |
|
overrideprotected |
|
protectedslot |
|
signal |
|
overrideprotectedvirtual |
Reimplemented to also set the active hierarchy node when the current index changes.
Reimplemented from qMRMLTreeView.
void qMRMLAnnotationTreeView::selectedAsCollection | ( | vtkCollection * | collection | ) |
void qMRMLAnnotationTreeView::setLogic | ( | vtkSlicerAnnotationModuleLogic * | logic | ) |
void qMRMLAnnotationTreeView::toggleLockForSelected | ( | ) |
|
overrideprotectedvirtual |
Reimplemented from qMRMLTreeView.
void qMRMLAnnotationTreeView::toggleVisibilityForSelected | ( | ) |
|
overrideprotected |
|
protected |
Definition at line 78 of file qMRMLAnnotationTreeView.h.