AGX Dynamics  2.37.2.0
agxOSG::ParticleSystemDrawable Class Reference

#include <ParticleSystemDrawable.h>

+ Inheritance diagram for agxOSG::ParticleSystemDrawable:

Public Types

enum  ParticleRenderingMode { SPRITES, QUAD_SPRITES, TRIANGLES }
 
enum  ParticleShaderMode { SIMPLE_SPRITES, ROTATION_SPRITES, ALPHA_SPRITES }
 

Public Member Functions

 ParticleSystemDrawable (agx::ParticleSystem *particleSystem, ParticleRenderingMode renderMode=DEFAULT_PARTICLE_RENDERING_MODE, ParticleShaderMode particleShaderMode=ROTATION_SPRITES)
 
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
 
ParticleShaderMode getParticleShaderMode () const
 
agx::ParticleSystem * getParticleSystem ()
 
virtual bool isSameKindAs (const osg::Object *obj) const
 
virtual const char * libraryName () const
 
void setEnable (bool enable)
 
void setParticleShaderMode (ParticleShaderMode flag)
 

Static Public Member Functions

static ParticleRenderingMode getAllowedRenderMode ()
 Get the minimum allowed ParticleRenderingMode for the particles. More...
 
static void setAllowedRenderMode (ParticleRenderingMode mode)
 Set the minimum allowed ParticleRenderingMode for the particles. More...
 

Protected Member Functions

virtual ~ParticleSystemDrawable ()
 

Protected Attributes

bool m_enable
 
ParticleShaderMode m_particleShaderMode
 
agx::ParticleSystemObserver m_particleSystem
 
ParticleRenderingMode m_renderMode
 
agx::TaskGroupRef m_renderTask
 

Detailed Description

Definition at line 44 of file ParticleSystemDrawable.h.

Member Enumeration Documentation

◆ ParticleRenderingMode

Enumerator
SPRITES 
QUAD_SPRITES 
TRIANGLES 

Definition at line 47 of file ParticleSystemDrawable.h.

◆ ParticleShaderMode

Enumerator
SIMPLE_SPRITES 
ROTATION_SPRITES 
ALPHA_SPRITES 

Definition at line 56 of file ParticleSystemDrawable.h.

Constructor & Destructor Documentation

◆ ParticleSystemDrawable()

agxOSG::ParticleSystemDrawable::ParticleSystemDrawable ( agx::ParticleSystem *  particleSystem,
ParticleRenderingMode  renderMode = DEFAULT_PARTICLE_RENDERING_MODE,
ParticleShaderMode  particleShaderMode = ROTATION_SPRITES 
)

◆ ~ParticleSystemDrawable()

virtual agxOSG::ParticleSystemDrawable::~ParticleSystemDrawable ( )
protectedvirtual

Member Function Documentation

◆ className()

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

Definition at line 77 of file ParticleSystemDrawable.h.

◆ clone()

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

Definition at line 74 of file ParticleSystemDrawable.h.

◆ cloneType()

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

Definition at line 73 of file ParticleSystemDrawable.h.

◆ computeBound()

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

Compute the bounding box around Drawables's geometry.

◆ drawImplementation()

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

The actual draw method for the particle system.

◆ getAllowedRenderMode()

static ParticleRenderingMode agxOSG::ParticleSystemDrawable::getAllowedRenderMode ( )
static

Get the minimum allowed ParticleRenderingMode for the particles.

◆ getEnable()

bool agxOSG::ParticleSystemDrawable::getEnable ( ) const

Definition at line 115 of file ParticleSystemDrawable.h.

◆ getParticleShaderMode()

ParticleShaderMode agxOSG::ParticleSystemDrawable::getParticleShaderMode ( ) const

◆ getParticleSystem()

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

◆ isSameKindAs()

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

Definition at line 75 of file ParticleSystemDrawable.h.

◆ libraryName()

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

Definition at line 76 of file ParticleSystemDrawable.h.

◆ setAllowedRenderMode()

static void agxOSG::ParticleSystemDrawable::setAllowedRenderMode ( ParticleRenderingMode  mode)
static

Set the minimum allowed ParticleRenderingMode for the particles.

◆ setEnable()

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

Definition at line 117 of file ParticleSystemDrawable.h.

◆ setParticleShaderMode()

void agxOSG::ParticleSystemDrawable::setParticleShaderMode ( ParticleShaderMode  flag)

Member Data Documentation

◆ m_enable

bool agxOSG::ParticleSystemDrawable::m_enable
protected

Definition at line 110 of file ParticleSystemDrawable.h.

◆ m_particleShaderMode

ParticleShaderMode agxOSG::ParticleSystemDrawable::m_particleShaderMode
protected

Definition at line 108 of file ParticleSystemDrawable.h.

◆ m_particleSystem

agx::ParticleSystemObserver agxOSG::ParticleSystemDrawable::m_particleSystem
mutableprotected

Definition at line 106 of file ParticleSystemDrawable.h.

◆ m_renderMode

ParticleRenderingMode agxOSG::ParticleSystemDrawable::m_renderMode
protected

Definition at line 109 of file ParticleSystemDrawable.h.

◆ m_renderTask

agx::TaskGroupRef agxOSG::ParticleSystemDrawable::m_renderTask
protected

Definition at line 107 of file ParticleSystemDrawable.h.


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