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

#include <Modules/Loadable/Annotations/Widgets/qMRMLAnnotationTreeView.h>

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

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

qMRMLSceneAnnotationModelannotationModel () const
 
void deleteSelected ()
 
const char * firstSelectedNode ()
 
void hideScene ()
 
 qMRMLAnnotationTreeView (QWidget *parent=0)
 
void selectedAsCollection (vtkCollection *collection)
 
void setLogic (vtkSlicerAnnotationModuleLogic *logic)
 
void toggleLockForSelected ()
 
void toggleVisibilityForSelected ()
 
virtual ~qMRMLAnnotationTreeView ()
 
- Public Member Functions inherited from qMRMLTreeView
void appendNodeMenuAction (QAction *action)
 
void appendSceneMenuAction (QAction *action)
 
virtual bool clickDecoration (const QModelIndex &index)
 
vtkMRMLNodecurrentNode () const
 
virtual bool eventFilter (QObject *object, QEvent *e)
 
bool fitSizeToVisibleIndexes () const
 
bool isDeleteMenuActionVisible () const
 
bool isEditMenuActionVisible () const
 
bool isRenameMenuActionVisible () const
 
qMRMLSceneModel::NodeTypes listenNodeModifiedEvent () const
 
virtual QSize minimumSizeHint () const
 
QSize minSizeHint () const
 
vtkMRMLScenemrmlScene () const
 
QStringList nodeTypes () const
 
void prependNodeMenuAction (QAction *action)
 
void prependSceneMenuAction (QAction *action)
 
 qMRMLTreeView (QWidget *parent=0)
 
void removeNodeMenuAction (QAction *action)
 Remove action from the "NodeMenu". More...
 
vtkMRMLNoderootNode () const
 
Q_INVOKABLE qMRMLSceneModelsceneModel () 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...
 
virtual void showEvent (QShowEvent *show)
 
bool showHidden () const
 
bool showRootNode () const
 
bool showScene () const
 
virtual QSize sizeHint () const
 
Q_INVOKABLE qMRMLSortFilterProxyModelsortFilterProxyModel () const
 
virtual ~qMRMLTreeView ()
 

Protected Slots

void onClicked (const QModelIndex &index)
 
- Protected Slots inherited from qMRMLTreeView
void loadTreeExpandState ()
 
void onNumberOfVisibleIndexChanged ()
 
void saveTreeExpandState ()
 
void updateRootNode (vtkObject *modifiedRootNode)
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
virtual void toggleVisibility (const QModelIndex &index)
 
bool viewportEvent (QEvent *e)
 
- Protected Member Functions inherited from qMRMLTreeView
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
 qMRMLTreeView (qMRMLTreeViewPrivate *pimpl, QWidget *parent=0)
 
virtual void updateGeometries ()
 

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...
 

Detailed Description

Definition at line 43 of file qMRMLAnnotationTreeView.h.

Member Typedef Documentation

◆ Superclass

Definition at line 49 of file qMRMLAnnotationTreeView.h.

Constructor & Destructor Documentation

◆ qMRMLAnnotationTreeView()

qMRMLAnnotationTreeView::qMRMLAnnotationTreeView ( QWidget *  parent = 0)

◆ ~qMRMLAnnotationTreeView()

virtual qMRMLAnnotationTreeView::~qMRMLAnnotationTreeView ( )
virtual

Member Function Documentation

◆ annotationModel()

qMRMLSceneAnnotationModel* qMRMLAnnotationTreeView::annotationModel ( ) const

◆ deleteSelected()

void qMRMLAnnotationTreeView::deleteSelected ( )

◆ firstSelectedNode()

const char* qMRMLAnnotationTreeView::firstSelectedNode ( )

◆ hideScene()

void qMRMLAnnotationTreeView::hideScene ( )

◆ mouseMoveEvent()

void qMRMLAnnotationTreeView::mouseMoveEvent ( QMouseEvent *  e)
protected

◆ mousePressEvent()

virtual void qMRMLAnnotationTreeView::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from qMRMLTreeView.

◆ onClicked

void qMRMLAnnotationTreeView::onClicked ( const QModelIndex &  index)
protectedslot

◆ onPropertyEditButtonClicked

void qMRMLAnnotationTreeView::onPropertyEditButtonClicked ( QString  id)
signal

◆ onSelectionChanged()

virtual void qMRMLAnnotationTreeView::onSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedvirtual

Reimplemented to also set the active hierarchy node when the current index changes.

See also
qMRMLTreeView::onSelectionChanged(), vtkSlicerAnnotationModuleLogic::SetActiveHierarchyNodeID()

Reimplemented from qMRMLTreeView.

◆ selectedAsCollection()

void qMRMLAnnotationTreeView::selectedAsCollection ( vtkCollection *  collection)

◆ setLogic()

void qMRMLAnnotationTreeView::setLogic ( vtkSlicerAnnotationModuleLogic logic)

◆ toggleLockForSelected()

void qMRMLAnnotationTreeView::toggleLockForSelected ( )

◆ toggleVisibility()

virtual void qMRMLAnnotationTreeView::toggleVisibility ( const QModelIndex &  index)
protectedvirtual

Reimplemented from qMRMLTreeView.

◆ toggleVisibilityForSelected()

void qMRMLAnnotationTreeView::toggleVisibilityForSelected ( )

◆ viewportEvent()

bool qMRMLAnnotationTreeView::viewportEvent ( QEvent *  e)
protected

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLAnnotationTreeViewPrivate> qMRMLAnnotationTreeView::d_ptr
protected

Definition at line 78 of file qMRMLAnnotationTreeView.h.


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