15 #define OSG_SEQUENCE 1
44 virtual bool addChild(
Node *child);
46 virtual bool addChild(
Node *child,
double t);
48 virtual bool insertChild(
unsigned int index,
Node *child);
50 virtual bool insertChild(
unsigned int index,
Node *child,
double t);
52 virtual bool removeChild(
Node *child );
54 virtual bool removeChildren(
unsigned int pos,
unsigned int numChildrenToRemove);
62 void setTime(
unsigned int frame,
double t);
65 double getTime(
unsigned int frame)
const;
68 void setTimeList(
const std::vector<double>& timeList) { _frameTime = timeList; }
71 const std::vector<double>&
getTimeList()
const {
return _frameTime; }
88 inline unsigned int getNumFrames()
const {
return _frameTime.size(); }
104 void setBegin(
int begin) { _begin = begin; _value = -1; }
110 void setEnd(
int end) { _end = end; _value = -1; }
116 void setInterval(LoopMode mode,
int begin,
int end);
133 void setNumRepeats(
int nreps) { _nreps = (nreps<0?-1:nreps); _nrepsRemain = _nreps; }
139 void setDuration(
float speed,
int nreps = -1);
158 void setMode(SequenceMode mode);
181 int _getNextValue(
void) ;
void getInterval(LoopMode &mode, int &begin, int &end) const
unsigned int _saveRealLastFrameValue
void setClearOnStop(bool clearOnStop)
double _saveRealLastFrameTime
#define META_Node(library, name)
SequenceMode getMode() const
bool getClearOnStop() const
void setLastFrameTime(double t)
std::vector< double > _frameTime
int getNumRepeats() const
const std::vector< double > & getTimeList() const
unsigned int getNumFrames() const
void setLoopMode(LoopMode mode)
void getDuration(float &speed, int &nreps) const
void setTimeList(const std::vector< double > &timeList)
double getLastFrameTime(void) const
void setSpeed(float speed)
void setNumRepeats(int nreps)
void setDefaultTime(double t)
double getDefaultTime(void) const
LoopMode getLoopMode() const