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.
|
Public Member Functions inherited from osgParticle::Operator |
| Operator () |
| Operator (const Operator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual bool | isSameKindAs (const osg::Object *obj) const |
bool | isEnabled () const |
| Get whether this operator is enabled.
|
void | setEnabled (bool v) |
| Enable or disable this operator.
|
virtual void | operateParticles (ParticleSystem *ps, double dt) |
virtual void | beginOperate (Program *) |
virtual void | endOperate () |
| Do something after all particles have been processed.
|
| Object () |
| Object (bool threadSafeRefUnref) |
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
virtual Object * | cloneType () const =0 |
virtual Object * | clone (const CopyOp &) const =0 |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | setName (const std::string &name) |
void | setName (const char *name) |
const std::string & | getName () const |
void | setDataVariance (DataVariance dv) |
DataVariance | getDataVariance () const |
virtual void | computeDataVariance () |
void | setUserDataContainer (osg::UserDataContainer *udc) |
osg::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () const |
template<typename T > |
bool | getUserValue (const std::string &name, T &value) const |
template<typename T > |
void | setUserValue (const std::string &name, const T &value) |
virtual void | resizeGLObjectBuffers (unsigned int) |
virtual void | releaseGLObjects (osg::State *=0) const |
| Referenced () |
| Referenced (bool threadSafeRefUnref) |
| Referenced (const Referenced &) |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
A angular damping operator applies damping constant to particle's angular velocity. Refer to David McAllister's Particle System API (http://www.particlesystems.org)