Inheritance diagram for osgParticle::ParticleProcessor:
Public Types | |
enum | ReferenceFrame { RELATIVE_RF, ABSOLUTE_RF } |
Public Member Functions | |
ParticleProcessor () | |
ParticleProcessor (const ParticleProcessor ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
virtual const char * | libraryName () const |
return the name of the node's library. | |
virtual const char * | className () const |
return the name of the node's class type. | |
virtual bool | isSameKindAs (const osg::Object *obj) const |
virtual void | accept (osg::NodeVisitor &nv) |
Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. | |
ReferenceFrame | getReferenceFrame () const |
Get the reference frame. | |
void | setReferenceFrame (ReferenceFrame rf) |
Set the reference frame. | |
bool | isEnabled () const |
Get whether this processor is enabled or not. | |
void | setEnabled (bool v) |
Set whether this processor is enabled or not. | |
ParticleSystem * | getParticleSystem () |
Get a pointer to the destination particle system. | |
const ParticleSystem * | getParticleSystem () const |
Get a const pointer to the destination particle system. | |
void | setParticleSystem (ParticleSystem *ps) |
Set the destination particle system. | |
void | setEndless (bool type) |
Set the endless flag of this processor. | |
bool | isEndless () const |
Check whether this processor is endless. | |
void | setLifeTime (double t) |
Set the lifetime of this processor. | |
double | getLifeTime () const |
Get the lifetime of this processor. | |
void | setStartTime (double t) |
Set the start time of this processor. | |
double | getStartTime () const |
Get the start time of this processor. | |
void | setCurrentTime (double t) |
Set the current time of this processor. | |
double | getCurrentTime () const |
Get the current time of this processor. | |
void | setResetTime (double t) |
Set the reset time of this processor. A value of 0 disables reset. | |
double | getResetTime () const |
Get the reset time of this processor. | |
bool | isAlive () const |
Check whether the processor is alive with respect to start time and life duration. | |
void | traverse (osg::NodeVisitor &nv) |
Traverse downwards : calls children's accept method with NodeVisitor. | |
const osg::Matrix & | getLocalToWorldMatrix () |
Get the current local-to-world transformation matrix (valid only during cull traversal). | |
const osg::Matrix & | getWorldToLocalMatrix () |
Get the current world-to-local transformation matrix (valid only during cull traversal). | |
const osg::Matrix & | getPreviousLocalToWorldMatrix () |
Get the previous local-to-world transformation matrix (valid only during cull traversal). | |
const osg::Matrix & | getPreviousWorldToLocalMatrix () |
Get the previous world-to-local transformation matrix (valid only during cull traversal). | |
osg::Vec3 | transformLocalToWorld (const osg::Vec3 &P) |
Transform a point from local to world coordinates (valid only during cull traversal). | |
osg::Vec3 | rotateLocalToWorld (const osg::Vec3 &P) |
Transform a vector from local to world coordinates, discarding translation (valid only during cull traversal). | |
osg::Vec3 | transformWorldToLocal (const osg::Vec3 &P) |
Transform a point from world to local coordinates (valid only during cull traversal). | |
osg::Vec3 | rotateWorldToLocal (const osg::Vec3 &P) |
Transform a vector from world to local coordinates, discarding translation (valid only during cull traversal). | |
virtual osg::BoundingSphere | computeBound () const |
Compute the bounding sphere around Node's geometry or children. | |
Protected Member Functions | |
virtual | ~ParticleProcessor () |
ParticleProcessor & | operator= (const ParticleProcessor &) |
virtual void | process (double dt)=0 |
Such classes are, for example, Emitter (particle generation) and Program (particle animation). This class holds some properties, like a reference frame and a reference to a ParticleSystem; descendant classes should process the particles taking into account the reference frame, computing the right transformations when needed.
|
|
|
|
|
|
|
|
|
Visitor Pattern : calls the apply method of a NodeVisitor with this node's type.
Reimplemented from osg::Node. Reimplemented in osgParticle::Emitter, and osgParticle::Program. |
|
return the name of the node's class type.
Reimplemented from osg::Node. Reimplemented in osgParticle::Emitter, and osgParticle::Program. |
|
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. |
|
Get the current time of this processor.
|
|
Get the lifetime of this processor.
|
|
Get the current local-to-world transformation matrix (valid only during cull traversal).
|
|
Get a const pointer to the destination particle system.
|
|
Get a pointer to the destination particle system.
|
|
Get the previous local-to-world transformation matrix (valid only during cull traversal).
|
|
Get the previous world-to-local transformation matrix (valid only during cull traversal).
|
|
Get the reference frame.
|
|
Get the reset time of this processor.
|
|
Get the start time of this processor.
|
|
Get the current world-to-local transformation matrix (valid only during cull traversal).
|
|
Check whether the processor is alive with respect to start time and life duration. Note that this method may return true even if the processor has been disabled by calling setEnabled(false). To test whether the processor is actually processing particles or not, you should evaluate (isEnabled() && isAlive()). |
|
Get whether this processor is enabled or not.
|
|
Check whether this processor is endless.
|
|
Reimplemented in osgParticle::Emitter, and osgParticle::Program. |
|
return the name of the node's library.
Reimplemented from osg::Node. Reimplemented in osgParticle::Emitter, and osgParticle::Program. |
|
|
|
Implemented in osgParticle::Emitter, and osgParticle::Program. |
|
Transform a vector from local to world coordinates, discarding translation (valid only during cull traversal).
|
|
Transform a vector from world to local coordinates, discarding translation (valid only during cull traversal).
|
|
Set the current time of this processor.
|
|
Set whether this processor is enabled or not.
|
|
Set the endless flag of this processor.
|
|
Set the lifetime of this processor.
|
|
Set the destination particle system.
|
|
Set the reference frame.
|
|
Set the reset time of this processor. A value of 0 disables reset.
|
|
Set the start time of this processor.
|
|
Transform a point from local to world coordinates (valid only during cull traversal).
|
|
Transform a point from world to local coordinates (valid only during cull traversal).
|
|
Traverse downwards : calls children's accept method with NodeVisitor.
Reimplemented from osg::Node. |