View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003138 | Slicer4 | Module Annotations | public | 2013-05-31 11:11 | 2017-06-07 23:27 |
Reporter | kotwicz | Assigned To | nicole | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.2.0 | ||||
Target Version | Slicer 4.3.0 | Fixed in Version | Slicer 4.3.0 | ||
Summary | 0003138: Fiducials not displaying correctly in slice viewers | ||||
Description | fiducialNode = slicer.vtkMRMLAnnotationFiducialNode() This causes the fiducial to appear in the green viewer but not the red or yellow viewer. | ||||
Tags | No tags attached. | ||||
From a quick test with that code snippet, it looks like the 2d fiducial displayable manager is not detecting that the fiducial has been added and that it needs to be displayed (the fiducial is showing up fine in 3d for me on a linux debug build after the initialize call), until there's a post initialization change in the fiducial's location. |
|
|
|
Digging back a bit in the bug archives, something similar had come up previously in bug 3164. If I try this order of python calls, the fiducial shows up in all the viewers for me: Can you check to see if that works for you? |
|
Yes this does work, maybe the initialize function could set the fiducial coordinates to a default [0,0,0]... |
|
The annotations are getting deprecated for the Markups module, it makes the most sense right now to just provide a utility method on the logic to add a new fiducial, checked in as svn 22205[1]. fidID = slicer.modules.annotations.logic().AddFiducial(10.0, -50.0, 8.8, 'P1') [1] http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22205 |
|
Slicer: 2145-support-for-installing-extension-from-file 241ce151 2013-07-17 15:45:27 naucoin Details Diff |
ENH: add a utility method to add a new fiducial Prevents memory leaks and error messages from adding a fiducial and a display node. For access from python, use: fidID = slicer.modules.annotations.logic().AddFiducial(10.0, -50.0, 8.8, 'P1') fidNode = getNode(fidID) Resolves issue 0003138 git-svn-id: http://svn.slicer.org/Slicer4/trunk@22205 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Modules/Loadable/Annotations/Logic/vtkSlicerAnnotationModuleLogic.cxx | Diff File | ||
mod - Modules/Loadable/Annotations/Logic/vtkSlicerAnnotationModuleLogic.h | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-31 11:11 | kotwicz | New Issue | |
2013-05-31 11:11 | kotwicz | Status | new => assigned |
2013-05-31 11:11 | kotwicz | Assigned To | => nicole |
2013-07-12 06:35 | nicole | Note Added: 0009022 | |
2013-07-12 06:36 | nicole | Target Version | => Slicer 4.3.0 |
2013-07-12 06:39 | kotwicz | Note Added: 0009023 | |
2013-07-12 09:55 | nicole | Note Added: 0009026 | |
2013-07-12 10:01 | kotwicz | Note Added: 0009027 | |
2013-07-17 11:46 | nicole | Note Added: 0009108 | |
2013-07-17 11:46 | nicole | Status | assigned => resolved |
2013-07-17 11:46 | nicole | Fixed in Version | => Slicer 4.3.0 |
2013-07-17 11:46 | nicole | Resolution | open => fixed |
2013-07-17 11:50 | nicole | Relationship added | related to 0003164 |
2013-07-17 12:17 | kotwicz | Status | resolved => closed |
2017-06-07 23:27 | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file 241ce151 |