[IGSTK-Developers] Scene Graph Visualization Tool
Patrick Cheng
cheng at isis.georgetown.edu
Wed Dec 10 15:36:03 EST 2008
Developers,
Thanks for Janakiram and his adviser Kevin Gary from ASU. We now have a
fully functional and easy to use scene graph tree visualization tool.
You can output the graph to a dot file, or display it on the fly in a
FLTK GUI.
Below is the sample code demonstrating how easy it is to use this tool.
// Output to file
igstk::SceneGraph * sg = igstk::SceneGraph::getInstance();
sg->ExportSceneGraphToDot("sg.dot");
// Display it in a window. You need to include igstkSceneGraphUI.h
sg->ShowSceneGraph(true);
igstk::SceneGraphUI * sgUI = igstk::SceneGraphUI::getInstance();
sgUI->DrawSceneGraph(sg);
Thank you,
Patrick
More information about the IGSTK-Developers
mailing list