Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Markups/qSlicerMarkupsModuleWidget.h>
Public Types | |
typedef qSlicerAbstractModuleWidget | Superclass |
Public Types inherited from qSlicerAbstractModuleRepresentation | |
typedef qSlicerObject | Superclass |
Public Slots | |
void | addSelectedCoordinatesToMenu (QMenu *menu) |
Add the coordinates of the currently selected markups as strings to the given menu, then add a separator. More... | |
void | checkForAnnotationFiducialConversion () |
void | convertAnnotationFiducialsToMarkups () |
void | copySelectedToNamedList (QString listName) |
Respond to the user selecting another list to copy the selected markup. More... | |
QStringList | getOtherMarkupNames (vtkMRMLNode *thisMarkup) |
void | moveSelectedToNamedList (QString listName) |
void | onActiveMarkupMRMLNodeAdded (vtkMRMLNode *markupsNode) |
void | onActiveMarkupMRMLNodeChanged (vtkMRMLNode *markupsNode) |
Update the selection node from the combo box. More... | |
void | onActiveMarkupsNodeDisplayModifiedEvent () |
Update the display properties widgets when the display node is modified. More... | |
void | onActiveMarkupsNodeLabelFormatModifiedEvent () |
Update the format text entry from the node. More... | |
void | onActiveMarkupsNodeLockModifiedEvent () |
Enable/disable editing the table if the markups node is un/locked. More... | |
void | onActiveMarkupsNodeMarkupAddedEvent (vtkObject *caller, vtkObject *callData) |
Update the table with the new markup if the node is active. More... | |
void | onActiveMarkupsNodeMarkupRemovedEvent () |
Update the table for the removed markup if the node is active. More... | |
void | onActiveMarkupsNodeNthMarkupModifiedEvent (vtkObject *caller, vtkObject *callData) |
Update a table row from a modified markup. More... | |
void | onActiveMarkupsNodePointModifiedEvent (vtkObject *caller, vtkObject *callData) |
void | onActiveMarkupsNodeTransformModifiedEvent () |
Update the transform related elemetns of the gui when the transform node is modified. More... | |
void | onActiveMarkupTableCellChanged (int row, int column) |
Update the mrml node from the table. More... | |
void | onActiveMarkupTableCellClicked (QTableWidgetItem *item) |
React to clicks in the table. More... | |
void | onActiveMarkupTableCurrentCellChanged (int currentRow, int currentColumn, int previousRow, int previousColumn) |
React to arrows setting the current cell. More... | |
void | onAddMarkupPushButtonClicked () |
void | onCopyToOtherListActionTriggered () |
Right click action slot for copy. More... | |
void | onDeleteAllMarkupsInListPushButtonClicked () |
void | onDeleteMarkupPushButtonClicked () |
void | onDeselectAllMarkupsInListPushButtonClicked () |
void | onGlyphScaleSliderWidgetChanged (double value) |
void | onGlyphTypeComboBoxChanged (QString value) |
void | onHideCoordinateColumnsToggled (bool checked) |
update visibility of the coordinate columns in the table More... | |
void | onJumpSlicesActionTriggered () |
Jump slices action slot. More... | |
void | onListLockedUnlockedPushButtonClicked () |
Toggle the markups node locked flag. More... | |
void | onListVisibileInvisiblePushButtonClicked () |
Toggle the markups node visibility flag. More... | |
void | onLockAllMarkupsInListPushButtonClicked () |
void | onLockAllMarkupsInListToggled () |
void | onMarkupScaleSliderWidgetValueChanged (double value) |
void | onMoveMarkupDownPushButtonClicked () |
void | onMoveMarkupUpPushButtonClicked () |
void | onMoveToOtherListActionTriggered () |
Right click action slot for move. More... | |
void | onMRMLSceneEndBatchProcessEvent () |
void | onMRMLSceneEndCloseEvent () |
Clear out the gui when the scene is closed. More... | |
void | onMRMLSceneEndImportEvent () |
Update the table after a scene is imported. More... | |
void | onMRMLSceneEndRestoreEvent () |
Update the table after a scene view is restored. More... | |
void | onNameFormatLineEditTextEdited (const QString text) |
Update the markup label from the line edit entry. More... | |
void | onNewMarkupWithCurrentDisplayPropertiesTriggered () |
void | onNodeAddedEvent (vtkObject *scene, vtkObject *node) |
void | onNodeRemovedEvent (vtkObject *scene, vtkObject *node) |
void | onOpacitySliderWidgetChanged (double value) |
void | onPKeyActivated () |
Respond to the p key being pressed. More... | |
void | onRefocusCamerasActionTriggered () |
Refocus cameras action slot. More... | |
void | onRenameAllWithCurrentNameFormatPushButtonClicked () |
void | onResetNameFormatToDefaultPushButtonClicked () |
Reset the name format string and use list name to default. More... | |
void | onResetToDefaultDisplayPropertiesPushButtonClicked () |
Display property button slots. More... | |
void | onRightClickActiveMarkupTableWidget (QPoint pos) |
Provide a right click menu in the table. More... | |
void | onSaveToDefaultDisplayPropertiesPushButtonClicked () |
void | onSelectAllMarkupsInListPushButtonClicked () |
void | onSelectedAllMarkupsInListToggled () |
void | onSelectedColorPickerButtonChanged (QColor qcolor) |
Display property slots. More... | |
void | onSelectionNodeActivePlaceNodeIDChanged () |
Update the combo box from the selection node. More... | |
void | onSliceIntersectionsVisibilityToggled (bool checked) |
void | onTextScaleSliderWidgetChanged (double value) |
void | onTransformedCoordinatesToggled (bool checked) |
update the coordinates shown in the table to be either the transformed coordiantes (checked) or the untransformed coordiantes (unchecked) More... | |
void | onUnlockAllMarkupsInListPushButtonClicked () |
void | onUnselectedColorPickerButtonChanged (QColor qcolor) |
void | onVisibilityAllMarkupsInListToggled () |
void | onVisibilityOffAllMarkupsInListPushButtonClicked () |
void | onVisibilityOnAllMarkupsInListPushButtonClicked () |
List button slots. More... | |
void | updateListVisibileInvisiblePushButton (int visibleFlag) |
Update the icon and tool tip on the list visibility button. More... | |
Public Slots inherited from qSlicerWidget | |
virtual void | setMRMLScene (vtkMRMLScene *scene) |
Public Member Functions | |
void | clearGUI () |
Reset the GUI elements: clear out the table. More... | |
virtual void | enter () |
virtual void | exit () |
Disconnect from scene when exiting. More... | |
void | installShortcuts () |
Manage short cuts that allow key bindings for certain functions. More... | |
vtkSlicerMarkupsLogic * | markupsLogic () |
Get the logic in the proper class. More... | |
virtual double | nodeEditable (vtkMRMLNode *node) |
void | observeMarkupsNode (vtkMRMLNode *markupsNode) |
qSlicerMarkupsModuleWidget (QWidget *parent=0) | |
void | removeShortcuts () |
virtual bool | setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) |
Node editing. More... | |
bool | sliceIntersectionsVisible () |
void | updateLogicFromSettings () |
Set up the logic default display settings from the appplication settings. More... | |
void | updateMaximumScaleFromVolumes () |
void | updateRow (int m) |
void | updateWidgetFromDisplayNode () |
void | updateWidgetFromMRML () |
virtual | ~qSlicerMarkupsModuleWidget () |
Public Member Functions inherited from qSlicerAbstractModuleWidget | |
bool | isEntered () const |
qSlicerAbstractModuleWidget (QWidget *parent=0) | |
virtual | ~qSlicerAbstractModuleWidget () |
Public Member Functions inherited from qSlicerWidget | |
qSlicerWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
virtual | ~qSlicerWidget () |
Public Member Functions inherited from qSlicerObject | |
vtkMRMLScene * | mrmlScene () 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 () |
Public Member Functions inherited from qSlicerAbstractModuleRepresentation | |
qSlicerAbstractCoreModule * | module () const |
QString | moduleName () const |
Set/Get module name. More... | |
qSlicerAbstractModuleRepresentation () | |
virtual | ~qSlicerAbstractModuleRepresentation () |
Protected Member Functions | |
virtual void | setup () |
Protected Member Functions inherited from qSlicerAbstractModuleRepresentation | |
vtkMRMLAbstractLogic * | logic () const |
Protected Attributes | |
QScopedPointer< qSlicerMarkupsModuleWidgetPrivate > | d_ptr |
double | volumeSpacingScaleFactor |
Protected Attributes inherited from qSlicerAbstractModuleWidget | |
QScopedPointer< qSlicerAbstractModuleWidgetPrivate > | d_ptr |
Protected Attributes inherited from qSlicerWidget | |
QScopedPointer< qSlicerWidgetPrivate > | d_ptr |
Protected Attributes inherited from qSlicerObject | |
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
Protected Attributes inherited from qSlicerAbstractModuleRepresentation | |
QScopedPointer< qSlicerAbstractModuleRepresentationPrivate > | d_ptr |
Additional Inherited Members | |
Properties inherited from qSlicerAbstractModuleWidget | |
bool | isEntered |
Signals inherited from qSlicerWidget | |
void | mrmlSceneChanged (vtkMRMLScene *) |
Definition at line 36 of file qSlicerMarkupsModuleWidget.h.
Definition at line 43 of file qSlicerMarkupsModuleWidget.h.
qSlicerMarkupsModuleWidget::qSlicerMarkupsModuleWidget | ( | QWidget * | parent = 0 | ) |
|
virtual |
|
slot |
Add the coordinates of the currently selected markups as strings to the given menu, then add a separator.
|
slot |
Called from enter and on import/add mrml events to ask if the user wishes to convert annotation fiducial heirarchies into markups list nodes.
void qSlicerMarkupsModuleWidget::clearGUI | ( | ) |
Reset the GUI elements: clear out the table.
|
slot |
Uses the Logic to do the conversion from annotation fiducials, moving them from hierarchies to Markups list nodes
|
slot |
Respond to the user selecting another list to copy the selected markup.
|
virtual |
Set up the GUI from mrml when entering
Reimplemented from qSlicerAbstractModuleWidget.
|
virtual |
Disconnect from scene when exiting.
Reimplemented from qSlicerAbstractModuleWidget.
|
slot |
Build a string list of the names of other nodes with the same class name as thisMarkup. Return an empty string list if no other markups in the scene
void qSlicerMarkupsModuleWidget::installShortcuts | ( | ) |
Manage short cuts that allow key bindings for certain functions.
vtkSlicerMarkupsLogic* qSlicerMarkupsModuleWidget::markupsLogic | ( | ) |
Get the logic in the proper class.
|
slot |
Respond to the user selecting another list to move selected markups to the named list, calls logic method to do the move if it can find both markups nodes in the scene
|
virtual |
Returns a confidence value (between 0.0 and 1.0) that defines how much this widget is suitable for editing the provided node. In general value of 0.5 should be used. If the returned value is 0 then it means the node should not be attempted to set as edited node. This node has to be overridden in child classes that want to use a non-default confidence value (for example, they look into the node contents and decide based on that if the node belongs to this module).
Reimplemented from qSlicerAbstractModuleWidget.
void qSlicerMarkupsModuleWidget::observeMarkupsNode | ( | vtkMRMLNode * | markupsNode | ) |
Add observations to the markups node, and remove them from other markups nodes (from all nodes if markupsNode is null)
|
slot |
When the user clicks in the comob box to create a new markups node, make sure that a display node is added
|
slot |
Update the selection node from the combo box.
|
slot |
Update the display properties widgets when the display node is modified.
|
slot |
Update the format text entry from the node.
|
slot |
Enable/disable editing the table if the markups node is un/locked.
|
slot |
Update the table with the new markup if the node is active.
|
slot |
Update the table for the removed markup if the node is active.
|
slot |
Update a table row from a modified markup.
|
slot |
Update the table with the modified point information if the node is active
|
slot |
Update the transform related elemetns of the gui when the transform node is modified.
|
slot |
Update the mrml node from the table.
|
slot |
React to clicks in the table.
|
slot |
React to arrows setting the current cell.
|
slot |
|
slot |
Right click action slot for copy.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
update visibility of the coordinate columns in the table
|
slot |
Jump slices action slot.
|
slot |
Toggle the markups node locked flag.
|
slot |
Toggle the markups node visibility flag.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Right click action slot for move.
|
slot |
Update the table after batch processing is done, needed to trigger an update after a markups file is read in
|
slot |
Clear out the gui when the scene is closed.
|
slot |
Update the table after a scene is imported.
|
slot |
Update the table after a scene view is restored.
|
slot |
Update the markup label from the line edit entry.
|
slot |
Create a new markups node and copy the display node settings from the current markups node if set, otherwise just uses the defaults.
|
slot |
Respond to the scene events when a markups node is added, make it the active one in the combo box
|
slot |
When a node is removed and it is the last one in the scene, clear out the gui - the node combo box will signal that a remaining node has been selected and the GUI will update separately in that case
|
slot |
|
slot |
Respond to the p key being pressed.
|
slot |
Refocus cameras action slot.
|
slot |
Iterate over the markups in the currently active list and rename them using the current name format. Attempts to preserve any numbers already present.
|
slot |
Reset the name format string and use list name to default.
|
slot |
Display property button slots.
|
slot |
Provide a right click menu in the table.
|
slot |
|
slot |
|
slot |
|
slot |
Display property slots.
|
slot |
Update the combo box from the selection node.
|
slot |
Update the slice intersection visibility on all the slice composite nodes in the scene
|
slot |
|
slot |
update the coordinates shown in the table to be either the transformed coordiantes (checked) or the untransformed coordiantes (unchecked)
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
List button slots.
void qSlicerMarkupsModuleWidget::removeShortcuts | ( | ) |
|
virtual |
Node editing.
Reimplemented from qSlicerAbstractModuleWidget.
|
protectedvirtual |
All initialization code (typically setupUi()) must be done in setup() The module and the logic are accessible.
Reimplemented from qSlicerAbstractModuleWidget.
bool qSlicerMarkupsModuleWidget::sliceIntersectionsVisible | ( | ) |
Query the logic as to the state of the slice intersection visibility on the slice composite nodes
|
slot |
Update the icon and tool tip on the list visibility button.
void qSlicerMarkupsModuleWidget::updateLogicFromSettings | ( | ) |
Set up the logic default display settings from the appplication settings.
void qSlicerMarkupsModuleWidget::updateMaximumScaleFromVolumes | ( | ) |
Check Red volume slice spacing to make sure that the glyph and text scale slider maximums allow the glyphs to be scaled so that they can be shown on volumes with spacing larger than the default. Find the maximum background volume spacing and multiply it by the volume spacing scale facotr
void qSlicerMarkupsModuleWidget::updateRow | ( | int | m | ) |
Refresh a row of the gui from the mth markup in the currently active markup node as defined by the selection node combo box
void qSlicerMarkupsModuleWidget::updateWidgetFromDisplayNode | ( | ) |
Update the GUI elements related to the display properties from MRML, by getting the display node associated with the active markups node.
void qSlicerMarkupsModuleWidget::updateWidgetFromMRML | ( | ) |
Refresh the gui from the currently active markup node as determined by the selection node
|
protected |
Definition at line 247 of file qSlicerMarkupsModuleWidget.h.
|
protected |
A multiplication factor to apply to the maximum volume slice spacing when determining what the maximum value for the scale sliders should be.
Definition at line 254 of file qSlicerMarkupsModuleWidget.h.