OpenSceneGraph
3.0.1
|
A angular damping operator applies damping constant to particle's angular velocity. More...
Public Member Functions | |
AngularDampingOperator () | |
AngularDampingOperator (const AngularDampingOperator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgParticle, AngularDampingOperator) | |
void | setDamping (float x, float y, float z) |
Set the damping factors. | |
void | setDamping (const osg::Vec3 &damping) |
void | setDamping (float x) |
Set the damping factors to one value. | |
void | getDamping (float &x, float &y, float &z) const |
Get the damping factors. | |
const osg::Vec3 & | getDamping () const |
void | setCutoff (float low, float high) |
Set the velocity cutoff factors. | |
void | setCutoffLow (float low) |
void | setCutoffHigh (float low) |
void | getCutoff (float &low, float &high) const |
Get the velocity cutoff factors. | |
float | getCutoffLow () const |
float | getCutoffHigh () const |
void | operate (Particle *P, double dt) |
Apply the acceleration to a particle. Do not call this method manually. | |
Protected Member Functions | |
virtual | ~AngularDampingOperator () |
AngularDampingOperator & | operator= (const AngularDampingOperator &) |
Protected Attributes | |
osg::Vec3 | _damping |
float | _cutoffLow |
float | _cutoffHigh |
A angular damping operator applies damping constant to particle's angular velocity.
Refer to David McAllister's Particle System API (http://www.particlesystems.org)
osgParticle::AngularDampingOperator::AngularDampingOperator | ( | ) | [inline] |
osgParticle::AngularDampingOperator::AngularDampingOperator | ( | const AngularDampingOperator & | copy, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) | [inline] |
virtual osgParticle::AngularDampingOperator::~AngularDampingOperator | ( | ) | [inline, protected, virtual] |
void osgParticle::AngularDampingOperator::getCutoff | ( | float & | low, |
float & | high | ||
) | const [inline] |
Get the velocity cutoff factors.
References _cutoffLow, and _cutoffHigh.
float osgParticle::AngularDampingOperator::getCutoffHigh | ( | ) | const [inline] |
References _cutoffHigh.
float osgParticle::AngularDampingOperator::getCutoffLow | ( | ) | const [inline] |
References _cutoffLow.
void osgParticle::AngularDampingOperator::getDamping | ( | float & | x, |
float & | y, | ||
float & | z | ||
) | const [inline] |
Get the damping factors.
References _damping, osg::Vec3f::x(), osg::Vec3f::y(), and osg::Vec3f::z().
const osg::Vec3& osgParticle::AngularDampingOperator::getDamping | ( | ) | const [inline] |
References _damping.
osgParticle::AngularDampingOperator::META_Object | ( | osgParticle | , |
AngularDampingOperator | |||
) |
void osgParticle::AngularDampingOperator::operate | ( | Particle * | P, |
double | dt | ||
) | [inline, virtual] |
Apply the acceleration to a particle. Do not call this method manually.
Implements osgParticle::Operator.
References osgParticle::Particle::getAngularVelocity(), osg::Vec3f::length2(), _cutoffLow, _cutoffHigh, osg::Vec3f::x(), _damping, osg::Vec3f::y(), osg::Vec3f::z(), and osgParticle::Particle::setAngularVelocity().
AngularDampingOperator& osgParticle::AngularDampingOperator::operator= | ( | const AngularDampingOperator & | ) | [inline, protected] |
void osgParticle::AngularDampingOperator::setCutoff | ( | float | low, |
float | high | ||
) | [inline] |
Set the velocity cutoff factors.
References _cutoffLow, and _cutoffHigh.
void osgParticle::AngularDampingOperator::setCutoffHigh | ( | float | low | ) | [inline] |
References _cutoffHigh.
void osgParticle::AngularDampingOperator::setCutoffLow | ( | float | low | ) | [inline] |
References _cutoffLow.
void osgParticle::AngularDampingOperator::setDamping | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Set the damping factors.
References _damping, and osg::Vec3f::set().
void osgParticle::AngularDampingOperator::setDamping | ( | const osg::Vec3 & | damping | ) | [inline] |
References _damping.
void osgParticle::AngularDampingOperator::setDamping | ( | float | x | ) | [inline] |
Set the damping factors to one value.
References _damping, and osg::Vec3f::set().
float osgParticle::AngularDampingOperator::_cutoffHigh [protected] |
Referenced by setCutoff(), setCutoffHigh(), getCutoff(), getCutoffHigh(), and operate().
float osgParticle::AngularDampingOperator::_cutoffLow [protected] |
Referenced by setCutoff(), setCutoffLow(), getCutoff(), getCutoffLow(), and operate().
Referenced by setDamping(), getDamping(), and operate().
![]() | Generated at Mon Oct 3 2011 12:39:48 for the OpenSceneGraph by doxygen 1.7.5. |