VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtOsgRibbon
 DtOsgRibbon ()
 Default CTOR.
 DtOsgRibbon (float segmentSpacing, const osg::Vec4 &color, 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.

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

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

makVrv::DtOsgMultiRibbon::DtOsgMultiRibbon ( )

CTOR.

makVrv::DtOsgMultiRibbon::DtOsgMultiRibbon ( RibbonSet ribbons)

CTOR.

makVrv::DtOsgMultiRibbon::~DtOsgMultiRibbon ( )
protected

DTOR.

Member Function Documentation

osg::Node* makVrv::DtOsgMultiRibbon::node ( )
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.

virtual void makVrv::DtOsgMultiRibbon::update ( double  dt,
double  simTime 
)
protectedvirtual

Update the ribbon.

Reimplemented from makVrv::DtOsgRibbon.

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

Add a particle to the ribbon.

Implements makVrv::DtOsgRibbon.

virtual float makVrv::DtOsgMultiRibbon::currentSegmentLength ( )
protectedvirtual

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 
)
protectedvirtual

Extend the current segment to left and right points.

Implements makVrv::DtOsgRibbon.

virtual osg::Drawable* makVrv::DtOsgMultiRibbon::getDrawable ( )
protectedvirtual

Get the drawable responsible for drawing the ribbon.

Implements makVrv::DtOsgRibbon.

Member Data Documentation

RibbonRefPtrSet makVrv::DtOsgMultiRibbon::myRibbons
protected

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 Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)