OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
osgParticle::ParticleEffect Class Reference
Inheritance diagram for osgParticle::ParticleEffect:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ParticleEffect (bool automaticSetup=true)
 ParticleEffect (const ParticleEffect &copy, const osg::CopyOp &copyop=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
 return true if this and obj are of the same kind of object.
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 ParticlegetDefaultParticleTemplate () const
void setPosition (const osg::Vec3 &position)
const osg::Vec3getPosition () 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::Vec3getWind () const
bool areAllParticlesDead () const
 Get whether all particles are dead.
virtual EmittergetEmitter ()=0
virtual const EmittergetEmitter () const =0
virtual ProgramgetProgram ()=0
virtual const ProgramgetProgram () const =0
void setParticleSystem (ParticleSystem *ps)
ParticleSystemgetParticleSystem ()
const ParticleSystemgetParticleSystem () 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

Constructor & Destructor Documentation

osgParticle::ParticleEffect::ParticleEffect ( bool  automaticSetup = true) [inline, explicit]
virtual osgParticle::ParticleEffect::~ParticleEffect ( ) [inline, protected, virtual]

Member Function Documentation

virtual void osgParticle::ParticleEffect::accept ( osg::NodeVisitor nv) [inline, virtual]

Visitor Pattern : calls the apply method of a NodeVisitor with this node's type.

Reimplemented from osg::Node.

References osg::NodeVisitor::apply(), osg::NodeVisitor::popFromNodePath(), osg::NodeVisitor::pushOntoNodePath(), and osg::NodeVisitor::validNodeMask().

Get whether all particles are dead.

virtual void osgParticle::ParticleEffect::buildEffect ( ) [virtual]
virtual const char* osgParticle::ParticleEffect::className ( ) const [inline, virtual]

return the name of the node's class type.

Reimplemented from osg::Node.

virtual Emitter* osgParticle::ParticleEffect::getEmitter ( ) [pure virtual]
virtual const Emitter* osgParticle::ParticleEffect::getEmitter ( ) const [pure virtual]
virtual Program* osgParticle::ParticleEffect::getProgram ( ) [pure virtual]
virtual const Program* osgParticle::ParticleEffect::getProgram ( ) const [pure virtual]
float osgParticle::ParticleEffect::getScale ( ) const [inline]
double osgParticle::ParticleEffect::getStartTime ( ) const [inline]
const std::string& osgParticle::ParticleEffect::getTextureFileName ( ) const [inline]
virtual bool osgParticle::ParticleEffect::isSameKindAs ( const osg::Object obj) const [inline, virtual]

return true if this and obj are of the same kind of object.

Reimplemented from osg::Node.

virtual const char* osgParticle::ParticleEffect::libraryName ( ) const [inline, virtual]

return the name of the node's library.

Reimplemented from osg::Node.

void osgParticle::ParticleEffect::setAutomaticSetup ( bool  flag) [inline]
virtual void osgParticle::ParticleEffect::setDefaults ( ) [virtual]
void osgParticle::ParticleEffect::setIntensity ( float  intensity)
void osgParticle::ParticleEffect::setStartTime ( double  startTime)
void osgParticle::ParticleEffect::setTextureFileName ( const std::string &  filename)
virtual void osgParticle::ParticleEffect::setUpEmitterAndProgram ( ) [pure virtual]

Member Data Documentation


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

osg logo
Generated at Mon May 7 2012 07:18:35 for the OpenSceneGraph by doxygen 1.8.0.