![]() |
VR-Forces 5.0.2 Developer's Guide
|
A ribbon with some particle system features, such as expansion rate texture, and fading out.

Classes | |
| struct | Particle |
Public Member Functions | |
| virtual void | update (double dt, double simTime) override |
| virtual void | setAlphaVelocity (float alphaVelocity) |
| virtual void | setTextureRepeat (float textureRepeat) |
| virtual void | setNewParticlesVisible (bool enable) |
Public Member Functions inherited from makVrv::DtOsgRibbon | |
| DtOsgRibbon (DtDe &de, float segmentSpacing=1.0, const osg::Vec4 &color=osg::Vec4d(0.5, 0.5, 0.5, 1.0), float maxLength=2000, float timeout=3600.0) | |
| virtual | ~DtOsgRibbon () |
| virtual void | traverse (osg::NodeVisitor &nv) |
| virtual osg::Node * | node () |
| virtual void | setColor (const osg::Vec4 &color) |
| virtual const osg::Vec4 & | color () const |
| virtual void | setDroppedPoints (const osg::Vec3d &pointA, const osg::Vec3d &pointB) |
| virtual void | setDroppedPointsPositionOffset (const osg::Vec3d &posOffset) |
| virtual void | update () |
| virtual void | setMaxSegments (long segments) |
| virtual long | maxSegments () const |
| virtual void | setSegmentSpacing (float spacing) |
| virtual void | setSegmentTimeout (float duration) |
| virtual float | segmentSpacing () const |
| virtual void | setStippled (bool stippled) |
| virtual bool | isStippled () const |
| virtual void | setLightingEnabled (bool enable) |
| virtual bool | lightingEnabled () |
Protected Types | |
| typedef std::list< Particle > | Particles |
Protected Member Functions | |
| DtOsgParticleRibbon (DtDe &de, float segmentSpacing, const osg::Vec4 &color, osg::Texture *texture, float expansionRate, float maxLength) | |
| virtual | ~DtOsgParticleRibbon () |
| virtual void | addParticle (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) override |
| virtual float | currentSegmentLength () override |
| virtual void | cleanupOldSegments (double simTime) override |
| virtual void | extendCurrentSegment (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) override |
| virtual osg::Drawable * | getDrawable () override |
| virtual osg::Geode * | createGeode () override |
| virtual int | particleIndexAtOffset (int offset) |
| virtual void | updateParticles (double dt) |
| virtual void | updateGeometryFromParticles (double dt) |
| virtual osg::Vec2 | getTextureCoordinateFor (int pointIndex, float vScale) const |
Protected Member Functions inherited from makVrv::DtOsgRibbon | |
| virtual void | setDrawable () |
Private Member Functions | |
| DtOsgParticleRibbon ()=delete | |
| DtOsgParticleRibbon (const DtOsgParticleRibbon &)=delete | |
| DtOsgParticleRibbon & | operator= (const DtOsgParticleRibbon &)=delete |
Friends | |
| class | DtOsgParticleRibbonCreator |
|
protected |
|
protected |
CTOR (create through DtOsgDecalRibbonCreator method)
|
protectedvirtual |
DTOR.
|
privatedelete |
unimplemented private default constructor
|
privatedelete |
Copy Constructor not implemented – Copy not allowed.
|
privatedelete |
Assignment Operator not implemented – Copy not allowed.
Override the behavior of the osg ribbon.
Reimplemented from makVrv::DtOsgRibbon.
|
virtual |
Set the rate in units/second at which the alpha values of particles change.
|
virtual |
Set the number of copies of the texture to repeat into each quad. Textures are tiled in their v coordinate only.
|
virtual |
If true then particles are created normally. If false than all new particles have an alpha of 0 so they are still created but not visible and the transition from off to on is not a sudden one.
|
overrideprotectedvirtual |
Add a particle to the ribbon.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Find the length of the current ribbon segment.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Check to see if any segments have reached their timeout if so remove them from the list to be rendered. currently only implemented for track histories.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Extend the current segment to left and right points.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Create or get the ribbon drawable.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Create the geode to re-render the ribbon.
Reimplemented from makVrv::DtOsgRibbon.
Get index of particle at offset from current particle.
|
protectedvirtual |
Update the particles with given time change.
|
protectedvirtual |
Update the underlying geometry from the particles' list with the given time change.
|
protectedvirtual |
Get the texture coordinate for a vertex.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
speed at which alpha decreases
|
protected |
speed at which particles move apart
|
protected |