![]() |
VR-Forces Developer's Guide
|
Ribbon implementation that composes multiple child ribbons.

Public Types | |
| typedef std::vector < DtOsgRibbon * > | RibbonSet |
| typedef std::vector < osg::ref_ptr< DtOsgRibbon > > | RibbonRefPtrSet |
Public Member Functions | |
| virtual osg::Node * | node () override |
| virtual void | setDroppedPointsPositionOffset (const osg::Vec3d &posOffset) override |
| virtual void | update (double dt, double simTime) override |
| virtual void | addRibbon (DtOsgRibbon *ribbon) |
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 void | traverse (osg::NodeVisitor &nv) |
| virtual void | setColor (const osg::Vec4 &color) |
| virtual const osg::Vec4 & | color () const |
| virtual void | setDroppedPoints (const osg::Vec3d &pointA, const osg::Vec3d &pointB) |
| virtual void | update () |
| virtual void | setMaxSegments (long segments) |
| 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 () |
| virtual void | setHeightLinesEnabled (bool enabled) |
| virtual void | setHeightLinesColor (float r, float g, float b, float a) |
| virtual void | setHeightLinesSpacing (float spacing) |
| virtual void | setHeightLinesModelSetId (DtModelSetId modelSetId) |
Protected Member Functions | |
| DtOsgMultiRibbon (DtDe &de) | |
| virtual | ~DtOsgMultiRibbon () |
| virtual void | addParticle (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) override |
| virtual float | currentSegmentLength () override |
| virtual void | cleanupOldSegments (double simTime) |
| virtual void | extendCurrentSegment (osg::Vec3d const &left, osg::Vec3d const &right, double simTime) override |
| virtual osg::Drawable * | getDrawable () override |
Protected Member Functions inherited from makVrv::DtOsgRibbon | |
| virtual void | setCurrentSegmentLength (float len) |
| virtual osg::Geode * | createGeode () |
| virtual void | setDrawable () |
Protected Attributes | |
| RibbonRefPtrSet | myRibbons |
| osg::ref_ptr< osg::Group > | myNode |
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 |
| double | myRibbonLengthSquared |
| long | myMaxSegments |
| int | myActiveSegmentCount |
| 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 |
| bool | myHeightLinesEnabled |
| float | myHeightLinesColor [4] |
| float | myHeightLinesSpacing |
| DtModelSetId | myHeightLinesModelSetId |
Private Member Functions | |
| DtOsgMultiRibbon ()=delete | |
| DtOsgMultiRibbon (const DtOsgMultiRibbon &)=delete | |
| DtOsgMultiRibbon & | operator= (const DtOsgMultiRibbon &)=delete |
Friends | |
| class | DtOsgMultiRibbonCreator |
| typedef std::vector<DtOsgRibbon*> makVrv::DtOsgMultiRibbon::RibbonSet |
| typedef std::vector<osg::ref_ptr<DtOsgRibbon> > makVrv::DtOsgMultiRibbon::RibbonRefPtrSet |
|
protected |
CTOR (Create using DtOsgMultiRibbonCreator)
|
protectedvirtual |
DTOR.
|
privatedelete |
unimplemented private default constructor
|
privatedelete |
Copy Constructor not implemented – Copy not allowed.
|
privatedelete |
Assignment Operator not implemented – Copy not allowed.
|
overridevirtual |
Get the geometry node for the multi-ribbon.
Reimplemented from makVrv::DtOsgRibbon.
|
overridevirtual |
Apply an offset to all ribbons in the multi-ribbon.
Reimplemented from makVrv::DtOsgRibbon.
Update the ribbon.
Reimplemented from makVrv::DtOsgRibbon.
|
virtual |
Add a ribbon to the multi-ribbon.
|
overrideprotectedvirtual |
Add a particle to the ribbon.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Find the length of the current ribbon segment.
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.
|
overrideprotectedvirtual |
Extend the current segment to left and right points.
Implements makVrv::DtOsgRibbon.
|
overrideprotectedvirtual |
Get the drawable responsible for drawing the ribbon.
Implements makVrv::DtOsgRibbon.
|
friend |
|
protected |
Set of sub-ribbons.
|
protected |