Changeset 13172 for OpenSceneGraph/trunk/include/osgViewer/View
- Timestamp:
- 05/16/13 17:52:29 (3 days ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgViewer/View (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgViewer/View
r13053 r13172 25 25 #include <osgGA/EventVisitor> 26 26 #include <osgGA/EventQueue> 27 #include <osgGA/Device> 27 28 28 29 #include <osgViewer/Scene> … … 109 110 const osgDB::ImagePager* getImagePager() const; 110 111 112 113 /** Add a Device. 114 * The Device is polled on each new frame via it's Device::checkEvents() method and any events generated then collected via Device::getEventQueue()*/ 115 void addDevice(osgGA::Device* eventSource); 116 117 /** Remove a Device. /*/ 118 void removeDevice(osgGA::Device* eventSource); 119 120 typedef std::vector< osg::ref_ptr<osgGA::Device> > Devices; 121 122 Devices& getDevices() { return _eventSources; } 123 const Devices& getDevices() const { return _eventSources; } 124 111 125 112 126 /* Set the EventQueue that the View uses to integrate external non window related events.*/ … … 251 265 osg::Timer_t _startTick; 252 266 267 Devices _eventSources; 268 253 269 osg::ref_ptr<osgViewer::Scene> _scene; 254 270 osg::ref_ptr<osgGA::EventQueue> _eventQueue;
