17#ifndef AGXOSG_SIMULATIONDRAWABLE_H
18#define AGXOSG_SIMULATIONDRAWABLE_H
21#include <osg/Drawable>
22#include <osgViewer/Viewer>
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;
SimulationDrawable(const SimulationDrawable &c, const osg::CopyOp ©Op)
virtual ~SimulationDrawable()
SimulationDrawable(agxSDK::Simulation *simulation)
virtual osg::Object * cloneType() const
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.
virtual osg::Object * clone(const osg::CopyOp ©op) const
virtual const char * libraryName() const
agxSDK::SimulationObserver m_simulation
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.