27 #include "core/common/WLogger.h"
29 #include "WGEGraphicsWindow.h"
31 #include "exceptions/WGEInitFailed.h"
36 static_cast<osgViewer::GraphicsWindow*
>(
new osgViewer::GraphicsWindowEmbedded( x, y, width, height ) ) );
78 m_GraphicsWindow->getEventQueue()->keyPress(
static_cast<osgGA::GUIEventAdapter::KeySymbol
>( key ) );
81 m_GraphicsWindow->getEventQueue()->keyRelease(
static_cast<osgGA::GUIEventAdapter::KeySymbol
>( key ) );
100 case MOUSEDOUBLECLICK:
virtual void mouseEvent(MouseEvents eventType, int x, int y, int button)
Handles mouse events forwarded from widget.
virtual bool isClosed() const
Check if the windows is open.
KeyEvents
Event types for the keyEvent() handler.
virtual void close()
Initiates a close event for this viewer.
virtual void resize(int width, int height)
Updates size information.
osg::ref_ptr< osgViewer::GraphicsWindow > m_GraphicsWindow
OpenSceneGraph render window.
virtual void setClosed(bool closed=true)
Set closed state.
virtual void keyEvent(KeyEvents eventType, int key)
Handles key events (if forwarded to this Viewer instance).
MouseEvents
Mouse event types for the mouseEvent() handler.
osg::ref_ptr< osgViewer::GraphicsWindow > getGraphicsWindow()
Getter for m_GraphicsWindow.
virtual ~WGEGraphicsWindow()
Destructor.
WGEGraphicsWindow(osg::ref_ptr< osg::Referenced > wdata, int x, int y, int width, int height)
Default constructor.
bool m_closed
Mark the window opened or closed.