HI Robert, There isn't a feature build into EventHandler to toggle them on/off so just stick a flag into the event handlers to say whether they are active or not and check this in the handle() method.
Robert. On 2 July 2014 01:43, Robert Gosztyla <[email protected]> wrote: > Hi, > > I have in my project few pickers (for models, triangles, points) based on > osgGA::GUIEventHandler. All of them are added to viewer... but i would like > to have them selectable to work somehow (i mean one active in current > time). All i found is method removeEventHandler(), but it seems to destroy > my picker (destructor is called). They are singletons and are using also > other data, so destroying them is not best idea. Is there any way to > disable event handler for some time without destroying it? > > Thank you! > > Cheers, Robert > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=60100#60100 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

