OpenSceneGraph implementation of a textured ribbon Used to draw effects like tread tracks that follow a scene object Procedurally generated as its position in the scene changes.
More...
|
| virtual | ~DtOsgDecalRibbon () |
| | DTOR. More...
|
| |
| virtual void | setTextureRepeat (float textureRepeat) |
| | Set the number of copies of the texture to repeat into each quad. More...
|
| |
| virtual void | addParticle (const osg::Vec3d &left, const osg::Vec3d &right, double simTime) |
| | Add a particle to the ribbon. More...
|
| |
| virtual float | currentSegmentLength () |
| | Find the length of the current ribbon segment. More...
|
| |
| virtual void | extendCurrentSegment (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) |
| | Extend the current segment to left and right points. More...
|
| |
| virtual void | cleanupOldSegments (double simTime) |
| | Check to see if any segments have reached their timeout if so remove them from the list to be rendered. More...
|
| |
| virtual osg::Drawable * | getDrawable () |
| | Create or get the ribbon drawable. More...
|
| |
| virtual int | particleIndexAtOffset (int offset) |
| | Get index of particle at offset from current particle. More...
|
| |
| virtual void | rotateDrawableIndices (int amount) |
| | Rotate the drawable primitives' indices by amount. More...
|
| |
| virtual osg::Vec2 | getTextureCoordinateFor (int pointIndex, float vScale) |
| | Get the texture coordinate for a vertex. More...
|
| |
| virtual osg::Geode * | createGeode () |
| | Create the geode. More...
|
| |
| | 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) |
| | CTOR. More...
|
| |
| virtual | ~DtOsgRibbon () |
| | DTOR. More...
|
| |
| virtual void | traverse (osg::NodeVisitor &nv) |
| | Interrupt CullVisitors by updating the ribbon. More...
|
| |
| virtual osg::Node * | node () |
| | Get the osg geometry node associated with the ribbon. More...
|
| |
| virtual void | setColor (const osg::Vec4 &color) |
| | Set the ribbon's color. More...
|
| |
| virtual const osg::Vec4 & | color () const |
| | Get the ribbon's color. More...
|
| |
| virtual void | setDroppedPoints (const osg::Vec3d &pointA, const osg::Vec3d &pointB) |
| | Set the points to drop in local coordinates. More...
|
| |
| virtual void | setDroppedPointsPositionOffset (const osg::Vec3d &posOffset) |
| | Provide an offset to the dropped points so the entity can shift around the points specified in the model definition ex. More...
|
| |
| virtual void | update (double dt, double simTime) |
| | Update the ribbon with the current position. More...
|
| |
| virtual void | update () |
| | Optional time independent update method. More...
|
| |
| virtual void | setMaxSegments (long segments) |
| | Sets the maximum number of segments allowed in the ribbon. More...
|
| |
| virtual long | maxSegments () const |
| | Gets the maximum number of segments allowed in the ribbon. More...
|
| |
| virtual void | setSegmentSpacing (float spacing) |
| | Sets the maximum length of ribbon segments. More...
|
| |
| virtual void | setSegmentTimeout (float duration) |
| | Sets the timeout of a ribbon segment. More...
|
| |
| virtual float | segmentSpacing () const |
| | Gets the maximum length of the ribbon segments. More...
|
| |
| virtual void | setStippled (bool stippled) |
| |
| virtual bool | isStippled () const |
| | Get the stipple setting for this ribbon. More...
|
| |
| virtual void | setLightingEnabled (bool enable) |
| | set to true the lighting enabled flag to turn lighting on for the ribbon More...
|
| |
| virtual bool | lightingEnabled () |
| | get the lighting enabled flag More...
|
| |
OpenSceneGraph implementation of a textured ribbon Used to draw effects like tread tracks that follow a scene object Procedurally generated as its position in the scene changes.