![]() |
VR-Forces 4.5 Class Documentation
|
Ribbon implementation that composes multiple child ribbons. More...

Public Types | |
| typedef std::vector < DtOsgRibbon * > | RibbonSet |
Public Member Functions | |
| DtOsgMultiRibbon (DtDe &de) | |
| CTOR. | |
| DtOsgMultiRibbon (DtDe &de, RibbonSet &ribbons) | |
| CTOR. | |
| osg::Node * | node () |
| Get the geometry node for the multi-ribbon. | |
| void | addRibbon (DtOsgRibbon *ribbon) |
| Add a ribbon to the multi-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) | |
| CTOR. | |
| virtual | ~DtOsgRibbon () |
| DTOR. | |
| virtual void | traverse (osg::NodeVisitor &nv) |
| Interrupt CullVisitors by updating the ribbon. | |
| virtual void | setColor (const osg::Vec4 &color) |
| Set the ribbon's color. | |
| 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 () |
| Optional time independent update method. | |
| virtual void | setMaxSegments (long segments) |
| Sets the maximum number of segments allowed in the ribbon. | |
| 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 Types | |
| typedef std::vector < osg::ref_ptr< DtOsgRibbon > > | RibbonRefPtrSet |
Protected Member Functions | |
| ~DtOsgMultiRibbon () | |
| DTOR. | |
| virtual void | update (double dt, double simTime) |
| Update the ribbon. | |
| 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 () |
| Get the drawable responsible for drawing the ribbon. | |
Protected Member Functions inherited from makVrv::DtOsgRibbon | |
| 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. | |
Protected Attributes | |
| RibbonRefPtrSet | myRibbons |
| Set of sub-ribbons. | |
| osg::ref_ptr< osg::Group > | myNode |
Ribbon implementation that composes multiple child ribbons.
| typedef std::vector<DtOsgRibbon*> makVrv::DtOsgMultiRibbon::RibbonSet |
|
protected |
| makVrv::DtOsgMultiRibbon::DtOsgMultiRibbon | ( | DtDe & | de | ) |
CTOR.
|
protected |
DTOR.
|
virtual |
Get the geometry node for the multi-ribbon.
Reimplemented from makVrv::DtOsgRibbon.
| void makVrv::DtOsgMultiRibbon::addRibbon | ( | DtOsgRibbon * | ribbon | ) |
Add a ribbon to the multi-ribbon.
Update the ribbon.
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 |
Get the drawable responsible for drawing the ribbon.
Implements makVrv::DtOsgRibbon.
|
protected |
Set of sub-ribbons.
|
protected |