Пример #1
0
class UserEventHandler (osgGA.GUIEventHandler) :

    UserEventHandler(osgText.Text* text) : osgGA.GUIEventHandler(), _text(text) 

    ~UserEventHandler() 

    handle = bool( osgGA.GUIEventAdapter ea,osgGA.GUIActionAdapter aa)
    _text = osgText.Text()
Пример #2
0
class SlideShowEventHandler (osgGA.GUIEventHandler) :
    SlideShowEventHandler(osg.Node* node,  osgDB.DirectoryContents files,osgDB.ReaderWriter.Options* options)
        : osgGA.GUIEventHandler()
        , _node(node)
        , _files(files)
        , _options(options)
        , _currentFile(-1)
        loadSlide(_currentFile)
Пример #3
0
class ForwardToDeviceEventHandler (osgGA.GUIEventHandler) :
    ForwardToDeviceEventHandler(osgGA.Device* device) : osgGA.GUIEventHandler(), _device(device) 

    virtual bool handle ( osgGA.GUIEventAdapter ea, osgGA.GUIActionAdapter aa, osg.Object *, osg.NodeVisitor *)
        _device.sendEvent(ea)
        return False
Пример #4
0
class MovieEventHandler (osgGA.GUIEventHandler) :

    MovieEventHandler()
        : osgGA.GUIEventHandler()
        , _currentImageStream()
        , _currentGeometry()
Пример #5
0
class TestMultiTouchEventHandler (osgGA.GUIEventHandler) :
    TestMultiTouchEventHandler(osg.Group* parent_group)
    :   osgGA.GUIEventHandler(),
        _cleanupOnNextFrame(False)
        createTouchRepresentations(parent_group, 10)