Hi Thomas, please have a look at the section "Tracking the Current Selection" in http://www.mitk.org/wiki/Article_Using_the_Selection_Service
Note that if your view inherits from QmitkFunctionality, you can use its protected methods "GetCurrentSelection()" and "GetDataManagerSelection()". Best, Sascha On 05/18/2011 09:47 PM, Thomas Wolf wrote: > Dear all, > > i am currently looking for an elegant solution for acquiring the > currently active selection in the datamanager. > > Scenario behind that request is: I need to restore the state of an user > interaction that got disabled through plugin deactivation. On clicking > the plugin again the previous state should be restored. In that case, no > SelectionChanged will be triggered, and i can ask noone what the > selection actually is at the moment. > > I've seen something remotely familiar implemented through some berry > services via the plugin infrastructure, but before i start implementing > that i wanted to make sure there is no way of just asking the correct > class... > > Regards, > Thomas Wolf > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
