Public Member Functions | Protected Member Functions

osgParticle::Shooter Class Reference

Inheritance diagram for osgParticle::Shooter:
osg::Object osg::Referenced osgParticle::RadialShooter

List of all members.

Public Member Functions

 Shooter ()
 Shooter (const Shooter &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual const char * libraryName () const
virtual const char * className () const
virtual bool isSameKindAs (const osg::Object *obj) const
virtual void shoot (Particle *P) const =0

Protected Member Functions

virtual ~Shooter ()
Shooteroperator= (const Shooter &)

Detailed Description

An abstract base class used by ModularEmitter to "shoot" the particles after they have been placed. Descendants of this class must override the shoot() method.


Constructor & Destructor Documentation

osgParticle::Shooter::Shooter (  ) [inline]
osgParticle::Shooter::Shooter ( const Shooter copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
) [inline]
virtual osgParticle::Shooter::~Shooter (  ) [inline, protected, virtual]

Member Function Documentation

virtual const char* osgParticle::Shooter::className (  ) const [inline, virtual]

return the name of the object's class type. Must be defined by derived classes.

Implements osg::Object.

virtual bool osgParticle::Shooter::isSameKindAs ( const osg::Object obj ) const [inline, virtual]

Reimplemented from osg::Object.

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

return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Implements osg::Object.

Shooter& osgParticle::Shooter::operator= ( const Shooter  ) [inline, protected]
virtual void osgParticle::Shooter::shoot ( Particle P ) const [pure virtual]

Shoot a particle. Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged.

Implemented in osgParticle::RadialShooter.


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