Hi Miklos,
the code you posted is not correct- you need to set a bool property "helper
object" and not the name:
mitk::DataNode::Pointer helperNode = mitk::DataNode::New();
helperNode->SetName("awesome node");
helperNode->SetBoolProperty("helper object", true);
GetDataStorage()->Add(helperNode);
helperNode->SetVisibility(true);
!!! But be aware that enabling the mentioned preference will only show up
helper objects that contain data. Helper objects without data will never be
shown.
Hope that helps. If it is still not working, feel free to file a bug on
http://bugs.mitk.org
Regards,
Michael
-----Ursprüngliche Nachricht-----
Von: Miklos Espak [mailto:[email protected]]
Gesendet: Dienstag, 12. Juli 2011 17:59
An: mitk-users
Betreff: [mitk-users] helper objects are not visible
Hi,
I would like to add some nodes to the Datamanager View that do not
contain images, they would just group some other nodes. Browsing the
MITK code I found that helper objects are for this. Showing helper
objects can be enabled/disabled from the Window / Preferences dialog.
I enabled it but I still not see the nodes not containing images.
The code I used to create a helper node is the following:
mitk::DataNode::Pointer helperNode = mitk::DataNode::New();
helperNode->SetName("helper node");
GetDataStorage()->Add(helperNode);
helperNode->SetVisibility(true);
Is there something I missed?
I added the code to the AwesomeApp, and built it with the HEAD.
Regards,
Miklos
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users