View Issue Details

IDProjectCategoryView StatusLast Update
0002487Slicer4Core: MRMLpublic2014-03-06 05:54
Reporternicole Assigned Toalexy  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.4.0 
Summary0002487: provide a utility method in vtkMRMLHierarchyNode to move hierarchies up/down one in parent
Description

Currently, I can call SetIndexInParent to set the index of a hierarchy node in it's parent hierarchy, and I can call SetSortingValue to manuallly set a sorting value.

The problem I'm having is that after moving around child hierarchy nodes by setting their index in parent to + or - 1 the current index, the sorting values have become much smaller and my nodes aren't moving as expected (they can jump 2 places).
I'd rather not have to do a manual calculation repeating what's done in SetIndexInParent with the sorting values, I'd like to just call a method on the hierarchy node class to move the child up or down one in the parent's sorted list.

Steps To Reproduce

TBD: write a test illustrating the problem since I don't want to enable move fiducial up/down buttons in the Annotation GUI until this works as expected.

Additional Information

Created new method: void vtkMRMLHierarchyNode::MoveInParent(int increment)
Added tests for this method in vtkMRMLHierarchyNodeTest3.
http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22263

TagsNo tags attached.

Activities

nicole

nicole

2012-09-07 12:10

administrator   ~0006011

it will also be needed to fix drag and drop sorting of annotations and probably models.

jcfr

jcfr

2014-03-06 05:21

administrator   ~0011155

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-09-07 12:07 nicole New Issue
2012-09-07 12:07 nicole Status new => assigned
2012-09-07 12:07 nicole Assigned To => alexy
2012-09-07 12:10 nicole Note Added: 0006011
2013-08-06 10:09 alexy Status assigned => resolved
2013-08-06 10:09 alexy Resolution open => fixed
2013-08-06 10:09 alexy Additional Information Updated
2014-03-06 05:21 jcfr Note Added: 0011155
2014-03-06 05:23 jcfr Status resolved => closed
2014-03-06 05:54 jcfr Fixed in Version => Slicer 4.4.0