Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgParticle::Shooter Class Reference

An abstract base class used by ModularEmitter to "shoot" the particles after they have been placed. More...

Inheritance diagram for osgParticle::Shooter:

Inheritance graph
[legend]
List of all members.

Public Methods

 Shooter ()
 Shooter (const Shooter &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual const char * libraryName () const
 return the name of the object's library.

virtual const char * className () const
 return the name of the object's class type.

virtual bool isSameKindAs (const osg::Object *obj) const
virtual void shoot (Particle *P) const=0
 Shoot a particle.


Protected Methods

virtual ~Shooter ()
Shooter & operator= (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]
 

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 the is that the namspace 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:
Generated at Wed Sep 18 13:55:55 2002 for the Open Scene Graph by doxygen 1.2.16.