VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtOsgMultiRibbon Class Reference

Ribbon implementation that composes multiple child ribbons. More...

Inheritance diagram for makVrv::DtOsgMultiRibbon:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector
< DtOsgRibbon * > 
RibbonSet

Public Member Functions

 DtOsgMultiRibbon ()
 CTOR.
 DtOsgMultiRibbon (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.

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 Attributes

RibbonRefPtrSet myRibbons
 Set of sub-ribbons.
osg::ref_ptr< osg::Group > myNode

Detailed Description

Ribbon implementation that composes multiple child ribbons.


Member Typedef Documentation

typedef std::vector<osg::ref_ptr<DtOsgRibbon> > makVrv::DtOsgMultiRibbon::RibbonRefPtrSet [protected]

Constructor & Destructor Documentation

CTOR.

CTOR.

DTOR.


Member Function Documentation

osg::Node* makVrv::DtOsgMultiRibbon::node ( ) [virtual]

Get the geometry node for the multi-ribbon.

Reimplemented from makVrv::DtOsgRibbon.

Add a ribbon to the multi-ribbon.

virtual void makVrv::DtOsgMultiRibbon::update ( double  dt,
double  simTime 
) [protected, virtual]

Update the ribbon.

Reimplemented from makVrv::DtOsgRibbon.

virtual void makVrv::DtOsgMultiRibbon::addParticle ( osg::Vec3d const &  left,
osg::Vec3d const &  right,
double  simTime 
) [protected, virtual]

Add a particle to the ribbon.

Implements makVrv::DtOsgRibbon.

virtual float makVrv::DtOsgMultiRibbon::currentSegmentLength ( ) [protected, virtual]

Find the length of the current ribbon segment.

Implements makVrv::DtOsgRibbon.

virtual void makVrv::DtOsgMultiRibbon::extendCurrentSegment ( osg::Vec3d const &  left,
osg::Vec3d const &  right,
double  simTime 
) [protected, virtual]

Extend the current segment to left and right points.

Implements makVrv::DtOsgRibbon.

virtual osg::Drawable* makVrv::DtOsgMultiRibbon::getDrawable ( ) [protected, virtual]

Get the drawable responsible for drawing the ribbon.

Implements makVrv::DtOsgRibbon.


Member Data Documentation

Set of sub-ribbons.

osg::ref_ptr<osg::Group> makVrv::DtOsgMultiRibbon::myNode [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)