Sequence is a Group node which allows automatic, time based switching between children
Inheritance:
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)
-
void setTime(int frame, float t)
- Set time in seconds for child
-
float getTime(int frame) const
- Get time for child
-
void setInterval(LoopMode mode, int begin, int end)
- Set sequence mode & interval.
-
inline 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
-
inline void getDuration(float& speed, int& nreps) const
- Get duration
-
void setMode(SequenceMode mode)
- Set sequence mode.
-
inline SequenceMode getMode() const
- Get sequence mode.
Public Members
-
enum LoopMode
- Interval modes
-
enum SequenceMode
- Sequence modes
Protected Fields
-
float _last
-
std::vector<float> _frameTime
-
int _step
-
LoopMode _loopMode
-
int _begin
-
int _end
-
float _speed
-
int _nreps
-
int _nrepsremain
-
SequenceMode _mode
Protected Methods
-
virtual ~Sequence()
Inherited from Switch:
Public Methods
-
void setNewChildDefaultValue(bool value)
-
bool getNewChildDefaultValue() const
-
virtual bool addChild( Node* child )
-
virtual bool addChild( Node* child, bool value )
-
virtual bool removeChild( Node* child )
-
void setValue(unsigned int pos, bool value)
-
void setValue(const Node* child, bool value)
-
bool getValue(unsigned int pos) const
-
bool getValue(const Node* child) const
-
void setValue(int value)
-
int getValue() const
-
const ValueList& getValueList() const
Public Members
-
enum Values
-
typedef std::vector<bool> ValueList
Protected Fields
-
bool _newChildDefaultValue
-
ValueList _values
Inherited from Group:
Public Methods
-
virtual Group* asGroup()
-
virtual const Group* asGroup() const
-
virtual bool replaceChild( Node* origChild, Node* newChild )
-
inline unsigned int getNumChildren() const
-
inline Node* getChild( unsigned int i )
-
inline const Node* getChild( unsigned int i ) const
-
inline bool containsNode( const Node* node ) const
-
inline ChildList::iterator findNode( const Node* node )
-
inline ChildList::const_iterator findNode( const Node* node ) const
-
inline unsigned int findChildNo( const Node* node ) const
Public Members
-
typedef std::vector<ref_ptr<Node> > ChildList
Protected Fields
-
ChildList _children
Protected Methods
-
virtual bool computeBound() const
Documentation
Sequence is a Group node which allows automatic, time based
switching between children
- 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)
- void setTime(int frame, float t)
- Set time in seconds for child
- float getTime(int frame) const
- Get time for child
- enum LoopMode
- Interval modes
- LOOP
- SWING
- void setInterval(LoopMode mode, int begin, int end)
- Set sequence mode & interval.
- inline 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
- inline void getDuration(float& speed, int& nreps) const
- Get duration
- enum SequenceMode
- Sequence modes
- START
- STOP
- PAUSE
- RESUME
- void setMode(SequenceMode mode)
- Set sequence mode. Start/stop & pause/resume.
- inline SequenceMode getMode() const
- Get sequence mode.
- virtual ~Sequence()
- float _last
- std::vector<float> _frameTime
- int _step
- LoopMode _loopMode
- int _begin
- int _end
- float _speed
- int _nreps
- int _nrepsremain
- SequenceMode _mode
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.