2002-06-05 20:44:55 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class OSGPARTICLE_EXPORT osgParticle::ParticleSystem< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class OSGPARTICLE_EXPORT < A HREF = "#DOC.DOCU" > osgParticle::ParticleSystem< / A > < / H2 > < / H2 > < BLOCKQUOTE > The heart of this class library; its purpose is to hold a set of particles and manage particle creation, update, rendering and destruction.< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 65 >
< param name = classes value = "Mosg::Drawable,M,CParticleSystem,MParticleSystem.html" >
< param name = before value = "M,M" >
< param name = after value = "Md_,M" >
< param name = indent value = "0,1" >
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.15.1" > ParticleSystem< / A > < / B > ()
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.15.2" > ParticleSystem< / A > < / B > (const <!1> < A HREF = "ParticleSystem.html#DOC.2.15.2" > ParticleSystem< / A > & copy, const osg::CopyOp & copyop = osg::CopyOp::SHALLOW_COPY)
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.15.3" > META_Object< / A > < / B > (<!1> < A HREF = "osgParticle.html" > osgParticle< / A > , <!1> < A HREF = "ParticleSystem.html" > ParticleSystem< / A > )
2002-06-05 20:44:55 +08:00
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline virtual <!1> < A HREF = "Particle.html" > Particle< / A > * < B > < A HREF = "#DOC.2.15.4" > createParticle< / A > < / B > (const <!1> < A HREF = "Particle.html" > Particle< / A > * ptemplate)
< DD > < I > Create a new particle from the specified template (or the default one if < CODE > ptemplate< / CODE > is null)< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline virtual void < B > < A HREF = "#DOC.2.15.5" > destroyParticle< / A > < / B > (int i)
< DD > < I > Destroy the i-th particle< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.15.6" > setDefaultAttributes< / A > < / B > (const std::string & texturefile = "", bool emissive_particles = true, bool lighting = false, int texture_unit = 0)
2002-06-05 20:44:55 +08:00
< DD > < I > A useful method to set the most common < CODE > StateAttribute< / CODE > 's in one call.< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.15.7" > update< / A > < / B > (double dt)
< DD > < I > Update the particles.< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline bool < B > < A HREF = "#DOC.2.15.28" > isFrozen< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Return true if the particle system is frozen< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.29" > setFrozen< / A > < / B > (bool v)
2002-06-05 20:44:55 +08:00
< DD > < I > Set or reset the < I > frozen< / I > state.< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const osg::BoundingBox& < B > < A HREF = "#DOC.2.15.30" > getDefaultBoundingBox< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get the default bounding box< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.31" > setDefaultBoundingBox< / A > < / B > (const osg::BoundingBox & bbox)
2002-06-05 20:44:55 +08:00
< DD > < I > Set the default bounding box.< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline bool < B > < A HREF = "#DOC.2.15.32" > getDoublePassRendering< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get the double pass rendering flag< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.33" > setDoublePassRendering< / A > < / B > (bool v)
2002-06-05 20:44:55 +08:00
< DD > < I > Set the double pass rendering flag.< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline int < B > < A HREF = "#DOC.2.15.34" > numParticles< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get the number of allocated particles (alive + dead)< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline int < B > < A HREF = "#DOC.2.15.35" > numDeadParticles< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get the number of dead particles< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "Particle.html" > Particle< / A > * < B > < A HREF = "#DOC.2.15.36" > getParticle< / A > < / B > (int i)
2002-06-05 20:44:55 +08:00
< DD > < I > Get a pointer to the i-th particle< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Particle.html" > Particle< / A > * < B > < A HREF = "#DOC.2.15.37" > getParticle< / A > < / B > (int i) const
2002-06-05 20:44:55 +08:00
< DD > < I > Get a const pointer to the i-th particle< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.38" > destroyParticle< / A > < / B > (int i)
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline int < B > < A HREF = "#DOC.2.15.39" > getLastFrameNumber< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get the last frame number< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const bool < B > < A HREF = "#DOC.2.15.40" > computeBound< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.41" > update_bounds< / A > < / B > (const osg::Vec3 & p, float r)
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Particle.html" > Particle< / A > & < B > < A HREF = "#DOC.2.15.42" > getDefaultParticleTemplate< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get a reference to the default particle template< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.43" > setDefaultParticleTemplate< / A > < / B > (const <!1> < A HREF = "Particle.html" > Particle< / A > & p)
2002-06-05 20:44:55 +08:00
< DD > < I > Set the default particle template (particle is copied)< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline bool < B > < A HREF = "#DOC.2.15.44" > getFreezeOnCull< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > Get whether the particle system can freeze when culled< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.45" > setFreezeOnCull< / A > < / B > (bool v)
2002-06-05 20:44:55 +08:00
< DD > < I > Set whether the particle system can freeze when culled (default is true)< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline int < B > < A HREF = "#DOC.2.15.46" > getLevelOfDetail< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DD > < I > (< B > EXPERIMENTAL< / B > ) Get the level of detail< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.15.47" > setLevelOfDetail< / A > < / B > (int v)
2002-06-05 20:44:55 +08:00
< DD > < I > (< B > EXPERIMENTAL< / B > ) Set the level of detail.< / I >
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "Particle.html" > Particle< / A > * < B > < A HREF = "#DOC.2.15.48" > createParticle< / A > < / B > (const <!1> < A HREF = "Particle.html" > Particle< / A > * ptemplate)
2002-06-05 20:44:55 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.15.8" > ~ParticleSystem< / A > < / B > ()
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ParticleSystem.html" > ParticleSystem< / A > & < B > < A HREF = "#DOC.2.15.9" > operator=< / A > < / B > (const <!1> < A HREF = "ParticleSystem.html" > ParticleSystem< / A > & )
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline virtual const bool < B > < A HREF = "#DOC.2.15.10" > computeBound< / A > < / B > () const
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.15.11" > drawImmediateMode< / A > < / B > (osg::State & state)
2002-06-05 20:44:55 +08:00
< DT >
2002-07-19 03:54:11 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.15.12" > single_pass_render< / A > < / B > (const osg::Matrix & modelview)
2002-06-05 20:44:55 +08:00
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > The heart of this class library; its purpose is to hold a set of particles and manage particle creation, update, rendering and destruction.
You can add this drawable to any < CODE > Geode< / CODE > as you usually do with other
< CODE > Drawable< / CODE > classes. Each instance of < CODE > ParticleSystem< / CODE > is a separate set of
particles; it provides the interface for creating particles and iterating
through them (see the < CODE > Emitter< / CODE > and < CODE > Program< / CODE > classes).< / BLOCKQUOTE >
< DL >
< A NAME = "ParticleSystem" > < / A >
< A NAME = "DOC.2.15.1" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > ParticleSystem()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "ParticleSystem" > < / A >
< A NAME = "DOC.2.15.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > ParticleSystem(const <!1> < A HREF = "ParticleSystem.html#DOC.2.15.2" > ParticleSystem< / A > & copy, const osg::CopyOp & copyop = osg::CopyOp::SHALLOW_COPY)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "META_Object" > < / A >
< A NAME = "DOC.2.15.3" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > META_Object(<!1> < A HREF = "osgParticle.html" > osgParticle< / A > , <!1> < A HREF = "ParticleSystem.html" > ParticleSystem< / A > )< / B > < / TT >
2002-06-05 20:44:55 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "createParticle" > < / A >
< A NAME = "DOC.2.15.4" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline virtual <!1> < A HREF = "Particle.html" > Particle< / A > * createParticle(const <!1> < A HREF = "Particle.html" > Particle< / A > * ptemplate)< / B > < / TT >
< DD > Create a new particle from the specified template (or the default one if < CODE > ptemplate< / CODE > is null)
< DL > < DT > < DD > < / DL > < P >
< A NAME = "destroyParticle" > < / A >
< A NAME = "DOC.2.15.5" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline virtual void destroyParticle(int i)< / B > < / TT >
< DD > Destroy the i-th particle
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDefaultAttributes" > < / A >
< A NAME = "DOC.2.15.6" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setDefaultAttributes(const std::string & texturefile = "", bool emissive_particles = true, bool lighting = false, int texture_unit = 0)< / B > < / TT >
2002-06-05 20:44:55 +08:00
< DD > A useful method to set the most common < CODE > StateAttribute< / CODE > 's in one call.
If < CODE > texturefile< / CODE > is empty, then texturing is turned off.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "update" > < / A >
< A NAME = "DOC.2.15.7" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void update(double dt)< / B > < / TT >
< DD > Update the particles. Don't call this directly, use a < CODE > ParticleSystemUpdater< / CODE > instead.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~ParticleSystem" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.8" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~ParticleSystem()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "operator=" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.9" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ParticleSystem.html" > ParticleSystem< / A > & operator=(const <!1> < A HREF = "ParticleSystem.html" > ParticleSystem< / A > & )< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeBound" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.10" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline virtual const bool computeBound() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "drawImmediateMode" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.11" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void drawImmediateMode(osg::State & state)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "single_pass_render" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.12" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void single_pass_render(const osg::Matrix & modelview)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "isFrozen" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.28" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline bool isFrozen() const < / B > < / TT >
< DD > Return true if the particle system is frozen
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setFrozen" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.29" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setFrozen(bool v)< / B > < / TT >
< DD > Set or reset the < I > frozen< / I > state.
When the particle system is frozen, emitters and programs won't do anything on it.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDefaultBoundingBox" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.30" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const osg::BoundingBox& getDefaultBoundingBox() const < / B > < / TT >
< DD > Get the default bounding box
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDefaultBoundingBox" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.31" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setDefaultBoundingBox(const osg::BoundingBox & bbox)< / B > < / TT >
< DD > Set the default bounding box.
The default bounding box is used when a real bounding box cannot be computed, for example
because no particles has been updated yet.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDoublePassRendering" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.32" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline bool getDoublePassRendering() const < / B > < / TT >
< DD > Get the double pass rendering flag
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDoublePassRendering" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.33" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setDoublePassRendering(bool v)< / B > < / TT >
< DD > Set the double pass rendering flag.
Double pass rendering avoids overdraw problems between particle systems
and other opaque objects. If you can render all the particle systems < U > after< / U >
the opaque objects, then double pass is not necessary and can be turned off (best choice).
If you set the default attributes with < CODE > setDefaultAttributes< / CODE > , then the particle
system will fall into a transparent bin.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "numParticles" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.34" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline int numParticles() const < / B > < / TT >
< DD > Get the number of allocated particles (alive + dead)
< DL > < DT > < DD > < / DL > < P >
< A NAME = "numDeadParticles" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.35" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline int numDeadParticles() const < / B > < / TT >
< DD > Get the number of dead particles
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getParticle" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.36" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "Particle.html" > Particle< / A > * getParticle(int i)< / B > < / TT >
< DD > Get a pointer to the i-th particle
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getParticle" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.37" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Particle.html" > Particle< / A > * getParticle(int i) const < / B > < / TT >
< DD > Get a const pointer to the i-th particle
< DL > < DT > < DD > < / DL > < P >
< A NAME = "destroyParticle" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.38" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void destroyParticle(int i)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getLastFrameNumber" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.39" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline int getLastFrameNumber() const < / B > < / TT >
< DD > Get the last frame number
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeBound" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.40" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const bool computeBound() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "update_bounds" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.41" > < / A >
2002-07-17 04:07:32 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void update_bounds(const osg::Vec3 & p, float r)< / B > < / TT >
2002-06-05 20:44:55 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDefaultParticleTemplate" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.42" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Particle.html" > Particle< / A > & getDefaultParticleTemplate() const < / B > < / TT >
< DD > Get a reference to the default particle template
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDefaultParticleTemplate" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.43" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setDefaultParticleTemplate(const <!1> < A HREF = "Particle.html" > Particle< / A > & p)< / B > < / TT >
< DD > Set the default particle template (particle is copied)
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getFreezeOnCull" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.44" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline bool getFreezeOnCull() const < / B > < / TT >
< DD > Get whether the particle system can freeze when culled
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setFreezeOnCull" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.45" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setFreezeOnCull(bool v)< / B > < / TT >
< DD > Set whether the particle system can freeze when culled (default is true)
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getLevelOfDetail" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.46" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline int getLevelOfDetail() const < / B > < / TT >
< DD > (< B > EXPERIMENTAL< / B > ) Get the level of detail
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setLevelOfDetail" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.47" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setLevelOfDetail(int v)< / B > < / TT >
< DD > (< B > EXPERIMENTAL< / B > ) Set the level of detail. The total number of particles is divided by the detail value to
get the actual number of particles to be drawn. This value must be greater than zero.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "createParticle" > < / A >
2002-07-19 03:54:11 +08:00
< A NAME = "DOC.2.15.48" > < / A >
2002-06-05 20:44:55 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "Particle.html" > Particle< / A > * createParticle(const <!1> < A HREF = "Particle.html" > Particle< / A > * ptemplate)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR > < DL > < DT > < B > This class has no child classes.< / B > < / DL >
< DL > < DT > < DD > < / DL > < P > < P > < I > < A HREF = "index.html" > Alphabetic index< / A > < / I > < I > < A HREF = "HIER.html" > HTML hierarchy of classes< / A > or < A HREF = "HIERjava.html" > Java< / A > < / I > < / P > < HR >
< BR >
This page was generated with the help of < A HREF = "http://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >