16 #ifndef AGXOSG_RENDERTASKDRAWABLE
17 #define AGXOSG_RENDERTASKDRAWABLE
20 #include <osg/Drawable>
21 #include <osg/Version>
31 class ParticleDrawableCallback;
41 void setDrawable(osg::Drawable *drawable ) { m_drawable = drawable; }
50 virtual const char*
className()
const {
return "RenderTaskDrawable"; }
54 # if OSG_VERSION_GREATER_OR_EQUAL(3,4,0)
55 virtual osg::BoundingSphere computeBound()
const;
56 virtual osg::BoundingBox computeBoundingBox()
const;
65 friend class ParticleDrawableCallback;
virtual osg::Object * clone(const osg::CopyOp ©op) const
virtual const char * className() const
RenderTaskDrawable(const RenderTaskDrawable &c, const osg::CopyOp ©Op)
virtual osg::Object * cloneType() const
agx::observer_ptr< agx::Task > m_renderTask
void setDrawable(osg::Drawable *drawable)
Set the drawable that will be drawn for each particle.
virtual ~RenderTaskDrawable()
osg::Drawable * getDrawable()
Return the drawable that will be drawn for each particle.
RenderTaskDrawable(agx::Task *renderTask)
virtual osg::BoundingBox computeBound() const
Compute the bounding box around Drawables's geometry.
virtual bool isSameKindAs(const osg::Object *obj) const
osg::ref_ptr< osg::Drawable > m_drawable
virtual const char * libraryName() const
virtual void drawImplementation(osg::RenderInfo &renderInfo) const
The actual draw method for the particle system.
A representation of a generic task.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.