View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003502 | Slicer4 | Module Markups | public | 2013-11-19 06:51 | 2018-03-02 11:02 |
Reporter | Lchauvin | Assigned To | nicole | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | Slicer 4.7.0 | |||
Summary | 0003502: Get Markups with ID | ||||
Description | It would be great to be able to get Markups with their ID. | ||||
Tags | No tags attached. | ||||
https://github.com/Slicer/Slicer/pull/83/files Please add a test. |
|
Is there any mechanism for organizing Markups ? (Like move up, move down). |
|
Yes, Markups can be moved down/up or removed and that will shift things, but a quick check at the ID index will generally succeed. |
|
Should I do a double check ? |
|
yes, that's what I was suggesting. |
|
Ok, I can implement that. |
|
Thinking more about it, +/-1 around the id index can be skipped, that might be too much code for the cases where only 1 fid was removed or moved. Add a few calls to the vtkMRMLMarkupsNodeTest2.cxx file to check that the index and id match up (also add tests for null and unmoved/deleted markups in a list). |
|
Is this test enough ? |
|
The test is a good start, I'd also add testing the failure cases (trying to get a markup with an id that doesn't exist in the list, trying with a null ID). After looking at the code, you don't need to add the test around the index in the ID, it won't be very helpful. |
|
vtkMRMLMarkupsNode::GetMarkupIndexByID() method is now available that implements this functionality(http://apidocs.slicer.org/master/classvtkMRMLMarkupsNode.html#a29ef78f692c11028e869be840791afc1) |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-11-19 06:51 | Lchauvin | New Issue | |
2013-11-19 06:51 | Lchauvin | Status | new => assigned |
2013-11-19 06:51 | Lchauvin | Assigned To | => nicole |
2013-11-19 08:52 | nicole | Note Added: 0010338 | |
2013-11-19 09:00 | Lchauvin | Note Added: 0010339 | |
2013-11-19 09:18 | nicole | Note Added: 0010340 | |
2013-11-19 09:20 | Lchauvin | Note Added: 0010341 | |
2013-11-19 09:27 | nicole | Note Added: 0010342 | |
2013-11-19 10:24 | Lchauvin | Note Added: 0010343 | |
2013-11-19 10:47 | nicole | Note Added: 0010344 | |
2013-11-19 13:26 | Lchauvin | Note Added: 0010346 | |
2013-11-20 07:22 | nicole | Note Added: 0010353 | |
2017-06-15 11:09 | lassoan | Status | assigned => resolved |
2017-06-15 11:09 | lassoan | Resolution | open => fixed |
2017-06-15 11:09 | lassoan | Note Added: 0014859 | |
2017-06-15 11:10 | jcfr | Fixed in Version | => Slicer 4.7.0 |
2018-03-02 11:02 | jcfr | Status | resolved => closed |