Slicer  5.1
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
[legend]
Collaboration diagram for qSlicerMouseModeToolBar:
Collaboration graph
[legend]

Public Types

typedef QToolBar Superclass
 

Properties

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

Note
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
readwrite

"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 ( )
override

Member Function Documentation

◆ actionFromPlaceNodeClassName()

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

◆ changeCursorTo

void qSlicerMouseModeToolBar::changeCursorTo ( QCursor  cursor)
slot

◆ defaultPlaceClassName()

QString qSlicerMouseModeToolBar::defaultPlaceClassName ( ) const

◆ interactionModeActionTriggered

void qSlicerMouseModeToolBar::interactionModeActionTriggered ( bool  )
slot

◆ interactionNode()

Q_INVOKABLE vtkMRMLInteractionNode* qSlicerMouseModeToolBar::interactionNode ( ) const

Get interaction node.

See also
setInteractionNode()

◆ setAdjustWindowLevelMode

void qSlicerMouseModeToolBar::setAdjustWindowLevelMode ( int  )
slot

◆ setApplicationLogic

void qSlicerMouseModeToolBar::setApplicationLogic ( vtkSlicerApplicationLogic logic)
slot

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)
slot

Set interaction node used to update the toolbar.

See also
interactionNode()

◆ setMRMLScene

void qSlicerMouseModeToolBar::setMRMLScene ( vtkMRMLScene newScene)
slot

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

◆ setPersistence

void qSlicerMouseModeToolBar::setPersistence ( bool  persistent)
slot

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

◆ switchPlaceMode

void qSlicerMouseModeToolBar::switchPlaceMode ( )
slot

Switch to placing items of annotationID type.

◆ switchToViewTransformMode

void qSlicerMouseModeToolBar::switchToViewTransformMode ( )
slot

◆ toggleMarkupsToolBar

void qSlicerMouseModeToolBar::toggleMarkupsToolBar ( )
slot

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerMouseModeToolBarPrivate> qSlicerMouseModeToolBar::d_ptr
protected

Definition at line 93 of file qSlicerMouseModeToolBar.h.


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