Panda3D
|
A class for anything that needs to cycle over some finite list of elements in increments based on time. More...
#include "timedCycle.h"
Public Member Functions | |
TimedCycle (PN_stdfloat cycle_time, int element_count) | |
void | fillin (DatagramIterator &scan) |
This internal function is called by make_TimedCycle to read in all of the relevant data from the BamFile for the new TimedCycle. More... | |
int | next_element () |
Set the number of elements being cycled through. More... | |
void | set_cycle_time (PN_stdfloat cycle_time) |
Set the number of elements being cycled through. More... | |
void | set_element_count (int element_count) |
Set the number of elements being cycled through. More... | |
void | write_datagram (Datagram &me) |
Writes the contents of this object to the datagram for shipping out to a Bam file. More... | |
A class for anything that needs to cycle over some finite list of elements in increments based on time.
All time variables are assumed to be set in seconds.
Definition at line 36 of file timedCycle.h.
void TimedCycle::fillin | ( | DatagramIterator & | scan | ) |
This internal function is called by make_TimedCycle to read in all of the relevant data from the BamFile for the new TimedCycle.
Definition at line 39 of file timedCycle.cxx.
References ClockObject::get_global_clock(), ClockObject::get_real_time(), DatagramIterator::get_stdfloat(), and DatagramIterator::get_uint16().
Referenced by write_datagram().
|
inline |
Set the number of elements being cycled through.
Definition at line 87 of file timedCycle.I.
References ClockObject::get_frame_time().
Referenced by set_cycle_time().
|
inline |
Set the number of elements being cycled through.
Definition at line 65 of file timedCycle.I.
References ClockObject::get_frame_time(), and next_element().
Referenced by set_element_count().
|
inline |
Set the number of elements being cycled through.
Definition at line 54 of file timedCycle.I.
References set_cycle_time().
void TimedCycle::write_datagram | ( | Datagram & | me | ) |
Writes the contents of this object to the datagram for shipping out to a Bam file.
Definition at line 26 of file timedCycle.cxx.
References Datagram::add_stdfloat(), Datagram::add_uint16(), and fillin().