![]() |
VR-Forces Developer's Guide
|
OSG implementation of a track history ribbon.

Classes | |
| struct | SegementInfo |
| class | TrackHistoryGeometry |
Public Member Functions | |
| virtual | ~DtOsgTrackHistoryRibbon () |
| virtual void | traverse (osg::NodeVisitor &nv) override |
| virtual void | setMaxSegments (long segments) override |
| virtual void | setSegmentTimeout (float duration) override |
| virtual void | setHeightLinesEnabled (bool enabled) override |
| virtual void | setHeightLinesModelSetId (DtModelSetId modelSetId) |
Public Member Functions inherited from makVrv::DtOsgRibbon | |
| 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) | |
| virtual | ~DtOsgRibbon () |
| virtual osg::Node * | node () |
| virtual const osg::Vec4 & | color () const |
| virtual void | setDroppedPoints (const osg::Vec3d &pointA, const osg::Vec3d &pointB) |
| virtual void | setDroppedPointsPositionOffset (const osg::Vec3d &posOffset) |
| virtual void | update (double dt, double simTime) |
| virtual long | maxSegments () const |
| virtual void | setSegmentSpacing (float spacing) |
| virtual float | segmentSpacing () const |
| virtual void | setStippled (bool stippled) |
| virtual bool | isStippled () const |
| virtual void | setLightingEnabled (bool enable) |
| virtual bool | lightingEnabled () |
| virtual void | setHeightLinesColor (float r, float g, float b, float a) |
| virtual void | setHeightLinesSpacing (float spacing) |
Protected Member Functions | |
| DtOsgTrackHistoryRibbon (DtDe &de, float segmentSpacing, const osg::Vec4 &color, float maxLength, float timeout) | |
| virtual void | addParticle (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) |
| virtual float | currentSegmentLength () |
| virtual void | setCurrentSegmentLength (float len) |
| virtual void | extendCurrentSegment (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) |
| virtual void | cleanupOldSegments (double simTime) |
| virtual osg::Drawable * | getDrawable () |
| virtual int | particleIndexAtOffset (int offset) |
| virtual void | update () override |
| virtual void | setColor (const osg::Vec4 &color) |
| virtual void | updateBounds (const osg::Vec3 &point) |
Protected Member Functions inherited from makVrv::DtOsgRibbon | |
| virtual osg::Geode * | createGeode () |
| virtual void | setDrawable () |
Private Member Functions | |
| DtOsgTrackHistoryRibbon ()=delete | |
| DtOsgTrackHistoryRibbon (const DtOsgTrackHistoryRibbon &)=delete | |
| DtOsgTrackHistoryRibbon & | operator= (const DtOsgTrackHistoryRibbon &)=delete |
Friends | |
| class | DtOsgTrackHistoryRibbonCreator |
|
protected |
CTOR (create through DtOsgDecalRibbonCreator method)
| de | the DtDe the ribbon belongs to. |
| segmentSpacing | the spacing between segments (in meters). |
| color | the color of the ribbon. |
| maxLength | the max length of the ribbon (in segments). |
|
virtual |
DTOR.
|
privatedelete |
unimplemented private default constructor
|
privatedelete |
Copy Constructor not implemented – Copy not allowed.
|
privatedelete |
Assignment Operator not implemented – Copy not allowed.
|
overridevirtual |
Override default traverse to remove update behavior.
Reimplemented from makVrv::DtOsgRibbon.
|
overridevirtual |
Sets the max number of segments in the ribbon. Overridden from DtOsgRibbon to destroy the ribbon geometry and force re-creation when the max segment count changes.
Reimplemented from makVrv::DtOsgRibbon.
|
overridevirtual |
Sets the timeout of a ribbon segment.
Reimplemented from makVrv::DtOsgRibbon.
|
overridevirtual |
Enables or disables height lines along the ribbon path.
Reimplemented from makVrv::DtOsgRibbon.
|
virtual |
Sets the model set that the height lines should be used with.
Reimplemented from makVrv::DtOsgRibbon.
|
protectedvirtual |
Add a particle to the ribbon.
Implements makVrv::DtOsgRibbon.
|
protectedvirtual |
Find the squared length of the current ribbon segment.
Implements makVrv::DtOsgRibbon.
|
protectedvirtual |
Set the length of the current ribbon segment.
Reimplemented from makVrv::DtOsgRibbon.
|
protectedvirtual |
Extend the current segment to left and right points.
Implements makVrv::DtOsgRibbon.
|
protectedvirtual |
Check to see if any segments have reached their timeout if so remove them from the list to be rendered. currently only implemented for track histories.
Implements makVrv::DtOsgRibbon.
|
protectedvirtual |
Create or get the ribbon drawable. Overridden from DtOsgRibbon to create the ribbon geometry.
Implements makVrv::DtOsgRibbon.
Get index of particle at offset from current particle.
|
overrideprotectedvirtual |
Calls DtOsgRibbon::update(double,double). Passes zero for dt and de.simulationTime as parameters.
Reimplemented from makVrv::DtOsgRibbon.
|
protectedvirtual |
Change the geometry color.
Reimplemented from makVrv::DtOsgRibbon.
|
protectedvirtual |
Update the ribbon's bounding box with a new point.
This is usually cheap, but at random intervals will do a full re-computation of the bounds, which costs O(# points).
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |