Hi,
I have attached a GUIEventHandler to osg::Viewer to refresh the model if the
content in the file has changed.
Like whenever refresh action is called I do the following:
osg::ref_ptr<osg::Group> root = osgDB::readNodeFile("path_to_shp_file");
viewer->setSceneData(root.get());
I have to reread the source file as the content in it has changed.
But while setting the scenedata OSG states:
View::setSceneData() Reusing exisitng scene01EF1108
and hence no visual changes due to change in scenegraph is not perceived.
It is obvious that I cannot refresh a viewer scene data just by overwriting it
as the reference to existing root still exists. What is the smart way of doing
this like as in updating view when model changes in MVC ?
...
Thank you!
Cheers,
Suvajit
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27344#27344
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org