12 #ifndef DtOsgParticleRibbon_H_
13 #define DtOsgParticleRibbon_H_
21 class DrawElementsUInt;
37 float expansionRate,
float maxLength = 2000);
40 virtual void update(
double dt,
double simTime);
44 virtual void setAlphaVelocity(
float alphaVelocity);
48 virtual void setTextureRepeat(
float textureRepeat);
55 virtual void addParticle(osg::Vec3d
const& left, osg::Vec3d
const& right,
59 virtual float currentSegmentLength();
62 virtual void extendCurrentSegment(osg::Vec3d
const& left,
63 osg::Vec3d
const& right,
double simTime);
66 virtual osg::Drawable* getDrawable();
69 virtual int particleIndexAtOffset(
int offset);
72 virtual void updateParticles(
double dt);
75 virtual void updateGeometry(
double dt);
78 virtual osg::Vec2 getTextureCoordinateFor(
int pointIndex,
float vScale);
81 virtual osg::Geode* createGeode();