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

Classes | |
| class | TrackHistoryGeometry |
Public Member Functions | |
| virtual | ~DtOsgTrackHistoryRibbon () |
| virtual void | traverse (osg::NodeVisitor &nv) override |
| virtual void | setMaxSegments (long segments) override |
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 void | setSegmentTimeout (float duration) |
| virtual float | segmentSpacing () const |
| virtual void | setStippled (bool stippled) |
| virtual bool | isStippled () const |
| virtual void | setLightingEnabled (bool enable) |
| virtual bool | lightingEnabled () |
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 | 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 () |
Protected Attributes | |
| osg::ref_ptr< osg::Vec3Array > | myPoints |
| osg::ref_ptr < DtSharedDrawElementsUInt > | myRibbon |
| osg::ref_ptr < DtSharedDrawElementsUInt > | myBottomLine |
| osg::ref_ptr < DtSharedDrawElementsUInt > | myTopLine |
| osg::ref_ptr < TrackHistoryGeometry > | myGeometry |
| std::vector< double > | mySegmentCreationTimes |
| int | myParticleIndex |
| int | myParticleStartIndex |
| int | myActiveParticleCount |
Protected Attributes inherited from makVrv::DtOsgRibbon | |
| osg::ref_ptr < osg::MatrixTransform > | myPositionNode |
| osg::ref_ptr< osg::Geode > | myGeode |
| osg::Matrixd | myWorldTransformInv |
| osg::Matrixd | myLastLocalToWork |
| int | myLastUpdatedFrame |
| double | myLastUpdateTime |
| long | myMaxSegments |
| float | mySegmentSpacingSquared |
| float | mySegmentSpacing |
| float | mySegmentTimeout |
| osg::Vec3d | myLocalPointA |
| osg::Vec3d | myLocalPointB |
| osg::Vec3d | myLocalPosOffset |
| osg::Vec4 | myColor |
| bool | myFirstUpdate |
| bool | myStippled |
| DtDe & | myDe |
| bool | myLightingEnabled |
| bool | myShaderSet |
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.
|
protectedvirtual |
Add a particle to the ribbon.
Implements makVrv::DtOsgRibbon.
|
protectedvirtual |
Find the length of the current ribbon segment.
Implements 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.
Reimplemented in makVrf::DtVrfOsgTrackHistoryRibbon.
|
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 |