Public Member Functions |
| | DtOsgTrackHistoryRibbon (DtDe &de, float segmentSpacing, const osg::Vec4 &color, float maxLength) |
| | CTOR.
|
| virtual | ~DtOsgTrackHistoryRibbon () |
| | DTOR.
|
| virtual void | traverse (osg::NodeVisitor &nv) |
| | Override default traverse to remove update behavior.
|
| virtual void | setMaxSegments (long segments) |
| | Sets the max number of segments in the ribbon.
|
| | DtOsgRibbon (DtDe &de, float segmentSpacing=1.0, const osg::Vec4 &color=osg::Vec4d(0.5, 0.5, 0.5, 1.0), float maxLength=2000) |
| | CTOR.
|
| virtual | ~DtOsgRibbon () |
| | DTOR.
|
| virtual osg::Node * | node () |
| | Get the osg geometry node associated with the ribbon.
|
| const osg::Vec4 & | color () const |
| | Get the ribbon's color.
|
| virtual void | setDroppedPoints (const osg::Vec3d &pointA, const osg::Vec3d &pointB) |
| | Set the points to drop in local coordinates.
|
| virtual void | update (double dt, double simTime) |
| | Update the ribbon with the current position.
|
| long | maxSegments () const |
| | Gets the maximum number of segments allowed in the ribbon.
|
| virtual void | setSegmentSpacing (float spacing) |
| | Sets the maximum length of ribbon segments.
|
| float | segmentSpacing () const |
| | Gets the maximum length of the ribbon segments.
|
| virtual void | setStippled (bool stippled) |
| bool | isStippled () const |
| | Get the stipple setting for this ribbon.
|
| virtual void | setLightingEnabled (bool enable) |
| | set to true the lighting enabled flag to turn lighting on for the ribbon
|
| virtual bool | lightingEnabled () |
| | get the lighting enabled flag
|
Protected Member Functions |
| virtual void | addParticle (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) |
| | Add a particle to the ribbon.
|
| virtual float | currentSegmentLength () |
| | Find the length of the current ribbon segment.
|
| virtual void | extendCurrentSegment (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) |
| | Extend the current segment to left and right points.
|
| virtual osg::Drawable * | getDrawable () |
| | Create or get the ribbon drawable.
|
| virtual int | particleIndexAtOffset (int offset) |
| | Get index of particle at offset from current particle.
|
| virtual void | update () |
| | Calls DtOsgRibbon::update(double,double).
|
| virtual void | setColor (const osg::Vec4 &color) |
| | Change the geometry color.
|
| virtual void | updateBounds (const osg::Vec3 &point) |
| | Update the ribbon's bounding box with a new point.
|
| virtual osg::Geode * | createGeode () |
| | Create function for creating the geode for drawing this ribbon.
|
| virtual void | setDrawable () |
| | Removes any existing drawables and add the drawable returned from getDrawable.
|
OSG implementation of a track history ribbon.