Slicer
4.11
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 () |
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 | onAddMarkupPushButtonClicked () |
void | onAngleMeasurementModeChanged () |
Change angle mode of current angle markup if combobox selection is made. More... | |
void | onApplyCurveResamplingPushButtonClicked () |
Resample Curve button slot. More... | |
void | onCreateMarkupsAngle () |
void | onCreateMarkupsClosedCurve () |
void | onCreateMarkupsFiducial () |
void | onCreateMarkupsLine () |
void | onCreateMarkupsOpenCurve () |
void | onCreateMarkupsPlane () |
void | onCreateMarkupsROI () |
void | onCurveTypeParameterChanged () |
Change in a widget related to a surface curve type parameter. More... | |
void | onDeleteAllMarkupsInListPushButtonClicked () |
void | onDeleteMarkupPushButtonClicked (bool confirm=true) |
void | onDeselectAllMarkupsInListPushButtonClicked () |
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 | 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 | onMoveMarkupDownPushButtonClicked () |
void | onMoveMarkupUpPushButtonClicked () |
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 | 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 | onROITypeParameterChanged () |
Change in ROI parameter widget. More... | |
void | onRotationAxisChanged () |
Update angle measurement rotation axis if the user edits the column vector. More... | |
void | onSaveToDefaultDisplayPropertiesPushButtonClicked () |
void | onSelectAllMarkupsInListPushButtonClicked () |
void | onSelectedAllMarkupsInListToggled () |
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 | onUnlockAllMarkupsInListPushButtonClicked () |
void | onVisibilityAllMarkupsInListToggled () |
void | onVisibilityOffAllMarkupsInListPushButtonClicked () |
void | onVisibilityOnAllMarkupsInListPushButtonClicked () |
List button slots. More... | |
void | pasteSelectedFromClipboard () |
void | populateMeasurementSettingsTable () |
Populate measurement settings frame from the available measurements in the current markup. More... | |
void | updateMeasurementsDescriptionLabel () |
Update measurements description label. More... | |
Public Slots inherited from qSlicerWidget | |
void | setMRMLScene (vtkMRMLScene *scene) override |
Public Member Functions | |
void | enter () override |
void | exit () override |
Disconnect from scene when exiting. More... | |
vtkSlicerMarkupsLogic * | markupsLogic () |
Get the logic in the proper class. More... | |
double | nodeEditable (vtkMRMLNode *node) override |
qSlicerMarkupsModuleWidget (QWidget *parent=nullptr) | |
bool | setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) override |
Node editing. More... | |
void | setMRMLMarkupsNode (vtkMRMLMarkupsNode *markupsNode) |
bool | sliceIntersectionsVisible () |
void | updateLogicFromSettings () |
Set up the logic default display settings from the application settings. More... | |
void | updateMaximumScaleFromVolumes () |
void | updateRow (int m) |
void | updateWidgetFromDisplayNode () |
void | updateWidgetFromMRML () |
~qSlicerMarkupsModuleWidget () override | |
Public Member Functions inherited from qSlicerAbstractModuleWidget | |
bool | isEntered () const |
qSlicerAbstractModuleWidget (QWidget *parent=nullptr) | |
~qSlicerAbstractModuleWidget () override | |
Public Member Functions inherited from qSlicerWidget | |
vtkSlicerApplicationLogic * | appLogic () const |
vtkMRMLAbstractLogic * | moduleLogic (const QString &moduleName) const |
qSlicerWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~qSlicerWidget () override | |
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 () | |
~qSlicerAbstractModuleRepresentation () 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 37 of file qSlicerMarkupsModuleWidget.h.
Definition at line 44 of file qSlicerMarkupsModuleWidget.h.
qSlicerMarkupsModuleWidget::qSlicerMarkupsModuleWidget | ( | QWidget * | parent = nullptr | ) |
|
override |
|
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 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 |
|
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.
|
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 |
|
slot |
Change angle mode of current angle markup if combobox selection is made.
|
slot |
Resample Curve button slot.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Change in a widget related to a surface curve type parameter.
|
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 |
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 |
|
slot |
|
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 |
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 |
Change in ROI parameter widget.
|
slot |
Update angle measurement rotation axis if the user edits the column vector.
|
slot |
|
slot |
|
slot |
|
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 |
|
slot |
|
slot |
|
slot |
List button slots.
|
slot |
|
slot |
Populate measurement settings frame from the available measurements in the current markup.
|
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
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 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 254 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 261 of file qSlicerMarkupsModuleWidget.h.