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

#include <Base/QTGUI/qSlicerMouseModeToolBar.h>

Inheritance diagram for qSlicerMouseModeToolBar:
Inheritance graph
Collaboration diagram for qSlicerMouseModeToolBar:
Collaboration graph

Public Types

typedef QToolBar Superclass


QString defaultPlaceClassName
 "vtkMRMLAnnotationFiducialNode" by default. More...

Public Slots

void changeCursorTo (QCursor cursor)
void interactionModeActionTriggered (bool)
void setAdjustWindowLevelMode (int)
void setApplicationLogic (vtkSlicerApplicationLogic *logic)
void setInteractionNode (vtkMRMLInteractionNode *interactionNode)
void setMRMLScene (vtkMRMLScene *newScene)
 Observe the mrml scene to prevent updates in batch processing modes. More...
void setPersistence (bool persistent)
 Update the interaction node's persistent place mode from the UI. More...
void switchPlaceMode ()
 Switch to placing items of annotationID type. More...
void switchToViewTransformMode ()
void toggleMarkupsToolBar ()

Public Member Functions

QString defaultPlaceClassName () const
Q_INVOKABLE vtkMRMLInteractionNodeinteractionNode () const
 qSlicerMouseModeToolBar (const QString &title, QWidget *parent=nullptr)
 qSlicerMouseModeToolBar (QWidget *parent=nullptr)
void setDefaultPlaceClassName (const QString &className)
 ~qSlicerMouseModeToolBar () override

Protected Member Functions

QAction * actionFromPlaceNodeClassName (QString placeNodeClassName, QMenu *menu)

Protected Attributes

QScopedPointer< qSlicerMouseModeToolBarPrivate > d_ptr

Detailed Description

qSlicerMouseModeToolBar is a toolbar that can be used to switch between mouse modes: PickMode, PickModePersistent, PlaceMode, PlaceModePersistent, TransformMode

The toolbar expects qSlicerCoreApplication::mrmlApplicationLogic() to return a valid object qSlicerMouseModeToolBar observes the singletons selection node and interaction node to control its state.

Definition at line 42 of file qSlicerMouseModeToolBar.h.

Member Typedef Documentation

◆ Superclass

Definition at line 48 of file qSlicerMouseModeToolBar.h.

Property Documentation

◆ defaultPlaceClassName

QString qSlicerMouseModeToolBar::defaultPlaceClassName

"vtkMRMLAnnotationFiducialNode" by default.

Definition at line 46 of file qSlicerMouseModeToolBar.h.

Constructor & Destructor Documentation

◆ qSlicerMouseModeToolBar() [1/2]

qSlicerMouseModeToolBar::qSlicerMouseModeToolBar ( const QString &  title,
QWidget *  parent = nullptr 

Constructor Title is the name of the toolbar (can appear using right click on the toolbar area)

◆ qSlicerMouseModeToolBar() [2/2]

qSlicerMouseModeToolBar::qSlicerMouseModeToolBar ( QWidget *  parent = nullptr)

◆ ~qSlicerMouseModeToolBar()

qSlicerMouseModeToolBar::~qSlicerMouseModeToolBar ( )

Member Function Documentation

◆ actionFromPlaceNodeClassName()

QAction* qSlicerMouseModeToolBar::actionFromPlaceNodeClassName ( QString  placeNodeClassName,
QMenu *  menu 

◆ changeCursorTo

void qSlicerMouseModeToolBar::changeCursorTo ( QCursor  cursor)

◆ defaultPlaceClassName()

QString qSlicerMouseModeToolBar::defaultPlaceClassName ( ) const

◆ interactionModeActionTriggered

void qSlicerMouseModeToolBar::interactionModeActionTriggered ( bool  )

◆ interactionNode()

Q_INVOKABLE vtkMRMLInteractionNode* qSlicerMouseModeToolBar::interactionNode ( ) const

Get interaction node.

See also

◆ setAdjustWindowLevelMode

void qSlicerMouseModeToolBar::setAdjustWindowLevelMode ( int  )

◆ setApplicationLogic

void qSlicerMouseModeToolBar::setApplicationLogic ( vtkSlicerApplicationLogic logic)

Set the application logic. It is used to retrieve the selection and interaction nodes.

◆ setDefaultPlaceClassName()

void qSlicerMouseModeToolBar::setDefaultPlaceClassName ( const QString &  className)

◆ setInteractionNode

void qSlicerMouseModeToolBar::setInteractionNode ( vtkMRMLInteractionNode interactionNode)

Set interaction node used to update the toolbar.

See also

◆ setMRMLScene

void qSlicerMouseModeToolBar::setMRMLScene ( vtkMRMLScene newScene)

Observe the mrml scene to prevent updates in batch processing modes.

◆ setPersistence

void qSlicerMouseModeToolBar::setPersistence ( bool  persistent)

Update the interaction node's persistent place mode from the UI.

◆ switchPlaceMode

void qSlicerMouseModeToolBar::switchPlaceMode ( )

Switch to placing items of annotationID type.

◆ switchToViewTransformMode

void qSlicerMouseModeToolBar::switchToViewTransformMode ( )

◆ toggleMarkupsToolBar

void qSlicerMouseModeToolBar::toggleMarkupsToolBar ( )

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerMouseModeToolBarPrivate> qSlicerMouseModeToolBar::d_ptr

Definition at line 93 of file qSlicerMouseModeToolBar.h.

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