OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgParticle::ExplosionOperator Class Reference

#include <ExplosionOperator.h>

Inheritance diagram for osgParticle::ExplosionOperator:
Inheritance graph
[legend]
Collaboration diagram for osgParticle::ExplosionOperator:
Collaboration graph
[legend]

Public Member Functions

 ExplosionOperator ()
 
 ExplosionOperator (const ExplosionOperator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgParticle, ExplosionOperator)
 
void setCenter (const osg::Vec3 &c)
 Set the center of shock wave. More...
 
const osg::Vec3getCenter () 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 &copy, const osg::CopyOp &copyop=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 &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (const CopyOp &) const =0
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () 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::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () 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 &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

virtual ~ExplosionOperator ()
 
ExplosionOperatoroperator= (const ExplosionOperator &)
 
- Protected Member Functions inherited from osgParticle::Operator
virtual ~Operator ()
 
Operatoroperator= (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::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Detailed Description

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.

Constructor & Destructor Documentation

osgParticle::ExplosionOperator::ExplosionOperator ( )
inline

Definition at line 32 of file ExplosionOperator.h.

osgParticle::ExplosionOperator::ExplosionOperator ( const ExplosionOperator copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Definition at line 38 of file ExplosionOperator.h.

virtual osgParticle::ExplosionOperator::~ExplosionOperator ( )
inlineprotectedvirtual

Definition at line 83 of file ExplosionOperator.h.

Member Function Documentation

void osgParticle::ExplosionOperator::beginOperate ( Program prg)
inlinevirtual

Perform some initializations. Do not call this method manually.

Reimplemented from osgParticle::Operator.

Definition at line 108 of file ExplosionOperator.h.

Here is the call graph for this function:

const osg::Vec3& osgParticle::ExplosionOperator::getCenter ( ) const
inline

Get the center of shock wave.

Definition at line 50 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::getEpsilon ( ) const
inline

Get the acceleration epsilon.

Definition at line 68 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::getMagnitude ( ) const
inline

Get the acceleration scale.

Definition at line 62 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::getRadius ( ) const
inline

Get the radius of wave peak.

Definition at line 56 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::getSigma ( ) const
inline

Get broadness of the strength of the wave.

Definition at line 74 of file ExplosionOperator.h.

osgParticle::ExplosionOperator::META_Object ( osgParticle  ,
ExplosionOperator   
)
void osgParticle::ExplosionOperator::operate ( Particle P,
double  dt 
)
inlinevirtual

Apply the acceleration to a particle. Do not call this method manually.

Implements osgParticle::Operator.

Definition at line 98 of file ExplosionOperator.h.

Here is the call graph for this function:

ExplosionOperator& osgParticle::ExplosionOperator::operator= ( const ExplosionOperator )
inlineprotected

Definition at line 84 of file ExplosionOperator.h.

void osgParticle::ExplosionOperator::setCenter ( const osg::Vec3 c)
inline

Set the center of shock wave.

Definition at line 47 of file ExplosionOperator.h.

void osgParticle::ExplosionOperator::setEpsilon ( float  eps)
inline

Set the acceleration epsilon.

Definition at line 65 of file ExplosionOperator.h.

void osgParticle::ExplosionOperator::setMagnitude ( float  mag)
inline

Set the acceleration scale.

Definition at line 59 of file ExplosionOperator.h.

void osgParticle::ExplosionOperator::setRadius ( float  r)
inline

Set the radius of wave peak.

Definition at line 53 of file ExplosionOperator.h.

void osgParticle::ExplosionOperator::setSigma ( float  s)
inline

Set broadness of the strength of the wave.

Definition at line 71 of file ExplosionOperator.h.

Member Data Documentation

osg::Vec3 osgParticle::ExplosionOperator::_center
protected

Definition at line 86 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::_epsilon
protected

Definition at line 90 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::_inexp
protected

Definition at line 92 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::_magnitude
protected

Definition at line 89 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::_outexp
protected

Definition at line 93 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::_radius
protected

Definition at line 88 of file ExplosionOperator.h.

float osgParticle::ExplosionOperator::_sigma
protected

Definition at line 91 of file ExplosionOperator.h.

osg::Vec3 osgParticle::ExplosionOperator::_xf_center
protected

Definition at line 87 of file ExplosionOperator.h.


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