Show
Ignore:
Timestamp:
03/11/09 15:18:30 (6 years ago)
Author:
robert
Message:

Added View::removeEventHandler(..) method and added check into addEventHandler() to prevent handlers being added twice.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgViewer/View

    r9418 r9909  
    114114 
    115115        typedef std::list< osg::ref_ptr<osgGA::GUIEventHandler> > EventHandlers; 
    116          
     116      
    117117        /** Add an EventHandler that adds handling of events to the View.*/ 
    118118        void addEventHandler(osgGA::GUIEventHandler* eventHandler); 
     119 
     120        /** Remove an EventHandler from View.*/ 
     121        void removeEventHandler(osgGA::GUIEventHandler* eventHandler); 
    119122 
    120123        /** Get the View's list of EventHandlers.*/