Hi Miklos,

the mitk::StandaloneDataStorage internally uses a std::map with 
mitk::DataNode::Pointer objects as the keys. And the default ordering 
relation for std::map is std::less so it uses the operator<() method of 
the ITK smart pointer which in turn uses the memory address of the 
object it points to.

So depending on the address the datanode memory is allocated, the order 
changes... I agree that this is not optimal.

Maybe we can work around this by setting the "layer" property of the 
datanodes created via command line arguments, so that they are always 
sorted the same way in the data manager (although they would keep their 
arbitrary order in the data storage).

What do you think?

Best,
Sascha

On 07/10/2014 05:38 PM, Miklos Espak wrote:
> Hi,
>
> MitkWorkbench loads the images that are specified on the command line. 
> However, the images appear in the data manager in a different order 
> than specified on the command line.
>
> Moreover, the order always changes, even if the command is the very same.
>
> Is there any workaround for this?
>
> Cheers,
> Miklos
>


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to