AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxOSG::ParticleSystemDrawable Class Reference

#include <ParticleSystemDrawable.h>

+ Inheritance diagram for agxOSG::ParticleSystemDrawable:

Public Types

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

Public Member Functions

 ParticleSystemDrawable (agx::ParticleSystem *particleSystem, ParticleRenderingMode renderMode=QUAD_SPRITES, 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 34 of file ParticleSystemDrawable.h.

Member Enumeration Documentation

Enumerator
SPRITES 
QUAD_SPRITES 
TRIANGLES 
INSTANCES 

Definition at line 37 of file ParticleSystemDrawable.h.

Enumerator
SIMPLE_SPRITES 
ROTATION_SPRITES 
ALPHA_SPRITES 

Definition at line 46 of file ParticleSystemDrawable.h.

Constructor & Destructor Documentation

agxOSG::ParticleSystemDrawable::ParticleSystemDrawable ( agx::ParticleSystem *  particleSystem,
ParticleRenderingMode  renderMode = QUAD_SPRITES,
ParticleShaderMode  particleShaderMode = ROTATION_SPRITES 
)
virtual agxOSG::ParticleSystemDrawable::~ParticleSystemDrawable ( )
protectedvirtual

Member Function Documentation

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

Definition at line 67 of file ParticleSystemDrawable.h.

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

Definition at line 64 of file ParticleSystemDrawable.h.

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

Definition at line 63 of file ParticleSystemDrawable.h.

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

Compute the bounding box around Drawables's geometry.

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

The actual draw method for the particle system.

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

Get the minimum allowed ParticleRenderingMode for the particles.

bool agxOSG::ParticleSystemDrawable::getEnable ( ) const
ParticleShaderMode agxOSG::ParticleSystemDrawable::getParticleShaderMode ( ) const
agx::ParticleSystem* agxOSG::ParticleSystemDrawable::getParticleSystem ( )
virtual bool agxOSG::ParticleSystemDrawable::isSameKindAs ( const osg::Object *  obj) const
inlinevirtual

Definition at line 65 of file ParticleSystemDrawable.h.

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

Definition at line 66 of file ParticleSystemDrawable.h.

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

Set the minimum allowed ParticleRenderingMode for the particles.

void agxOSG::ParticleSystemDrawable::setEnable ( bool  enable)
void agxOSG::ParticleSystemDrawable::setParticleShaderMode ( ParticleShaderMode  flag)

Member Data Documentation

bool agxOSG::ParticleSystemDrawable::m_enable
protected

Definition at line 100 of file ParticleSystemDrawable.h.

Referenced by getEnable(), and setEnable().

ParticleShaderMode agxOSG::ParticleSystemDrawable::m_particleShaderMode
protected

Definition at line 98 of file ParticleSystemDrawable.h.

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

Definition at line 96 of file ParticleSystemDrawable.h.

ParticleRenderingMode agxOSG::ParticleSystemDrawable::m_renderMode
protected

Definition at line 99 of file ParticleSystemDrawable.h.

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

Definition at line 97 of file ParticleSystemDrawable.h.


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