12 #ifndef DtOsgParticleRibbon_H_
13 #define DtOsgParticleRibbon_H_
22 class DrawElementsUInt;
38 float expansionRate,
float maxLength = 2000);
41 virtual void update(
double dt,
double simTime);
45 virtual void setAlphaVelocity(
float alphaVelocity);
49 virtual void setTextureRepeat(
float textureRepeat);
56 virtual void addParticle(osg::Vec3d
const& left, osg::Vec3d
const& right,
60 virtual float currentSegmentLength();
63 virtual void extendCurrentSegment(osg::Vec3d
const& left,
64 osg::Vec3d
const& right,
double simTime);
67 virtual osg::Drawable* getDrawable();
70 virtual int particleIndexAtOffset(
int offset);
73 virtual void updateParticles(
double dt);
76 virtual void updateGeometry(
double dt);
79 virtual osg::Vec2 getTextureCoordinateFor(
int pointIndex,
float vScale);
82 virtual osg::Geode* createGeode();