Hi,
judging by the code you pasted below, this question is about the
BlueBerry selection service. I didn't fully understand the relationship
with the segmentation plugin, however.
There are few things to take into account when working with the
selection service:
- Selections in the workbench are by design controlled by the user.
Changing selections due to some internal logic is not recommended.
- A selection is a global concept for the whole workbench window.
- The current selection is the selection in the currently active part.
This implies that programmatically changing the selection of a part
(e.g. a view) which is not active will only have an immediate effect in
very special cases. Usually, the selection change only propagates to
listeners when that part becomes active.
- Some views in MITK unfortunately listen to data manager selection
events only, which is most often an unnecessary limitation.
- The selection service is conceptually equivalent to the Eclipse
Workbench Selection Service and Google search hits about Eclipse will
equally well apply to BlueBerry / MITK
Hope that helps,
Sascha
On 07/03/2015 08:32 AM, Pukhlikov Mikhail wrote:
Hello, I need to change selected data node
Currently I'm using this method:
...
m_SelectedNode->SetVisibility(true);
...
QList <mitk::DataNode::Pointer> qSelectionList;
qSelectionList.push_back(m_SelectedNode);
this->FireNodesSelected(qSelectionList);
mitk::RenderingManager::GetInstance()->RequestUpdateAll();
It changes selected image in multiwidget but when I'm using
segmentation plugin then resulting segmentation on image has offset
from position where I used to create it. Sometimes when I open
datamanager and pick node there everything works fine however data
manager selection process looks complicated.
What's wrong in changing selection with FireNodesSelected method? Can
I use it? What should I do in addition to it to make it work properly?
Thank you
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users