![]() |
VR-Forces 4.6 Class Documentation
|
This class provides a facade around the osgParticle class hierarchy. More...

Classes | |
| struct | DefaultParticleParameters |
Public Member Functions | |
| DtParticleEffect () | |
| CTOR. | |
osg::Group contract functions | |
| typedef boost::unordered_map < osgParticle::ParticleSystem *, DefaultParticleParameters > | ParticleParametersMap |
| osg::ref_ptr< osg::Group > | myEmitterGroup |
| osg::ref_ptr< osg::Group > | myProgramGroup |
| osg::ref_ptr< osg::Geode > | myParticleSystemGeode |
| osg::ref_ptr< osg::Group > | myProxyGroup |
| osg::ref_ptr< osg::Group > | myTransformGroup |
| std::vector< osg::ref_ptr < osg::Sequence > > | mySequences |
| bool | mySequencesLooping |
| bool | mySequencesReverse |
| osg::ref_ptr < osg::MatrixTransform > | myParticleSystemTransform |
| bool | myTransformsSet |
| bool | myUseLocalParticleSystem |
| osg::Vec3 | myPosition |
| float | myScale |
| float | myIntensity |
| double | myStartTime |
| double | myEmitterDuration |
| int | myMaxParticlesToEmit |
| osg::Vec3 | myWind |
| osg::Vec3 | myUp |
| ParticleParametersMap | myDefaultParticleParameters |
| bool | myIgnoreModelScaling |
| virtual const char * | libraryName () const |
| virtual const char * | className () const |
| Get the name of the object's class. | |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| Test for type sameness. | |
| virtual void | accept (osg::NodeVisitor &v) |
| virtual osg::Group * | emitterGroup () |
| Get an osg Group containing the emitters for this effect. | |
| virtual osg::Group * | programGroup () |
| Get an osg Group containing the programs for this effect. | |
| virtual osg::Group * | proxyGroup () |
| Get an osg Group containing the effect's proxy nodes. | |
| virtual osg::Group * | transformGroup () |
| Get an osg Group containing transforms placed at the top of the effect. | |
| virtual void | setUpEmittersAndPrograms ()=0 |
| Set the emitter group and program group appropriately. | |
| virtual void | buildEffect () |
| Build the effect up from its current state. | |
| virtual bool | useLocalParticleSystem () |
| Get a previously set useLocalParticleSystem flag. | |
| virtual void | setUseLocalParticleSystem (bool b) |
| Included for possible future use. | |
| virtual float | scale () |
| Get the current particle system scale factor. | |
| virtual void | setScale (float scale) |
| Scale the particle system by the specified value. | |
| virtual float | intensity () |
| Get a previously set intensity. | |
| virtual void | setIntensity (float intensity) |
| Included for possible future use. | |
| virtual double | startTime () |
| Get the start time of the particle effect. | |
| virtual void | setStartTime (double startTime) |
| Set the start time of the particle effect. | |
| virtual double | emitterDuration () |
| Get the emitter duration previously set. | |
| virtual void | setEmitterDuration (double emitterDuration) |
| Set the emitter duration. | |
| virtual double | particleLifetime () |
| Find the maximum lifetime of any future particle in any of the particle systems that make up this effect. | |
| void | setMaxParticlesToEmit (int max) |
| Set the maximum number of particles to emit. | |
| int | maxParticlesToEmit () |
| Get the maximum number of particles to emit. | |
| virtual osg::Vec3 | wind () const |
| Get a previously set wind value. | |
| virtual void | setWind (const osg::Vec3 &wind) |
| Set the wind vector. | |
| virtual osg::Vec3 | up () const |
| Get a previously set up value. | |
| virtual void | setUp (const osg::Vec3 &up) |
| set the up value | |
| virtual void | stop () |
| Stop the particle effect. | |
| virtual void | start () |
| start the particle effect | |
| virtual void | pause () |
| Pause the particle effect. | |
| virtual void | resume () |
| resume the particle effect | |
| virtual void | setLoopMode (bool loopOn) |
| Set whether or not looping is on. | |
| virtual void | setReverseAnimation (bool reverse) |
| Animations to reverse. | |
| virtual void | traverse (osg::NodeVisitor &nv) |
| Interrupt CullVisitors to update the transforms. | |
| virtual osg::Node * | particleSystemNode () |
| Get the node containing the particle system geometry. | |
| virtual osg::Geode * | particleSystemGeode () |
| Get an osg Geode containing drawables for this effect's particle systems. | |
| virtual void | setMatrix (const osg::Matrix &mat) |
| Set the matrix transform that this particle effect is currently beneath. | |
| void | getSizeRange (osgParticle::ParticleSystem *particleSystem, float &min, float &max) const |
| The the minimum and maximum particle sizes cached for a particular particle system. | |
| virtual void | setIgnoreModelScaling (bool ignoreModelScaling) |
| Sets Whether ignore scaling the particle by distance when you enable the "XR" mode. | |
| virtual bool | ignoreModelScaling () |
| Gets Whether ignore scaling the particle by distance when you enable the "XR" mode. | |
| virtual void | addParent (osg::Group *parent) |
| Specify a group that has this effect as a child node. | |
| virtual void | setupParticleScalingDefaults (osgParticle::ParticleSystem *ps) |
| Grab the mininum and maximum particle sizes from the particle system. | |
| virtual void | setupParticleLightingDefaults (osgParticle::ParticleSystem *ps) |
| Set how lighting should affect this particle system. | |
| virtual void | scaleDefaultParticleSizes (float scale) |
| Scale the size of new particles. | |
| virtual | ~DtParticleEffect () |
| DTOR. | |
| DtParticleEffect (const DtParticleEffect ©, const osg::CopyOp ©op) | |
| Copy CTOR - not implemented. | |
This class provides a facade around the osgParticle class hierarchy.
It is comparable with osgParticle::ParticleEffect, but with support for multiple particle systems and designed for inheritance.
|
protected |
| makVrv::DtParticleEffect::DtParticleEffect | ( | ) |
CTOR.
|
protectedvirtual |
DTOR.
|
protected |
Copy CTOR - not implemented.
|
virtual |
|
virtual |
Get the name of the object's class.
|
virtual |
Test for type sameness.
|
virtual |
|
virtual |
Get an osg Group containing the emitters for this effect.
|
virtual |
Get an osg Group containing the programs for this effect.
|
virtual |
Get an osg Group containing the effect's proxy nodes.
|
virtual |
Get an osg Group containing transforms placed at the top of the effect.
|
pure virtual |
Set the emitter group and program group appropriately.
Implemented in makVrv::DtCopyableParticleEffect.
|
virtual |
Build the effect up from its current state.
|
virtual |
Get a previously set useLocalParticleSystem flag.
|
virtual |
Included for possible future use.
This method currently has no effect.
Reimplemented in makVrv::DtCopyableParticleEffect.
|
virtual |
Get the current particle system scale factor.
|
virtual |
Scale the particle system by the specified value.
Both the geometry of the system as well as the size of individual particles are scaled.
|
virtual |
Get a previously set intensity.
|
virtual |
Included for possible future use.
This method currently has no effect.
|
virtual |
Get the start time of the particle effect.
|
virtual |
Set the start time of the particle effect.
|
virtual |
Get the emitter duration previously set.
|
virtual |
Set the emitter duration.
This sets the lifetime of future particles emitted, for all emitters in the effect
|
virtual |
Find the maximum lifetime of any future particle in any of the particle systems that make up this effect.
| void makVrv::DtParticleEffect::setMaxParticlesToEmit | ( | int | max | ) |
Set the maximum number of particles to emit.
| int makVrv::DtParticleEffect::maxParticlesToEmit | ( | ) |
Get the maximum number of particles to emit.
|
virtual |
Get a previously set wind value.
|
virtual |
Set the wind vector.
|
virtual |
Get a previously set up value.
|
virtual |
set the up value
|
virtual |
Stop the particle effect.
|
virtual |
start the particle effect
|
virtual |
Pause the particle effect.
|
virtual |
resume the particle effect
|
virtual |
Set whether or not looping is on.
|
virtual |
Animations to reverse.
|
virtual |
Interrupt CullVisitors to update the transforms.
|
virtual |
Get the node containing the particle system geometry.
|
virtual |
Get an osg Geode containing drawables for this effect's particle systems.
|
virtual |
Set the matrix transform that this particle effect is currently beneath.
Note that scaling also modifies this matrix, so use of this method may interfere.
| void makVrv::DtParticleEffect::getSizeRange | ( | osgParticle::ParticleSystem * | particleSystem, |
| float & | min, | ||
| float & | max | ||
| ) | const |
The the minimum and maximum particle sizes cached for a particular particle system.
|
virtual |
Sets Whether ignore scaling the particle by distance when you enable the "XR" mode.
This can be configured from "ignoreModelScaling" in the model definition. Default is true.
|
virtual |
Gets Whether ignore scaling the particle by distance when you enable the "XR" mode.
This can be configured from "ignoreModelScaling" in the model definition. Default is true.
|
protectedvirtual |
Specify a group that has this effect as a child node.
|
protectedvirtual |
Grab the mininum and maximum particle sizes from the particle system.
These will be scaled when the particle effect is scaled
|
protectedvirtual |
Set how lighting should affect this particle system.
|
protectedvirtual |
Scale the size of new particles.
In addition to scaling the entire effect (which scales the particle positions) the particle sizes also need to be scaled.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |