17 #ifndef AGXOSG_EMBEDDEDGLWINDOW_H
18 #define AGXOSG_EMBEDDEDGLWINDOW_H
29 #include <osgViewer/Viewer>
30 #include <osg/Version>
32 #include <osgGA/TrackballManipulator>
33 #include <osgViewer/GraphicsWindow>
59 bool init(
int x,
int y,
int width,
int height);
66 void resize(
int x,
int y,
int width,
int height);
67 osgGA::EventQueue* getEventQueue()
const;
73 void mouseMoveEvent(
int x,
int y);
80 void mousePressEvent(
int x,
int y,
int button);
87 void mouseReleaseEvent(
int x,
int y,
int button);
94 void keyPressEvent(
int key,
int mod_mask);
101 void keyReleaseEvent(
int key,
int mod_mask);
107 void wheelEvent(
int motion);
117 osg::Camera *getCamera();
122 const osg::Camera *getCamera()
const;
138 void removeSimulation( );
143 osg::Group* getRoot();
148 const osg::Group* getRoot()
const;
158 void fitSceneIntoView();
171 osg::ref_ptr<osgViewer::Viewer> m_viewer;
173 osg::ref_ptr<osg::Group> m_root;
174 osg::ref_ptr<agxOSG::SceneDecorator> m_decorator;
175 osgGA::StandardManipulator *m_manipulator;
177 osg::ref_ptr<osgViewer::GraphicsWindowEmbedded> m_embeddedWindow;
AGXTERRAIN_EXPORT void clear()
void AGXPHYSICS_EXPORT init()
Initialize agx.
Decorates a scene with a specific AGX Rendering Style.
This class is for embedding an OSG based window inside another OpenGL contex, for example in QT...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...