OpenSceneGraph 2.8.3
|
An abstract base class used by ModularEmitter to "shoot" the particles after they have been placed. More...
Public Member Functions | |
Shooter () | |
Shooter (const Shooter ©, const osg::CopyOp ©op=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 Member Functions | |
virtual | ~Shooter () |
Shooter & | operator= (const Shooter &) |
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.
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] |
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.
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.
![]() | Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3. |