17 #ifndef AGXOSG_SIMULATIONDRAWABLE_H
18 #define AGXOSG_SIMULATIONDRAWABLE_H
21 #include <osg/Drawable>
22 #include <osgViewer/Viewer>
23 #include <osg/Version>
44 virtual const char*
className()
const {
return "SimulationDrawable"; }
48 # if OSG_VERSION_GREATER_OR_EQUAL(3,4,0)
49 virtual osg::BoundingSphere computeBound()
const;
50 virtual osg::BoundingBox computeBoundingBox()
const;
virtual const char * libraryName() const
SimulationDrawable(const SimulationDrawable &c, const osg::CopyOp ©Op)
virtual ~SimulationDrawable()
SimulationDrawable(agxSDK::Simulation *simulation)
virtual void drawImplementation(osg::RenderInfo &renderInfo) const
The actual draw method for the particle system.
virtual bool isSameKindAs(const osg::Object *obj) const
virtual const char * className() const
virtual osg::BoundingBox computeBound() const
Compute the bounding box around Drawables's geometry.
agxSDK::SimulationObserver m_simulation
virtual osg::Object * cloneType() const
virtual osg::Object * clone(const osg::CopyOp ©op) const
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.