AGX Dynamics  2.35.0.1
agxOSG::ParticleContactGraphDrawable Class Reference

#include <ParticleContactGraphDrawable.h>

+ Inheritance diagram for agxOSG::ParticleContactGraphDrawable:

Public Member Functions

 ParticleContactGraphDrawable (agx::ParticleSystem *particleSystem)
 
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 particle system. More...
 
bool getEnable () const
 
agx::Real getMaxForce () const
 
agx::Real getMinForce () const
 
agx::ParticleSystem * getParticleSystem ()
 
virtual bool isSameKindAs (const osg::Object *obj) const
 
virtual const char * libraryName () const
 
void resample ()
 
void setEnable (bool enable)
 
void setMaxForce (agx::Real maxForce)
 
void setMinForce (agx::Real minForce)
 
void updateKernelBuffers ()
 

Protected Member Functions

virtual ~ParticleContactGraphDrawable ()
 
void initColors ()
 

Protected Attributes

agxData::BufferRef m_colorBuffer
 
osg::ref_ptr< osgSim::ColorRange > m_colorRange
 
agxData::BufferRef m_countBuffer
 
bool m_enable
 
agxData::BufferRef m_firstsBuffer
 
agx::Real m_maxForce
 
int m_maxPosCounts
 
agx::Real m_minForce
 
agx::ParticleSystemObserver m_particleSystem
 
agx::TaskGroupRef m_renderTask
 
agx::Real m_sampling
 
agxData::BufferRef m_verticesBuffer
 

Detailed Description

Definition at line 35 of file ParticleContactGraphDrawable.h.

Constructor & Destructor Documentation

◆ ParticleContactGraphDrawable()

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

◆ ~ParticleContactGraphDrawable()

virtual agxOSG::ParticleContactGraphDrawable::~ParticleContactGraphDrawable ( )
protectedvirtual

Member Function Documentation

◆ className()

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

Definition at line 46 of file ParticleContactGraphDrawable.h.

◆ clone()

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

Definition at line 43 of file ParticleContactGraphDrawable.h.

◆ cloneType()

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

Definition at line 42 of file ParticleContactGraphDrawable.h.

◆ computeBound()

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

Compute the bounding box around Drawables's geometry.

◆ drawImplementation()

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

The actual draw method for the particle system.

◆ getEnable()

bool agxOSG::ParticleContactGraphDrawable::getEnable ( ) const

Definition at line 105 of file ParticleContactGraphDrawable.h.

References m_enable.

Referenced by agxQt::ParticleContactGraphRenderer::getEnable().

◆ getMaxForce()

agx::Real agxOSG::ParticleContactGraphDrawable::getMaxForce ( ) const

◆ getMinForce()

agx::Real agxOSG::ParticleContactGraphDrawable::getMinForce ( ) const

◆ getParticleSystem()

agx::ParticleSystem * agxOSG::ParticleContactGraphDrawable::getParticleSystem ( )

Definition at line 103 of file ParticleContactGraphDrawable.h.

References m_particleSystem.

◆ initColors()

void agxOSG::ParticleContactGraphDrawable::initColors ( )
protected

Referenced by setMaxForce(), and setMinForce().

◆ isSameKindAs()

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

Definition at line 44 of file ParticleContactGraphDrawable.h.

◆ libraryName()

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

Definition at line 45 of file ParticleContactGraphDrawable.h.

◆ resample()

void agxOSG::ParticleContactGraphDrawable::resample ( )

◆ setEnable()

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

Definition at line 107 of file ParticleContactGraphDrawable.h.

References m_enable.

Referenced by agxQt::ParticleContactGraphRenderer::setEnable().

◆ setMaxForce()

void agxOSG::ParticleContactGraphDrawable::setMaxForce ( agx::Real  maxForce)

◆ setMinForce()

void agxOSG::ParticleContactGraphDrawable::setMinForce ( agx::Real  minForce)

◆ updateKernelBuffers()

void agxOSG::ParticleContactGraphDrawable::updateKernelBuffers ( )

Member Data Documentation

◆ m_colorBuffer

agxData::BufferRef agxOSG::ParticleContactGraphDrawable::m_colorBuffer
protected

Definition at line 91 of file ParticleContactGraphDrawable.h.

◆ m_colorRange

osg::ref_ptr<osgSim::ColorRange> agxOSG::ParticleContactGraphDrawable::m_colorRange
protected

Definition at line 96 of file ParticleContactGraphDrawable.h.

◆ m_countBuffer

agxData::BufferRef agxOSG::ParticleContactGraphDrawable::m_countBuffer
protected

Definition at line 92 of file ParticleContactGraphDrawable.h.

◆ m_enable

bool agxOSG::ParticleContactGraphDrawable::m_enable
protected

Definition at line 99 of file ParticleContactGraphDrawable.h.

Referenced by getEnable(), and setEnable().

◆ m_firstsBuffer

agxData::BufferRef agxOSG::ParticleContactGraphDrawable::m_firstsBuffer
protected

Definition at line 93 of file ParticleContactGraphDrawable.h.

◆ m_maxForce

agx::Real agxOSG::ParticleContactGraphDrawable::m_maxForce
protected

Definition at line 98 of file ParticleContactGraphDrawable.h.

Referenced by getMaxForce(), and setMaxForce().

◆ m_maxPosCounts

int agxOSG::ParticleContactGraphDrawable::m_maxPosCounts
protected

Definition at line 94 of file ParticleContactGraphDrawable.h.

◆ m_minForce

agx::Real agxOSG::ParticleContactGraphDrawable::m_minForce
protected

Definition at line 97 of file ParticleContactGraphDrawable.h.

Referenced by getMinForce(), and setMinForce().

◆ m_particleSystem

agx::ParticleSystemObserver agxOSG::ParticleContactGraphDrawable::m_particleSystem
mutableprotected

Definition at line 87 of file ParticleContactGraphDrawable.h.

Referenced by getParticleSystem().

◆ m_renderTask

agx::TaskGroupRef agxOSG::ParticleContactGraphDrawable::m_renderTask
protected

Definition at line 88 of file ParticleContactGraphDrawable.h.

◆ m_sampling

agx::Real agxOSG::ParticleContactGraphDrawable::m_sampling
protected

Definition at line 100 of file ParticleContactGraphDrawable.h.

◆ m_verticesBuffer

agxData::BufferRef agxOSG::ParticleContactGraphDrawable::m_verticesBuffer
protected

Definition at line 90 of file ParticleContactGraphDrawable.h.


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