Hi there,
I am currently handling multiple interactors on one DataNode containing a
PlanarFigure as BaseData.
Adding some interactors to the DataNode works fine but now I would like to
delete the DataNode.
Before removing the DataNode from the DataStorage I think I have to remove all
interactors and observers (from itk event handling).
Source:
DataNode->RemoveAllObservers();
DataNode->DisableInteractor();
DataStorage->Remove(DataNode);
Unfortunately a DataNode can only hold one interactor (in m_Interactor) and
that is the last added interactor.
Is there another possibility to remove all interactors?
If not, I would add the references of all interactors as a property to the
DataNode. (SmartPointerProperty/WeakPointerProperty?!)
Before removing the DataNode I could check for all interactor-properties of the
DataNode and remove them from GlobalInteraction.
Do I have to delete the interactors after removing them from GlobalInteraction?
How is the mapper handeled? Do I also have to delete it?
Is there anything else I should take care of before removing a DataNode from
the Storage?
Thanks in advance!
Piotr
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users