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 | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
qSlicerSimpleMarkupsWidget Class Reference

#include <Modules/Loadable/Markups/Widgets/qSlicerSimpleMarkupsWidget.h>

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

Public Types

typedef qSlicerWidget Superclass
 

Properties

QColor defaultNodeColor
 
bool enterPlaceModeOnNodeChange
 
bool jumpToSliceEnabled
 
QColor nodeColor
 
bool nodeSelectorVisible
 
bool optionsVisible
 
int viewGroup
 

Public Slots

void activate ()
 Set the currently selected markups node to be the active markups node in the Slicer scene. More...
 
void highlightNthFiducial (int n)
 Scrolls to and selects the Nth fiducial in the table of fiducials. More...
 
void placeActive (bool place)
 Set the currently selected markups node to be the active markups node in the Slicer scene. The argument place is true then also interaction mode is set to place mode. More...
 
void setCurrentNode (vtkMRMLNode *currentNode)
 Set the currently selected markups node. More...
 
void setDefaultNodeColor (QColor color)
 Set the default color that is assigned to newly created markups nodes in the combo box. More...
 
void setEnterPlaceModeOnNodeChange (bool)
 Accessors to control place mode behavior. More...
 
void setJumpToSliceEnabled (bool)
 If enabled then the fiducial will be shown in all slice views when a fiducial is selected. More...
 
void setMRMLScene (vtkMRMLScene *scene)
 
void setNodeBaseName (QString newNodeBaseName)
 Set the default name of the markups node created in the combo box. More...
 
void setNodeColor (QColor color)
 Set the selected color of the currently selected markups node. More...
 
void setNodeSelectorVisible (bool)
 Show/hide the markup node selector widget. More...
 
void setOptionsVisible (bool)
 Show/hide options (place, activate, color, etc buttons). More...
 
- Public Slots inherited from qSlicerWidget
virtual void setMRMLScene (vtkMRMLScene *scene)
 

Signals

void activeMarkupsFiducialPlaceModeChanged (bool enabled)
 
void currentMarkupsFiducialSelectionChanged (int markupIndex)
 
void markupsFiducialNodeChanged ()
 The signal is emitted when a different markup node is selected. More...
 
void updateFinished ()
 
- Signals inherited from qSlicerWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

Q_INVOKABLE vtkMRMLNodecurrentNode () const
 Get the currently selected markups node. More...
 
QColor defaultNodeColor () const
 Get the default node color that is applied to newly created nodes. More...
 
bool enterPlaceModeOnNodeChange () const
 Accessors to control place mode behavior. More...
 
Q_INVOKABLE vtkMRMLNodegetCurrentNode ()
 Deprecated. Use currentNode() instead. More...
 
bool jumpToSliceEnabled () const
 
Q_INVOKABLE qSlicerMarkupsPlaceWidgetmarkupsPlaceWidget () const
 Get the markups placement widget (containing place and delete button) More...
 
Q_INVOKABLE qMRMLNodeComboBoxmarkupsSelectorComboBox () const
 Get the markup node selector combo box. More...
 
QColor nodeColor () const
 Get the selected color of the currently selected markups node. More...
 
bool nodeSelectorVisible () const
 Show/hide the markup node selector widget. More...
 
bool optionsVisible () const
 Show/hide options (place, activate, color, etc buttons). More...
 
 qSlicerSimpleMarkupsWidget (QWidget *parent=0)
 
void setViewGroup (int newViewGroup)
 
Q_INVOKABLE QTableWidget * tableWidget () const
 Get the markups table widget. More...
 
int viewGroup () const
 Get view group where slice positions will be updated. More...
 
virtual ~qSlicerSimpleMarkupsWidget ()
 
- Public Member Functions inherited from qSlicerWidget
 qSlicerWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~qSlicerWidget ()
 
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene. More...
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
 
virtual ~qSlicerObject ()
 

Protected Slots

void onMarkupsFiducialEdited (int row, int column)
 Edit the name or position of the currently selected markups node. More...
 
void onMarkupsFiducialNodeAdded (vtkMRMLNode *)
 Setup a newly created markups node - add display node, set color. More...
 
void onMarkupsFiducialNodeChanged ()
 Update the widget when a different markups node is selected by the combo box. More...
 
void onMarkupsFiducialSelected (int row, int column)
 Clicked on a fiducial or used keyboard to move between fiducials in the table. More...
 
void onMarkupsFiducialTableContextMenu (const QPoint &position)
 Create context menu for the table displaying the currently selected markups node. More...
 
void updateWidget ()
 Update the GUI to reflect the currently selected markups node. More...
 

Protected Member Functions

virtual void setup ()
 

Protected Attributes

QScopedPointer< qSlicerSimpleMarkupsWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerWidget
QScopedPointer< qSlicerWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
 

Detailed Description

Definition at line 37 of file qSlicerSimpleMarkupsWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 50 of file qSlicerSimpleMarkupsWidget.h.

Property Documentation

◆ defaultNodeColor

QColor qSlicerSimpleMarkupsWidget::defaultNodeColor
readwrite

Definition at line 46 of file qSlicerSimpleMarkupsWidget.h.

◆ enterPlaceModeOnNodeChange

bool qSlicerSimpleMarkupsWidget::enterPlaceModeOnNodeChange
readwrite

Definition at line 41 of file qSlicerSimpleMarkupsWidget.h.

◆ jumpToSliceEnabled

bool qSlicerSimpleMarkupsWidget::jumpToSliceEnabled
readwrite

Definition at line 42 of file qSlicerSimpleMarkupsWidget.h.

◆ nodeColor

QColor qSlicerSimpleMarkupsWidget::nodeColor
readwrite

Definition at line 45 of file qSlicerSimpleMarkupsWidget.h.

◆ nodeSelectorVisible

bool qSlicerSimpleMarkupsWidget::nodeSelectorVisible
readwrite

Definition at line 43 of file qSlicerSimpleMarkupsWidget.h.

◆ optionsVisible

bool qSlicerSimpleMarkupsWidget::optionsVisible
readwrite

Definition at line 44 of file qSlicerSimpleMarkupsWidget.h.

◆ viewGroup

int qSlicerSimpleMarkupsWidget::viewGroup
readwrite

Definition at line 47 of file qSlicerSimpleMarkupsWidget.h.

Constructor & Destructor Documentation

◆ qSlicerSimpleMarkupsWidget()

qSlicerSimpleMarkupsWidget::qSlicerSimpleMarkupsWidget ( QWidget *  parent = 0)

◆ ~qSlicerSimpleMarkupsWidget()

virtual qSlicerSimpleMarkupsWidget::~qSlicerSimpleMarkupsWidget ( )
virtual

Member Function Documentation

◆ activate

void qSlicerSimpleMarkupsWidget::activate ( )
slot

Set the currently selected markups node to be the active markups node in the Slicer scene.

◆ activeMarkupsFiducialPlaceModeChanged

void qSlicerSimpleMarkupsWidget::activeMarkupsFiducialPlaceModeChanged ( bool  enabled)
signal

This signal is emitted when place mode for the active markup is changed to enabled or disabled. The argument enabled is true if the currently selected markups node is active and in place mode. The argument enabled is false if the currently selected markups node is not active or not in place mode.

◆ currentMarkupsFiducialSelectionChanged

void qSlicerSimpleMarkupsWidget::currentMarkupsFiducialSelectionChanged ( int  markupIndex)
signal

This signal is emitted when a different markup point is selected in the table. The argument markupIndex is the index of the selected markup.

◆ currentNode()

Q_INVOKABLE vtkMRMLNode* qSlicerSimpleMarkupsWidget::currentNode ( ) const

Get the currently selected markups node.

◆ defaultNodeColor()

QColor qSlicerSimpleMarkupsWidget::defaultNodeColor ( ) const

Get the default node color that is applied to newly created nodes.

◆ enterPlaceModeOnNodeChange()

bool qSlicerSimpleMarkupsWidget::enterPlaceModeOnNodeChange ( ) const

Accessors to control place mode behavior.

◆ getCurrentNode()

Q_INVOKABLE vtkMRMLNode* qSlicerSimpleMarkupsWidget::getCurrentNode ( )

Deprecated. Use currentNode() instead.

◆ highlightNthFiducial

void qSlicerSimpleMarkupsWidget::highlightNthFiducial ( int  n)
slot

Scrolls to and selects the Nth fiducial in the table of fiducials.

◆ jumpToSliceEnabled()

bool qSlicerSimpleMarkupsWidget::jumpToSliceEnabled ( ) const

If enabled then the fiducial will be shown in all slice views when a fiducial is selected /sa setViewGroup

◆ markupsFiducialNodeChanged

void qSlicerSimpleMarkupsWidget::markupsFiducialNodeChanged ( )
signal

The signal is emitted when a different markup node is selected.

◆ markupsPlaceWidget()

Q_INVOKABLE qSlicerMarkupsPlaceWidget* qSlicerSimpleMarkupsWidget::markupsPlaceWidget ( ) const

Get the markups placement widget (containing place and delete button)

◆ markupsSelectorComboBox()

Q_INVOKABLE qMRMLNodeComboBox* qSlicerSimpleMarkupsWidget::markupsSelectorComboBox ( ) const

Get the markup node selector combo box.

◆ nodeColor()

QColor qSlicerSimpleMarkupsWidget::nodeColor ( ) const

Get the selected color of the currently selected markups node.

◆ nodeSelectorVisible()

bool qSlicerSimpleMarkupsWidget::nodeSelectorVisible ( ) const

Show/hide the markup node selector widget.

◆ onMarkupsFiducialEdited

void qSlicerSimpleMarkupsWidget::onMarkupsFiducialEdited ( int  row,
int  column 
)
protectedslot

Edit the name or position of the currently selected markups node.

◆ onMarkupsFiducialNodeAdded

void qSlicerSimpleMarkupsWidget::onMarkupsFiducialNodeAdded ( vtkMRMLNode )
protectedslot

Setup a newly created markups node - add display node, set color.

◆ onMarkupsFiducialNodeChanged

void qSlicerSimpleMarkupsWidget::onMarkupsFiducialNodeChanged ( )
protectedslot

Update the widget when a different markups node is selected by the combo box.

◆ onMarkupsFiducialSelected

void qSlicerSimpleMarkupsWidget::onMarkupsFiducialSelected ( int  row,
int  column 
)
protectedslot

Clicked on a fiducial or used keyboard to move between fiducials in the table.

◆ onMarkupsFiducialTableContextMenu

void qSlicerSimpleMarkupsWidget::onMarkupsFiducialTableContextMenu ( const QPoint &  position)
protectedslot

Create context menu for the table displaying the currently selected markups node.

◆ optionsVisible()

bool qSlicerSimpleMarkupsWidget::optionsVisible ( ) const

Show/hide options (place, activate, color, etc buttons).

◆ placeActive

void qSlicerSimpleMarkupsWidget::placeActive ( bool  place)
slot

Set the currently selected markups node to be the active markups node in the Slicer scene. The argument place is true then also interaction mode is set to place mode.

◆ setCurrentNode

void qSlicerSimpleMarkupsWidget::setCurrentNode ( vtkMRMLNode currentNode)
slot

Set the currently selected markups node.

◆ setDefaultNodeColor

void qSlicerSimpleMarkupsWidget::setDefaultNodeColor ( QColor  color)
slot

Set the default color that is assigned to newly created markups nodes in the combo box.

◆ setEnterPlaceModeOnNodeChange

void qSlicerSimpleMarkupsWidget::setEnterPlaceModeOnNodeChange ( bool  )
slot

Accessors to control place mode behavior.

◆ setJumpToSliceEnabled

void qSlicerSimpleMarkupsWidget::setJumpToSliceEnabled ( bool  )
slot

If enabled then the fiducial will be shown in all slice views when a fiducial is selected.

◆ setMRMLScene

void qSlicerSimpleMarkupsWidget::setMRMLScene ( vtkMRMLScene scene)
slot

◆ setNodeBaseName

void qSlicerSimpleMarkupsWidget::setNodeBaseName ( QString  newNodeBaseName)
slot

Set the default name of the markups node created in the combo box.

◆ setNodeColor

void qSlicerSimpleMarkupsWidget::setNodeColor ( QColor  color)
slot

Set the selected color of the currently selected markups node.

◆ setNodeSelectorVisible

void qSlicerSimpleMarkupsWidget::setNodeSelectorVisible ( bool  )
slot

Show/hide the markup node selector widget.

◆ setOptionsVisible

void qSlicerSimpleMarkupsWidget::setOptionsVisible ( bool  )
slot

Show/hide options (place, activate, color, etc buttons).

◆ setup()

virtual void qSlicerSimpleMarkupsWidget::setup ( )
protectedvirtual

◆ setViewGroup()

void qSlicerSimpleMarkupsWidget::setViewGroup ( int  newViewGroup)

Set views where slice positions will be updated on jump to slice. If it is set to -1 (by default it is) then all slices will be jumped.

◆ tableWidget()

Q_INVOKABLE QTableWidget* qSlicerSimpleMarkupsWidget::tableWidget ( ) const

Get the markups table widget.

◆ updateFinished

void qSlicerSimpleMarkupsWidget::updateFinished ( )
signal

This signal is emitted if updates to the widget have finished. It is called after fiducials are changed (added, position modified, etc).

◆ updateWidget

void qSlicerSimpleMarkupsWidget::updateWidget ( )
protectedslot

Update the GUI to reflect the currently selected markups node.

◆ viewGroup()

int qSlicerSimpleMarkupsWidget::viewGroup ( ) const

Get view group where slice positions will be updated.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerSimpleMarkupsWidgetPrivate> qSlicerSimpleMarkupsWidget::d_ptr
protected

Definition at line 169 of file qSlicerSimpleMarkupsWidget.h.


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