
Public Member Functions | |
| ParticleEffect (bool automaticSetup=true) | |
| ParticleEffect (const ParticleEffect ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| virtual const char * | libraryName () const |
| return the name of the node's library. | |
| virtual const char * | className () const |
| return the name of the node's class type. | |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| virtual void | accept (osg::NodeVisitor &nv) |
| Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. | |
| void | setAutomaticSetup (bool flag) |
| bool | getAutomaticSetup () const |
| void | setUseLocalParticleSystem (bool local) |
| bool | getUseLocalParticleSystem () const |
| void | setTextureFileName (const std::string &filename) |
| const std::string & | getTextureFileName () const |
| void | setDefaultParticleTemplate (const Particle &p) |
| const Particle & | getDefaultParticleTemplate () const |
| void | setPosition (const osg::Vec3 &position) |
| const osg::Vec3 & | getPosition () const |
| void | setScale (float scale) |
| float | getScale () const |
| void | setIntensity (float intensity) |
| float | getIntensity () const |
| void | setStartTime (double startTime) |
| double | getStartTime () const |
| void | setEmitterDuration (double duration) |
| double | getEmitterDuration () const |
| void | setParticleDuration (double duration) |
| double | getParticleDuration () const |
| void | setWind (const osg::Vec3 &wind) |
| const osg::Vec3 & | getWind () const |
| bool | areAllParticlesDead () const |
| Get whether all particles are dead. | |
| virtual Emitter * | getEmitter ()=0 |
| virtual const Emitter * | getEmitter () const=0 |
| virtual Program * | getProgram ()=0 |
| virtual const Program * | getProgram () const=0 |
| void | setParticleSystem (ParticleSystem *ps) |
| ParticleSystem * | getParticleSystem () |
| const ParticleSystem * | getParticleSystem () const |
| virtual void | setDefaults () |
| virtual void | setUpEmitterAndProgram ()=0 |
| virtual void | buildEffect () |
Protected Member Functions | |
| virtual | ~ParticleEffect () |
Protected Attributes | |
| bool | _automaticSetup |
| osg::ref_ptr< ParticleSystem > | _particleSystem |
| bool | _useLocalParticleSystem |
| std::string | _textureFileName |
| Particle | _defaultParticleTemplate |
| osg::Vec3 | _position |
| float | _scale |
| float | _intensity |
| double | _startTime |
| double | _emitterDuration |
| osg::Vec3 | _wind |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Visitor Pattern : calls the apply method of a NodeVisitor with this node's type.
Reimplemented from osg::Node. |
|
|
Get whether all particles are dead.
|
|
|
|
|
|
return the name of the node's class type.
Reimplemented from osg::Node. |
|
|
|
|
|
|
|
|
Implemented in osgParticle::ExplosionDebrisEffect, osgParticle::ExplosionEffect, osgParticle::FireEffect, osgParticle::SmokeEffect, and osgParticle::SmokeTrailEffect. |
|
|
Implemented in osgParticle::ExplosionDebrisEffect, osgParticle::ExplosionEffect, osgParticle::FireEffect, osgParticle::SmokeEffect, and osgParticle::SmokeTrailEffect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implemented in osgParticle::ExplosionDebrisEffect, osgParticle::ExplosionEffect, osgParticle::FireEffect, osgParticle::SmokeEffect, and osgParticle::SmokeTrailEffect. |
|
|
Implemented in osgParticle::ExplosionDebrisEffect, osgParticle::ExplosionEffect, osgParticle::FireEffect, osgParticle::SmokeEffect, and osgParticle::SmokeTrailEffect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return the name of the node's library.
Reimplemented from osg::Node. |
|
|
|
|
|
|
|
|
Reimplemented in osgParticle::ExplosionDebrisEffect, osgParticle::ExplosionEffect, osgParticle::FireEffect, osgParticle::SmokeEffect, and osgParticle::SmokeTrailEffect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implemented in osgParticle::ExplosionDebrisEffect, osgParticle::ExplosionEffect, osgParticle::FireEffect, osgParticle::SmokeEffect, and osgParticle::SmokeTrailEffect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|