Slicer
5.1
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 | copySelectedToClipboard () |
void | cutSelectedToClipboard () |
void | enableMarkupTableButtons (bool enable) |
QStringList | getOtherMarkupNames (vtkMRMLNode *thisMarkup) |
void | observeMeasurementsInCurrentMarkupsNode () |
Make sure all measurements in the current markups node are observed. More... | |
void | onActiveMarkupItemChanged (vtkIdType) |
Update the selection node from the tree view. More... | |
void | onActiveMarkupMRMLNodeAdded (vtkMRMLNode *markupsNode) |
void | onActiveMarkupMRMLNodeChanged (vtkMRMLNode *markupsNode) |
void | onActiveMarkupsNodeDisplayModifiedEvent () |
Update the display properties widgets when the display node is modified. More... | |
void | onActiveMarkupsNodeModifiedEvent () |
Update table when markups node is modified. More... | |
void | onActiveMarkupsNodePointAddedEvent () |
Update the table with the new point information if the node is active. More... | |
void | onActiveMarkupsNodePointModifiedEvent (vtkObject *caller, void *callData) |
Update the table with the modified point information if the node is active. More... | |
void | onActiveMarkupsNodePointRemovedEvent (vtkObject *caller, void *callData) |
Update the table for the removed point if the node is active. More... | |
void | onActiveMarkupsNodeTransformModifiedEvent () |
Update the transform related elements 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 | onAddControlPointPushButtonClicked () |
void | onColorLegendCollapsibleGroupBoxToggled (bool) |
Create or get first color legend if group box is expanded. More... | |
void | onCreateMarkupByClass (const QString &className) |
Create markups node by class. More... | |
void | onCreateMarkupsPushButtons () |
Update set of create markups push buttons. More... | |
void | onDeleteAllControlPointsInListPushButtonClicked () |
void | onDeleteControlPointPushButtonClicked (bool confirm=true) |
void | onDeselectAllControlPointsInListPushButtonClicked () |
void | onFixedNumberOfControlPointsPushButtonClicked () |
Toggle the markups node control point number locked flag. More... | |
void | onHideCoordinateColumnsToggled (int index) |
update visibility of the coordinate columns in the table More... | |
void | onImportExportApply () |
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 | onLockAllControlPointsInListPushButtonClicked () |
void | onLockAllControlPointsInListToggled () |
void | onMeasurementEnabledCheckboxToggled (bool on) |
Enable/disable measurement when an enable checkbox has been toggled. More... | |
void | onMeasurementModified (vtkObject *caller) |
Update measurement information on GUI when a measurement is modified. More... | |
void | onMeasurementsCollectionModified () |
Update observations on measurements when their container is modified (i.e. measurement added or removed) More... | |
void | onMissingControlPointPushButtonClicked () |
void | onMoveControlPointDownPushButtonClicked () |
void | onMoveControlPointUpPushButtonClicked () |
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 | onPKeyActivated () |
Respond to the p key being pressed. More... | |
void | onRefocusCamerasActionTriggered () |
Refocus cameras action slot. More... | |
void | onRenameAllWithCurrentNameFormatPushButtonClicked () |
void | onResetControlPointPushButtonClicked () |
void | onResetNameFormatToDefaultPushButtonClicked () |
Reset the name format string and use list name to default. More... | |
void | onResetToDefaultDisplayPropertiesPushButtonClicked () |
Display property button slots. More... | |
void | onRestoreControlPointPushButtonClicked () |
void | onRightClickActiveMarkupTableWidget (QPoint pos) |
Provide a right click menu in the table. More... | |
void | onSaveToDefaultDisplayPropertiesPushButtonClicked () |
void | onSelectAllControlPointsInListPushButtonClicked () |
void | onSelectedAllControlPointsInListToggled () |
void | onSelectionNodeActivePlaceNodeIDChanged () |
Update the combo box from the selection node. More... | |
void | onSliceIntersectionsVisibilityToggled (bool checked) |
void | onTransformedCoordinatesToggled (bool checked) |
update the coordinates shown in the table to be either the transformed coordinates (checked) or the untransformed coordinates (unchecked) More... | |
void | onUnlockAllControlPointsInListPushButtonClicked () |
void | onUnsetControlPointPushButtonClicked () |
void | onUpdateMarkupsOptionsWidgets () |
Update internal list of markups options widgets from qMRMLMarkupsOptionsWidgetsFactory. More... | |
void | onVisibilityAllControlPointsInListToggled () |
void | onVisibilityOffAllControlPointsInListPushButtonClicked () |
void | onVisibilityOnAllControlPointsInListPushButtonClicked () |
List button slots. More... | |
void | onVisibilityOnAllMarkupsInListPushButtonClicked () |
void | pasteSelectedFromClipboard () |
void | populateMeasurementSettingsTable () |
Populate measurement settings frame from the available measurements in the current markup. More... | |
void | updateImportExportWidgets () |
void | updateMeasurementsDescriptionLabel () |
Update measurements description label. More... | |
Public Slots inherited from qSlicerWidget | |
void | setMRMLScene (vtkMRMLScene *scene) override |
Protected Member Functions | |
void | setup () override |
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 40 of file qSlicerMarkupsModuleWidget.h.
Definition at line 47 of file qSlicerMarkupsModuleWidget.h.
qSlicerMarkupsModuleWidget::qSlicerMarkupsModuleWidget | ( | QWidget * | parent = nullptr | ) |
|
override |
QList<qMRMLMarkupsOptionsWidget*>& qSlicerMarkupsModuleWidget::additionalWidgets | ( | ) |
|
slot |
Add the coordinates of the currently selected markups as strings to the given menu, then add a separator.
QStringList& qSlicerMarkupsModuleWidget::associatedMarkups | ( | ) |
|
slot |
Called from enter and on import/add mrml events to ask if the user wishes to convert annotation fiducial hierarchies into markups list nodes.
|
slot |
Uses the Logic to do the conversion from annotation fiducials, moving them from hierarchies to Markups list nodes
|
slot |
|
slot |
|
slot |
|
overridevirtual |
Set up the GUI from mrml when entering
Reimplemented from qSlicerAbstractModuleWidget.
|
overridevirtual |
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
vtkSlicerMarkupsLogic* qSlicerMarkupsModuleWidget::markupsLogic | ( | ) |
Get the logic in the proper class.
vtkMRMLMarkupsNode* qSlicerMarkupsModuleWidget::mrmlMarkupsNode | ( | ) |
Get currently selected markups node.
|
overridevirtual |
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.
|
slot |
Make sure all measurements in the current markups node are observed.
|
slot |
Update the selection node from the tree view.
|
slot |
When the user clicks in the combo box to create a new markups node, make sure that a display node is added
|
slot |
|
slot |
Update the display properties widgets when the display node is modified.
|
slot |
Update table when markups node is modified.
|
slot |
Update the table with the new point information if the node is active.
|
slot |
Update the table with the modified point information if the node is active.
|
slot |
Update the table for the removed point if the node is active.
|
slot |
Update the transform related elements 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 |
|
inline |
Definition at line 334 of file qSlicerMarkupsModuleWidget.h.
|
slot |
Create or get first color legend if group box is expanded.
|
slot |
Create markups node by class.
|
slot |
Update set of create markups push buttons.
|
slot |
|
inline |
Definition at line 382 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
inline |
Definition at line 376 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
inline |
Definition at line 322 of file qSlicerMarkupsModuleWidget.h.
|
slot |
Toggle the markups node control point number locked flag.
|
slot |
update visibility of the coordinate columns in the table
|
slot |
|
slot |
Jump slices action slot.
|
slot |
Toggle the markups node locked flag.
|
slot |
Toggle the markups node visibility flag.
|
slot |
|
slot |
|
inline |
Definition at line 298 of file qSlicerMarkupsModuleWidget.h.
|
inline |
Definition at line 310 of file qSlicerMarkupsModuleWidget.h.
|
slot |
Enable/disable measurement when an enable checkbox has been toggled.
|
slot |
Update measurement information on GUI when a measurement is modified.
|
slot |
Update observations on measurements when their container is modified (i.e. measurement added or removed)
|
slot |
|
inline |
Definition at line 370 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
slot |
|
inline |
Definition at line 346 of file qSlicerMarkupsModuleWidget.h.
|
inline |
Definition at line 340 of file qSlicerMarkupsModuleWidget.h.
|
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 |
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 |
|
inline |
Definition at line 358 of file qSlicerMarkupsModuleWidget.h.
|
slot |
Reset the name format string and use list name to default.
|
slot |
Display property button slots.
|
slot |
|
inline |
Definition at line 352 of file qSlicerMarkupsModuleWidget.h.
|
slot |
Provide a right click menu in the table.
|
slot |
|
slot |
|
inline |
Definition at line 316 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
inline |
Definition at line 328 of file qSlicerMarkupsModuleWidget.h.
|
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 |
update the coordinates shown in the table to be either the transformed coordinates (checked) or the untransformed coordinates (unchecked)
|
slot |
|
inline |
Definition at line 304 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
inline |
Definition at line 364 of file qSlicerMarkupsModuleWidget.h.
|
slot |
Update internal list of markups options widgets from qMRMLMarkupsOptionsWidgetsFactory.
|
slot |
|
inline |
Definition at line 292 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
inline |
Definition at line 286 of file qSlicerMarkupsModuleWidget.h.
|
slot |
List button slots.
|
inlineslot |
Definition at line 280 of file qSlicerMarkupsModuleWidget.h.
|
slot |
|
slot |
Populate measurement settings frame from the available measurements in the current markup.
void qSlicerMarkupsModuleWidget::setCreateMarkupsButtonsColumns | ( | unsigned int | columns | ) |
|
overridevirtual |
Node editing.
Reimplemented from qSlicerAbstractModuleWidget.
void qSlicerMarkupsModuleWidget::setMRMLMarkupsNode | ( | vtkMRMLMarkupsNode * | markupsNode | ) |
Add observations to the markups node, and remove them from other markups nodes (from all nodes if markupsNode is null)
|
overrideprotectedvirtual |
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 |
void qSlicerMarkupsModuleWidget::updateLogicFromSettings | ( | ) |
Set up the logic default display settings from the application 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 factor
|
slot |
Update measurements description label.
void qSlicerMarkupsModuleWidget::updateRow | ( | int | m | ) |
Refresh a row of the control points table from the m-th markup.
void qSlicerMarkupsModuleWidget::updateRows | ( | ) |
Refresh all the rows of the control points table from the markup node.
Q_INVOKABLE void qSlicerMarkupsModuleWidget::updateToolBar | ( | vtkMRMLMarkupsNode * | node | ) |
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 386 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 396 of file qSlicerMarkupsModuleWidget.h.