OSG
3.4.0
|
#include <ParticleSystemUpdater.h>
Public Member Functions | |
ParticleSystemUpdater () | |
ParticleSystemUpdater (const ParticleSystemUpdater ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgParticle, ParticleSystemUpdater) | |
virtual bool | addParticleSystem (ParticleSystem *ps) |
Add a particle system to the list. More... | |
virtual bool | removeParticleSystem (ParticleSystem *ps) |
Remove a particle system from the list (by pointer). More... | |
virtual bool | removeParticleSystem (unsigned int i, unsigned int numParticleSystemsToRemove=1) |
Remove a particle system(s) from the list (by index). More... | |
virtual bool | replaceParticleSystem (ParticleSystem *origPS, ParticleSystem *newPS) |
Replace ParticleSystem with another ParticleSystem. More... | |
virtual bool | setParticleSystem (unsigned int i, ParticleSystem *ps) |
set a particle system by index. More... | |
unsigned int | getNumParticleSystems () const |
Return the number of particle systems on the list. More... | |
ParticleSystem * | getParticleSystem (unsigned int i) |
Get a particle system from the list. More... | |
const ParticleSystem * | getParticleSystem (unsigned int i) const |
Get a particle system from the list. More... | |
bool | containsParticleSystem (const ParticleSystem *ps) const |
return true if ParticleSystem is contained within ParticlsSystemUpdater. More... | |
unsigned int | getParticleSystemIndex (const ParticleSystem *ps) const |
get index number of ParticleSystem. More... | |
virtual void | traverse (osg::NodeVisitor &nv) |
virtual osg::BoundingSphere | computeBound () const |
![]() | |
Node () | |
Node (const Node &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const |
virtual Object * | clone (const CopyOp ©op) const |
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual Node * | asNode () |
virtual const Node * | asNode () const |
virtual Drawable * | asDrawable () |
virtual const Drawable * | asDrawable () const |
virtual Geometry * | asGeometry () |
virtual const Geometry * | asGeometry () const |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Transform * | asTransform () |
virtual const Transform * | asTransform () const |
virtual Camera * | asCamera () |
virtual const Camera * | asCamera () const |
virtual Switch * | asSwitch () |
virtual const Switch * | asSwitch () const |
virtual Geode * | asGeode () |
virtual const Geode * | asGeode () const |
virtual osgTerrain::Terrain * | asTerrain () |
virtual const osgTerrain::Terrain * | asTerrain () const |
virtual void | accept (NodeVisitor &nv) |
virtual void | ascend (NodeVisitor &nv) |
const ParentList & | getParents () const |
ParentList | getParents () |
Group * | getParent (unsigned int i) |
const Group * | getParent (unsigned int i) const |
unsigned int | getNumParents () const |
NodePathList | getParentalNodePaths (osg::Node *haltTraversalAtNode=0) const |
MatrixList | getWorldMatrices (const osg::Node *haltTraversalAtNode=0) const |
void | setUpdateCallback (Callback *nc) |
Callback * | getUpdateCallback () |
const Callback * | getUpdateCallback () const |
void | addUpdateCallback (Callback *nc) |
void | removeUpdateCallback (Callback *nc) |
unsigned int | getNumChildrenRequiringUpdateTraversal () const |
void | setEventCallback (Callback *nc) |
Callback * | getEventCallback () |
const Callback * | getEventCallback () const |
void | addEventCallback (Callback *nc) |
void | removeEventCallback (Callback *nc) |
unsigned int | getNumChildrenRequiringEventTraversal () const |
void | setCullCallback (Callback *nc) |
Callback * | getCullCallback () |
const Callback * | getCullCallback () const |
void | addCullCallback (Callback *nc) |
void | removeCullCallback (Callback *nc) |
void | setCullingActive (bool active) |
bool | getCullingActive () const |
unsigned int | getNumChildrenWithCullingDisabled () const |
bool | isCullingActive () const |
unsigned int | getNumChildrenWithOccluderNodes () const |
bool | containsOccluderNodes () const |
void | setNodeMask (NodeMask nm) |
NodeMask | getNodeMask () const |
void | setStateSet (osg::StateSet *stateset) |
osg::StateSet * | getOrCreateStateSet () |
osg::StateSet * | getStateSet () |
const osg::StateSet * | getStateSet () const |
void | setDescriptions (const DescriptionList &descriptions) |
DescriptionList & | getDescriptions () |
const DescriptionList & | getDescriptions () const |
const std::string & | getDescription (unsigned int i) const |
std::string & | getDescription (unsigned int i) |
unsigned int | getNumDescriptions () const |
void | addDescription (const std::string &desc) |
void | setInitialBound (const osg::BoundingSphere &bsphere) |
const BoundingSphere & | getInitialBound () const |
void | dirtyBound () |
const BoundingSphere & | getBound () const |
void | setComputeBoundingSphereCallback (ComputeBoundingSphereCallback *callback) |
ComputeBoundingSphereCallback * | getComputeBoundingSphereCallback () |
const ComputeBoundingSphereCallback * | getComputeBoundingSphereCallback () const |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | resizeGLObjectBuffers (unsigned int) |
virtual void | releaseGLObjects (osg::State *=0) const |
![]() | |
Object () | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
std::string | getCompoundClassName () 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 | 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) |
template<typename T > | |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) 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 |
Protected Member Functions | |
virtual | ~ParticleSystemUpdater () |
ParticleSystemUpdater & | operator= (const ParticleSystemUpdater &) |
![]() | |
virtual | ~Node () |
void | addParent (osg::Group *parent) |
void | removeParent (osg::Group *parent) |
void | setNumChildrenRequiringUpdateTraversal (unsigned int num) |
void | setNumChildrenRequiringEventTraversal (unsigned int num) |
void | setNumChildrenWithCullingDisabled (unsigned int num) |
void | setNumChildrenWithOccluderNodes (unsigned int num) |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
A useful node class for updating particle systems automatically. When a ParticleSystemUpdater is traversed by a cull visitor, it calls the update() method on the specified particle systems. You should place this updater AFTER other nodes like emitters and programs.
Definition at line 39 of file ParticleSystemUpdater.h.
osgParticle::ParticleSystemUpdater::ParticleSystemUpdater | ( | ) |
osgParticle::ParticleSystemUpdater::ParticleSystemUpdater | ( | const ParticleSystemUpdater & | copy, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
|
inlineprotectedvirtual |
Definition at line 81 of file ParticleSystemUpdater.h.
|
virtual |
Add a particle system to the list.
|
virtual |
Compute the bounding sphere around Node's geometry or children. This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().
Reimplemented from osg::Node.
|
inline |
return true if ParticleSystem is contained within ParticlsSystemUpdater.
Definition at line 112 of file ParticleSystemUpdater.h.
|
inline |
Return the number of particle systems on the list.
Definition at line 97 of file ParticleSystemUpdater.h.
|
inline |
Get a particle system from the list.
Definition at line 102 of file ParticleSystemUpdater.h.
|
inline |
Get a particle system from the list.
Definition at line 107 of file ParticleSystemUpdater.h.
|
inline |
get index number of ParticleSystem.
Definition at line 123 of file ParticleSystemUpdater.h.
osgParticle::ParticleSystemUpdater::META_Node | ( | osgParticle | , |
ParticleSystemUpdater | |||
) |
|
inlineprotected |
Definition at line 82 of file ParticleSystemUpdater.h.
|
virtual |
Remove a particle system from the list (by pointer).
|
virtual |
Remove a particle system(s) from the list (by index).
|
virtual |
Replace ParticleSystem with another ParticleSystem.
|
virtual |
set a particle system by index.
|
virtual |
Traverse downwards : calls children's accept method with NodeVisitor.
Reimplemented from osg::Node.