Hi Sascha,
thanks for looking into this!
Your idea sounds good. The internal order in the data storage does not
matter, just the order in the data manager, i.e. the layer.
Suddenly this issue become top priority for us for the command line
integration of NifTK with another in-house software.
There will probably be other requirements, e.g. specifying the parent-child
relation of nodes in the command line, or specifying arbitrary properties.
We are still gathering the exact requirements, it can happen that we will
need to write a helper app that creates a full project scene file that can
then be loaded at start.
Either way we go, it would be good to agree in a command line syntax for
specifying node properties and hierarchy from the command line. It's going
to be complicated because we will surely need to specify renderer specific
properties as well. (It comes very handy that they are now assigned to the
renderer names, not the address. We know the renderer names at start.)
What do you think?
Thanks,
Miklos
On 28 July 2014 19:05, Sascha Zelzer <[email protected]> wrote:
> 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