|
OSG
3.4.0
|
#include <ExplosionOperator.h>


Public Member Functions | |
| ExplosionOperator () | |
| ExplosionOperator (const ExplosionOperator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| META_Object (osgParticle, ExplosionOperator) | |
| void | setCenter (const osg::Vec3 &c) |
| Set the center of shock wave. More... | |
| const osg::Vec3 & | getCenter () const |
| Get the center of shock wave. More... | |
| void | setRadius (float r) |
| Set the radius of wave peak. More... | |
| float | getRadius () const |
| Get the radius of wave peak. More... | |
| void | setMagnitude (float mag) |
| Set the acceleration scale. More... | |
| float | getMagnitude () const |
| Get the acceleration scale. More... | |
| void | setEpsilon (float eps) |
| Set the acceleration epsilon. More... | |
| float | getEpsilon () const |
| Get the acceleration epsilon. More... | |
| void | setSigma (float s) |
| Set broadness of the strength of the wave. More... | |
| float | getSigma () const |
| Get broadness of the strength of the wave. More... | |
| void | operate (Particle *P, double dt) |
| Apply the acceleration to a particle. Do not call this method manually. More... | |
| void | beginOperate (Program *prg) |
| Perform some initializations. Do not call this method manually. More... | |
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. More... | |
| void | setEnabled (bool v) |
| Enable or disable this operator. More... | |
| virtual void | operateParticles (ParticleSystem *ps, double dt) |
| virtual void | endOperate () |
| Do something after all particles have been processed. More... | |
Public Member Functions inherited from osg::Object | |
| 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 |
| std::string | getCompoundClassName () const |
| virtual Node * | asNode () |
| virtual const Node * | asNode () const |
| virtual NodeVisitor * | asNodeVisitor () |
| virtual const NodeVisitor * | asNodeVisitor () const |
| virtual StateAttribute * | asStateAttribute () |
| virtual const StateAttribute * | asStateAttribute () const |
| virtual Uniform * | asUniform () |
| virtual const Uniform * | asUniform () const |
| 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 |
| template<typename T > | |
| BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
Public Member Functions inherited from osg::Referenced | |
| 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 |
Protected Member Functions | |
| virtual | ~ExplosionOperator () |
| ExplosionOperator & | operator= (const ExplosionOperator &) |
Protected Member Functions inherited from osgParticle::Operator | |
| virtual | ~Operator () |
| Operator & | operator= (const Operator &) |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| osg::Vec3 | _center |
| osg::Vec3 | _xf_center |
| float | _radius |
| float | _magnitude |
| float | _epsilon |
| float | _sigma |
| float | _inexp |
| float | _outexp |
Protected Attributes inherited from osg::Object | |
| std::string | _name |
| DataVariance | _dataVariance |
| osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Public Types inherited from osg::Object | |
| enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
An explosion operator exerts force on each particle away from the explosion center. Refer to David McAllister's Particle System API (http://www.particlesystems.org)
Definition at line 29 of file ExplosionOperator.h.
|
inline |
Definition at line 32 of file ExplosionOperator.h.
|
inline |
Definition at line 38 of file ExplosionOperator.h.
|
inlineprotectedvirtual |
Definition at line 83 of file ExplosionOperator.h.
|
inlinevirtual |
Perform some initializations. Do not call this method manually.
Reimplemented from osgParticle::Operator.
Definition at line 108 of file ExplosionOperator.h.

|
inline |
Get the center of shock wave.
Definition at line 50 of file ExplosionOperator.h.
|
inline |
Get the acceleration epsilon.
Definition at line 68 of file ExplosionOperator.h.
|
inline |
Get the acceleration scale.
Definition at line 62 of file ExplosionOperator.h.
|
inline |
Get the radius of wave peak.
Definition at line 56 of file ExplosionOperator.h.
|
inline |
Get broadness of the strength of the wave.
Definition at line 74 of file ExplosionOperator.h.
| osgParticle::ExplosionOperator::META_Object | ( | osgParticle | , |
| ExplosionOperator | |||
| ) |
|
inlinevirtual |
Apply the acceleration to a particle. Do not call this method manually.
Implements osgParticle::Operator.
Definition at line 98 of file ExplosionOperator.h.

|
inlineprotected |
Definition at line 84 of file ExplosionOperator.h.
|
inline |
Set the center of shock wave.
Definition at line 47 of file ExplosionOperator.h.
|
inline |
Set the acceleration epsilon.
Definition at line 65 of file ExplosionOperator.h.
|
inline |
Set the acceleration scale.
Definition at line 59 of file ExplosionOperator.h.
|
inline |
Set the radius of wave peak.
Definition at line 53 of file ExplosionOperator.h.
|
inline |
Set broadness of the strength of the wave.
Definition at line 71 of file ExplosionOperator.h.
|
protected |
Definition at line 86 of file ExplosionOperator.h.
|
protected |
Definition at line 90 of file ExplosionOperator.h.
|
protected |
Definition at line 92 of file ExplosionOperator.h.
|
protected |
Definition at line 89 of file ExplosionOperator.h.
|
protected |
Definition at line 93 of file ExplosionOperator.h.
|
protected |
Definition at line 88 of file ExplosionOperator.h.
|
protected |
Definition at line 91 of file ExplosionOperator.h.
|
protected |
Definition at line 87 of file ExplosionOperator.h.
1.8.8