View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004355 | Slicer4 | Core: Base Code | public | 2017-03-22 15:14 | 2017-06-10 18:41 |
Reporter | leochan2009 | Assigned To | jcfr | ||
Priority | high | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | duplicate | ||
Platform | Mac | OS | sierra | OS Version | |
Product Version | |||||
Target Version | Fixed in Version | Slicer 4.7.0 | |||
Summary | 0004355: interactionNode sometimes can not activate MarkupsPlaceWidget | ||||
Description | I get the interactionNode get from slicer.mrmlScene.GetNodeByID("vtkMRMLInteractionNodeSingleton") | ||||
Tags | No tags attached. | ||||
Same happens for me but with setting a ROI. The very first time executing the following code works: annotationLogic = slicer.modules.annotations.logic() After deactivating programmatically place mode with annotationLogic.StopPlaceMode() and then annotationLogic.StartPlaceMode(False) the mode is not active |
|
After freshly starting, please run the following code. It's supposed to start the place mode and listen to the event of the interactionModeChange. def onInteractionModeChanged(caller, event): annotationsLogic = slicer.modules.annotations.logic() tag = interactionNode.AddObserver(interactionNode.InteractionModeChangedEvent, onInteractionModeChanged) Turn oninteractionNode.SetCurrentInteractionMode(interactionNode.Place) The output of that will be: |
|
The following code works as a workaround: def onInteractionModeChanged(caller, event): annotationsLogic = slicer.modules.annotations.logic() tag = interactionNode.AddObserver(interactionNode.InteractionModeChangedEvent, onInteractionModeChanged) when no list is active in markupsLogic, it won't workmarkupsLogic.AddNewFiducialNode() Turn oninteractionNode.SetCurrentInteractionMode(interactionNode.Place) |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-22 15:14 | leochan2009 | New Issue | |
2017-03-22 15:14 | leochan2009 | Status | new => assigned |
2017-03-22 15:14 | leochan2009 | Assigned To | => jcfr |
2017-03-31 11:22 | criskross | Note Added: 0014400 | |
2017-04-12 12:30 | criskross | Note Added: 0014427 | |
2017-04-12 15:53 | criskross | Note Added: 0014429 | |
2017-06-10 17:32 | lassoan | Status | assigned => closed |
2017-06-10 17:32 | lassoan | Resolution | open => duplicate |
2017-06-10 17:32 | lassoan | Relationship added | duplicate of 0004377 |
2017-06-10 18:41 | jcfr | Fixed in Version | => Slicer 4.7.0 |