OpenSceneGraph
3.0.1
|
A bounce operator can affect the particle's velocity to make it rebound. More...
Public Member Functions | |
BounceOperator () | |
BounceOperator (const BounceOperator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgParticle, BounceOperator) | |
void | setFriction (float f) |
Set the friction. | |
float | getFriction () const |
Get the friction. | |
void | setResilience (float r) |
Set the resilience. | |
float | getResilience () const |
Get the velocity cutoff factor. | |
void | setCutoff (float v) |
Set the velocity cutoff factor. | |
float | getCutoff () const |
Get the velocity cutoff factor. | |
Protected Member Functions | |
virtual | ~BounceOperator () |
BounceOperator & | operator= (const BounceOperator &) |
virtual void | handleTriangle (const Domain &domain, Particle *P, double dt) |
virtual void | handleRectangle (const Domain &domain, Particle *P, double dt) |
virtual void | handlePlane (const Domain &domain, Particle *P, double dt) |
virtual void | handleSphere (const Domain &domain, Particle *P, double dt) |
virtual void | handleDisk (const Domain &domain, Particle *P, double dt) |
Protected Attributes | |
float | _friction |
float | _resilience |
float | _cutoff |
A bounce operator can affect the particle's velocity to make it rebound.
Refer to David McAllister's Particle System API (http://www.particlesystems.org)
osgParticle::BounceOperator::BounceOperator | ( | ) | [inline] |
osgParticle::BounceOperator::BounceOperator | ( | const BounceOperator & | copy, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) | [inline] |
virtual osgParticle::BounceOperator::~BounceOperator | ( | ) | [inline, protected, virtual] |
float osgParticle::BounceOperator::getCutoff | ( | ) | const [inline] |
Get the velocity cutoff factor.
float osgParticle::BounceOperator::getFriction | ( | ) | const [inline] |
Get the friction.
float osgParticle::BounceOperator::getResilience | ( | ) | const [inline] |
Get the velocity cutoff factor.
virtual void osgParticle::BounceOperator::handleDisk | ( | const Domain & | domain, |
Particle * | P, | ||
double | dt | ||
) | [protected, virtual] |
Reimplemented from osgParticle::DomainOperator.
virtual void osgParticle::BounceOperator::handlePlane | ( | const Domain & | domain, |
Particle * | P, | ||
double | dt | ||
) | [protected, virtual] |
Reimplemented from osgParticle::DomainOperator.
virtual void osgParticle::BounceOperator::handleRectangle | ( | const Domain & | domain, |
Particle * | P, | ||
double | dt | ||
) | [protected, virtual] |
Reimplemented from osgParticle::DomainOperator.
virtual void osgParticle::BounceOperator::handleSphere | ( | const Domain & | domain, |
Particle * | P, | ||
double | dt | ||
) | [protected, virtual] |
Reimplemented from osgParticle::DomainOperator.
virtual void osgParticle::BounceOperator::handleTriangle | ( | const Domain & | domain, |
Particle * | P, | ||
double | dt | ||
) | [protected, virtual] |
Reimplemented from osgParticle::DomainOperator.
osgParticle::BounceOperator::META_Object | ( | osgParticle | , |
BounceOperator | |||
) |
BounceOperator& osgParticle::BounceOperator::operator= | ( | const BounceOperator & | ) | [inline, protected] |
void osgParticle::BounceOperator::setCutoff | ( | float | v | ) | [inline] |
Set the velocity cutoff factor.
void osgParticle::BounceOperator::setFriction | ( | float | f | ) | [inline] |
Set the friction.
void osgParticle::BounceOperator::setResilience | ( | float | r | ) | [inline] |
Set the resilience.
float osgParticle::BounceOperator::_cutoff [protected] |
float osgParticle::BounceOperator::_friction [protected] |
float osgParticle::BounceOperator::_resilience [protected] |
![]() | Generated at Mon Jun 4 2012 14:27:18 for the OpenSceneGraph by doxygen 1.8.0. |