![]() |
VR-Forces 4.10 Class Documentation
|
OSG implementation of a track history ribbon. More...

Classes | |
| class | TrackHistoryGeometry |
| Geometry for the track history. More... | |
Public Member Functions | |
| virtual | ~DtOsgTrackHistoryRibbon () |
| DTOR. More... | |
| virtual void | traverse (osg::NodeVisitor &nv) override |
| Override default traverse to remove update behavior. More... | |
| virtual void | setMaxSegments (long segments) override |
| Sets the max number of segments in the ribbon. More... | |
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) | |
| CTOR. More... | |
| virtual | ~DtOsgRibbon () |
| DTOR. More... | |
| virtual osg::Node * | node () |
| Get the osg geometry node associated with the ribbon. 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 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... | |
Protected Member Functions | |
| DtOsgTrackHistoryRibbon (DtDe &de, float segmentSpacing, const osg::Vec4 &color, float maxLength, float timeout) | |
| CTOR (create through DtOsgDecalRibbonCreator method) More... | |
| virtual void | addParticle (osg::Vec3d const &left, osg::Vec3d const &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 | update () override |
| Calls DtOsgRibbon::update(double,double). More... | |
| virtual void | setColor (const osg::Vec4 &color) |
| Change the geometry color. More... | |
| virtual void | updateBounds (const osg::Vec3 &point) |
| Update the ribbon's bounding box with a new point. More... | |
Protected Member Functions inherited from makVrv::DtOsgRibbon | |
| virtual osg::Geode * | createGeode () |
| Create function for creating the geode for drawing this ribbon. More... | |
| virtual void | setDrawable () |
| Removes any existing drawables and add the drawable returned from getDrawable. More... | |
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 | |
| unimplemented private default constructor More... | |
| DtOsgTrackHistoryRibbon (const DtOsgTrackHistoryRibbon &)=delete | |
| Copy Constructor not implemented – Copy not allowed. More... | |
| DtOsgTrackHistoryRibbon & | operator= (const DtOsgTrackHistoryRibbon &)=delete |
| Assignment Operator not implemented – Copy not allowed. More... | |
Friends | |
| class | DtOsgTrackHistoryRibbonCreator |
OSG implementation of a track history ribbon.
|
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 |