Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::Sequence Class Reference

Sequence is a Group node which allows automatic, time based switching between children. More...

Inheritance diagram for osg::Sequence:

Inheritance graph
[legend]
List of all members.

Public Types

enum  LoopMode { LOOP, SWING }
 Interval modes. More...

enum  SequenceMode { START, STOP, PAUSE, RESUME }
 Sequence modes. More...


Public Methods

 Sequence ()
 Sequence (const Sequence &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.

 META_Node (osg, Sequence)
virtual void traverse (NodeVisitor &nv)
 Traverse downwards : calls children's accept method with NodeVisitor.

void setTime (int frame, float t)
 Set time in seconds for child.

const float getTime (int frame) const
 Get time for child.

void setInterval (LoopMode mode, int begin, int end)
 Set sequence mode & interval.

void getInterval (LoopMode &mode, int &begin, int &end) const
 Get sequence mode & interval.

void setDuration (float speed, int nreps=-1)
 Set duration: speed-up & number of repeats.

void getDuration (float &speed, int &nreps) const
 Get duration.

void setMode (SequenceMode mode)
 Set sequence mode.

SequenceMode getMode () const
 Get sequence mode.


Protected Methods

virtual ~Sequence ()

Protected Attributes

float _last
std::vector< float > _frameTime
int _step
LoopMode _loopMode
int _begin
int _end
float _speed
int _nreps
int _nrepsremain
SequenceMode _mode

Detailed Description

Sequence is a Group node which allows automatic, time based switching between children.


Member Enumeration Documentation

enum osg::Sequence::LoopMode
 

Interval modes.

Enumeration values:
LOOP 
SWING 

enum osg::Sequence::SequenceMode
 

Sequence modes.

Enumeration values:
START 
STOP 
PAUSE 
RESUME 


Constructor & Destructor Documentation

osg::Sequence::Sequence  
 

osg::Sequence::Sequence const Sequence &   ,
const CopyOp   copyop = CopyOp::SHALLOW_COPY
 

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::Sequence::~Sequence   [inline, protected, virtual]
 


Member Function Documentation

void osg::Sequence::getDuration float &    speed,
int &    nreps
const [inline]
 

Get duration.

void osg::Sequence::getInterval LoopMode   mode,
int &    begin,
int &    end
const [inline]
 

Get sequence mode & interval.

SequenceMode osg::Sequence::getMode   const [inline]
 

Get sequence mode.

const float osg::Sequence::getTime int    frame const
 

Get time for child.

osg::Sequence::META_Node osg   ,
Sequence   
 

Reimplemented from osg::Switch.

void osg::Sequence::setDuration float    speed,
int    nreps = -1
 

Set duration: speed-up & number of repeats.

void osg::Sequence::setInterval LoopMode    mode,
int    begin,
int    end
 

Set sequence mode & interval.

void osg::Sequence::setMode SequenceMode    mode
 

Set sequence mode.

Start/stop & pause/resume.

void osg::Sequence::setTime int    frame,
float    t
 

Set time in seconds for child.

virtual void osg::Sequence::traverse NodeVisitor   nv [virtual]
 

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Switch.


Member Data Documentation

int osg::Sequence::_begin [protected]
 

int osg::Sequence::_end [protected]
 

std::vector<float> osg::Sequence::_frameTime [protected]
 

float osg::Sequence::_last [protected]
 

LoopMode osg::Sequence::_loopMode [protected]
 

SequenceMode osg::Sequence::_mode [protected]
 

int osg::Sequence::_nreps [protected]
 

int osg::Sequence::_nrepsremain [protected]
 

float osg::Sequence::_speed [protected]
 

int osg::Sequence::_step [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:42 2002 for the Open Scene Graph by doxygen 1.2.16.