AGX Dynamics  2.35.0.1
agxOSG::GranularMergedBodyDrawableSprites Class Reference

#include <GranularMergedBodyDrawableSprites.h>

+ Inheritance diagram for agxOSG::GranularMergedBodyDrawableSprites:

Public Member Functions

 GranularMergedBodyDrawableSprites (agx::ParticleSystem *particleSystem)
 
void addRigidBodyCallback (agxSDK::Simulation *, agx::RigidBody *body)
 
virtual const char * className () const
 
virtual osg::Object * clone (const osg::CopyOp &) const
 
virtual osg::Object * cloneType () const
 
virtual osg::BoundingBox computeBound () const
 Compute the bounding box around Drawables's geometry. More...
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 The actual draw method for the merged bodies. More...
 
bool getEnable () const
 
bool hasParticleSystem () const
 
virtual bool isSameKindAs (const osg::Object *obj) const
 
virtual const char * libraryName () const
 
void removeRigidBodyCallback (agxSDK::Simulation *, agx::RigidBody *body)
 
void setEnable (bool enable)
 
void updateMergedBodyDrawable ()
 
void updateSimulation ()
 

Protected Member Functions

virtual ~GranularMergedBodyDrawableSprites ()
 

Protected Attributes

agxSDK::Simulation::RigidBodyEvent::CallbackType m_addRigidBodyCallback
 
agxData::BufferRef m_colorBuffer
 
agx::HashTable< agx::RigidBody *, agx::Real > m_createdBodies
 
bool m_enable
 
bool m_hasGranularLicense
 
agx::ParticleSystemObserver m_particleSystem
 
agxData::BufferRef m_radiusBuffer
 
agxSDK::Simulation::RigidBodyEvent::CallbackType m_removeRigidBodyCallback
 
agx::TaskGroupRef m_renderTask
 
agxSDK::SimulationObserver m_simulation
 
agxData::BufferRef m_verticesBuffer
 

Detailed Description

Definition at line 34 of file GranularMergedBodyDrawableSprites.h.

Constructor & Destructor Documentation

◆ GranularMergedBodyDrawableSprites()

agxOSG::GranularMergedBodyDrawableSprites::GranularMergedBodyDrawableSprites ( agx::ParticleSystem *  particleSystem)

◆ ~GranularMergedBodyDrawableSprites()

virtual agxOSG::GranularMergedBodyDrawableSprites::~GranularMergedBodyDrawableSprites ( )
protectedvirtual

Member Function Documentation

◆ addRigidBodyCallback()

void agxOSG::GranularMergedBodyDrawableSprites::addRigidBodyCallback ( agxSDK::Simulation *  ,
agx::RigidBody *  body 
)

◆ className()

virtual const char* agxOSG::GranularMergedBodyDrawableSprites::className ( ) const
inlinevirtual

Definition at line 44 of file GranularMergedBodyDrawableSprites.h.

◆ clone()

virtual osg::Object* agxOSG::GranularMergedBodyDrawableSprites::clone ( const osg::CopyOp &  ) const
inlinevirtual

Definition at line 41 of file GranularMergedBodyDrawableSprites.h.

◆ cloneType()

virtual osg::Object* agxOSG::GranularMergedBodyDrawableSprites::cloneType ( ) const
inlinevirtual

Definition at line 40 of file GranularMergedBodyDrawableSprites.h.

◆ computeBound()

virtual osg::BoundingBox agxOSG::GranularMergedBodyDrawableSprites::computeBound ( ) const
virtual

Compute the bounding box around Drawables's geometry.

◆ drawImplementation()

virtual void agxOSG::GranularMergedBodyDrawableSprites::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual

The actual draw method for the merged bodies.

◆ getEnable()

bool agxOSG::GranularMergedBodyDrawableSprites::getEnable ( ) const

Definition at line 97 of file GranularMergedBodyDrawableSprites.h.

References m_enable.

◆ hasParticleSystem()

bool agxOSG::GranularMergedBodyDrawableSprites::hasParticleSystem ( ) const

Definition at line 101 of file GranularMergedBodyDrawableSprites.h.

◆ isSameKindAs()

virtual bool agxOSG::GranularMergedBodyDrawableSprites::isSameKindAs ( const osg::Object *  obj) const
inlinevirtual

Definition at line 42 of file GranularMergedBodyDrawableSprites.h.

◆ libraryName()

virtual const char* agxOSG::GranularMergedBodyDrawableSprites::libraryName ( ) const
inlinevirtual

Definition at line 43 of file GranularMergedBodyDrawableSprites.h.

◆ removeRigidBodyCallback()

void agxOSG::GranularMergedBodyDrawableSprites::removeRigidBodyCallback ( agxSDK::Simulation *  ,
agx::RigidBody *  body 
)

◆ setEnable()

void agxOSG::GranularMergedBodyDrawableSprites::setEnable ( bool  enable)

Definition at line 99 of file GranularMergedBodyDrawableSprites.h.

References m_enable.

◆ updateMergedBodyDrawable()

void agxOSG::GranularMergedBodyDrawableSprites::updateMergedBodyDrawable ( )

◆ updateSimulation()

void agxOSG::GranularMergedBodyDrawableSprites::updateSimulation ( )

Member Data Documentation

◆ m_addRigidBodyCallback

agxSDK::Simulation::RigidBodyEvent::CallbackType agxOSG::GranularMergedBodyDrawableSprites::m_addRigidBodyCallback
protected

Definition at line 80 of file GranularMergedBodyDrawableSprites.h.

◆ m_colorBuffer

agxData::BufferRef agxOSG::GranularMergedBodyDrawableSprites::m_colorBuffer
protected

Definition at line 91 of file GranularMergedBodyDrawableSprites.h.

◆ m_createdBodies

agx::HashTable<agx::RigidBody*, agx::Real> agxOSG::GranularMergedBodyDrawableSprites::m_createdBodies
protected

Definition at line 94 of file GranularMergedBodyDrawableSprites.h.

◆ m_enable

bool agxOSG::GranularMergedBodyDrawableSprites::m_enable
protected

Definition at line 87 of file GranularMergedBodyDrawableSprites.h.

Referenced by getEnable(), and setEnable().

◆ m_hasGranularLicense

bool agxOSG::GranularMergedBodyDrawableSprites::m_hasGranularLicense
protected

Definition at line 88 of file GranularMergedBodyDrawableSprites.h.

◆ m_particleSystem

agx::ParticleSystemObserver agxOSG::GranularMergedBodyDrawableSprites::m_particleSystem
mutableprotected

Definition at line 84 of file GranularMergedBodyDrawableSprites.h.

◆ m_radiusBuffer

agxData::BufferRef agxOSG::GranularMergedBodyDrawableSprites::m_radiusBuffer
protected

Definition at line 92 of file GranularMergedBodyDrawableSprites.h.

◆ m_removeRigidBodyCallback

agxSDK::Simulation::RigidBodyEvent::CallbackType agxOSG::GranularMergedBodyDrawableSprites::m_removeRigidBodyCallback
protected

Definition at line 81 of file GranularMergedBodyDrawableSprites.h.

◆ m_renderTask

agx::TaskGroupRef agxOSG::GranularMergedBodyDrawableSprites::m_renderTask
protected

Definition at line 86 of file GranularMergedBodyDrawableSprites.h.

◆ m_simulation

agxSDK::SimulationObserver agxOSG::GranularMergedBodyDrawableSprites::m_simulation
mutableprotected

Definition at line 83 of file GranularMergedBodyDrawableSprites.h.

◆ m_verticesBuffer

agxData::BufferRef agxOSG::GranularMergedBodyDrawableSprites::m_verticesBuffer
protected

Definition at line 90 of file GranularMergedBodyDrawableSprites.h.


The documentation for this class was generated from the following file: