17 #ifndef AGXOSG_EMBEDDEDGLWINDOW_H 18 #define AGXOSG_EMBEDDEDGLWINDOW_H 23 #include <osgViewer/Viewer> 24 #include <osg/Version> 25 #include <osgGA/TrackballManipulator> 26 #include <osgViewer/GraphicsWindow> 53 bool init(
int x,
int y,
int width,
int height);
60 void resize(
int x,
int y,
int width,
int height);
61 osgGA::EventQueue* getEventQueue()
const;
67 void mouseMoveEvent(
int x,
int y);
74 void mousePressEvent(
int x,
int y,
int button);
81 void mouseReleaseEvent(
int x,
int y,
int button);
88 void keyPressEvent(
int key,
int mod_mask);
95 void keyReleaseEvent(
int key,
int mod_mask);
101 void wheelEvent(
int motion);
111 osg::Camera *getCamera();
116 const osg::Camera *getCamera()
const;
132 void removeSimulation( );
137 osg::Group* getRoot();
142 const osg::Group* getRoot()
const;
152 void fitSceneIntoView();
165 osg::ref_ptr<osgViewer::Viewer> m_viewer;
167 osg::ref_ptr<osg::Group> m_root;
168 osg::ref_ptr<agxOSG::SceneDecorator> m_decorator;
169 osgGA::StandardManipulator *m_manipulator;
171 osg::ref_ptr<osgViewer::GraphicsWindowEmbedded> m_embeddedWindow;
AGXTERRAIN_EXPORT void clear()
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
Decorates a scene with a specific AGX Rendering Style.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
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...