19 class DrawElementsUInt;
35 float expansionRate,
float maxLength);
53 virtual void update(
double dt,
double simTime);
57 virtual void setAlphaVelocity(
float alphaVelocity);
61 virtual void setTextureRepeat(
float textureRepeat);
67 virtual void setNewParticlesVisible(
bool enable);
71 virtual void addParticle(osg::Vec3d
const& left, osg::Vec3d
const& right,
75 virtual float currentSegmentLength();
78 virtual void extendCurrentSegment(osg::Vec3d
const& left,
79 osg::Vec3d
const& right,
double simTime);
82 virtual osg::Drawable* getDrawable();
85 virtual int particleIndexAtOffset(
int offset);
88 virtual void updateParticles(
double dt);
91 virtual void updateGeometry(
double dt);
94 virtual osg::Vec2 getTextureCoordinateFor(
int pointIndex,
float vScale);
97 virtual osg::Geode* createGeode();
102 virtual void cleanupOldSegments(
double simTime);
161 float expansionRate,
float maxLength = 2000);
float angle
left-to-right axis of the particle's quad
Definition: DtOsgParticleRibbon.h:122
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
bool myNewParticleVisible
Definition: DtOsgParticleRibbon.h:133
Virtual base class.
Definition: DtVirtualBaseClass.h:22
std::list< Particle > Particles
Definition: DtOsgParticleRibbon.h:126
Definition: DtOsgParticleRibbon.h:139
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Vec3Array > myPoints
Definition: DtOsgParticleRibbon.h:105
Particles myParticles
Definition: DtOsgParticleRibbon.h:127
osg::Vec3d axis
Definition: DtOsgParticleRibbon.h:121
float myRotationalVelocity
speed at which particles move apart
Definition: DtOsgParticleRibbon.h:131
double myLastAddTime
Definition: DtOsgParticleRibbon.h:113
float myTextureRepeat
Definition: DtOsgParticleRibbon.h:112
osg::Vec3d center
Definition: DtOsgParticleRibbon.h:118
Contains makVrv::DtVirtualBaseClass class.
osg::ref_ptr< osg::Vec4Array > myColors
Definition: DtOsgParticleRibbon.h:106
Definition for a particle in the ribbon.
Definition: DtOsgParticleRibbon.h:116
osg::Vec3d right
Definition: DtOsgParticleRibbon.h:120
int myParticleIndex
Definition: DtOsgParticleRibbon.h:111
float alpha
How much rotation is applied to the particle.
Definition: DtOsgParticleRibbon.h:123
Base class for OSG ribbon implementations.
Definition: DtOsgRibbon.h:25
A ribbon with some particle system features, such as expansion rate texture, and fading out...
Definition: DtOsgParticleRibbon.h:29
float myAlphaVelocity
Definition: DtOsgParticleRibbon.h:129
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::ref_ptr< osg::Vec2Array > myTextureCoordinates
Definition: DtOsgParticleRibbon.h:107
voidpf uLong offset
Definition: ioapi.h:42
osg::ref_ptr< osg::Texture > myTexture
Definition: DtOsgParticleRibbon.h:108
bool myWrappingVertices
Definition: DtOsgParticleRibbon.h:110
osg::Vec3d left
center back of the particle's quad
Definition: DtOsgParticleRibbon.h:119
float myExpansionRate
speed at which alpha decreases
Definition: DtOsgParticleRibbon.h:130