Slicer  4.8
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 setApplicationLogic (vtkSlicerApplicationLogic *logic)
 
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 ()
 

Public Member Functions

QString activeActionText ()
 For testing, return the active action text. More...
 
QString defaultPlaceClassName () const
 
 qSlicerMouseModeToolBar (const QString &title, QWidget *parent=0)
 
 qSlicerMouseModeToolBar (QWidget *parent=0)
 
void setDefaultPlaceClassName (const QString &className)
 
virtual ~qSlicerMouseModeToolBar ()
 

Protected Member Functions

QAction * actionFromText (QString actionText, 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 41 of file qSlicerMouseModeToolBar.h.

Member Typedef Documentation

◆ Superclass

Definition at line 47 of file qSlicerMouseModeToolBar.h.

Property Documentation

◆ defaultPlaceClassName

QString qSlicerMouseModeToolBar::defaultPlaceClassName
readwrite

"vtkMRMLAnnotationFiducialNode" by default.

Definition at line 45 of file qSlicerMouseModeToolBar.h.

Constructor & Destructor Documentation

◆ qSlicerMouseModeToolBar() [1/2]

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

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

◆ qSlicerMouseModeToolBar() [2/2]

qSlicerMouseModeToolBar::qSlicerMouseModeToolBar ( QWidget *  parent = 0)

◆ ~qSlicerMouseModeToolBar()

virtual qSlicerMouseModeToolBar::~qSlicerMouseModeToolBar ( )
virtual

Member Function Documentation

◆ actionFromText()

QAction* qSlicerMouseModeToolBar::actionFromText ( QString  actionText,
QMenu *  menu 
)
protected

◆ activeActionText()

QString qSlicerMouseModeToolBar::activeActionText ( )

For testing, return the active action text.

◆ changeCursorTo

void qSlicerMouseModeToolBar::changeCursorTo ( QCursor  cursor)
slot

◆ defaultPlaceClassName()

QString qSlicerMouseModeToolBar::defaultPlaceClassName ( ) const

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

◆ 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

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerMouseModeToolBarPrivate> qSlicerMouseModeToolBar::d_ptr
protected

Definition at line 81 of file qSlicerMouseModeToolBar.h.


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