OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
osgParticle::BounceOperator Class Reference

A bounce operator can affect the particle's velocity to make it rebound. More...

Inheritance diagram for osgParticle::BounceOperator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BounceOperator ()
 BounceOperator (const BounceOperator &copy, const osg::CopyOp &copyop=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 ()
BounceOperatoroperator= (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

Detailed Description

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)


Constructor & Destructor Documentation

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]

Member Function Documentation

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.


Member Data Documentation


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

osg logo
Generated at Mon Oct 3 2011 12:39:48 for the OpenSceneGraph by doxygen 1.7.5.