|
| applyIvals (self, meta, relTime, relTo) |
|
| __init__ (self, *ivals, **kw) |
|
| __add__ (self, other) |
|
| __delitem__ (self, index) |
|
| __delslice__ (self, i, j) |
|
| __getitem__ (self, index) |
|
| __getslice__ (self, i, j) |
|
| __iadd__ (self, other) |
|
| __len__ (self) |
|
| __repr__ (self, *args, **kw) |
|
| __setitem__ (self, index, value) |
|
| __setslice__ (self, i, j, s) |
|
| __str__ (self, *args, **kw) |
|
| addInterval (self, ival, relTime, relTo) |
|
| addParallel (self, list, name, relTime, relTo, duration) |
|
| addParallelEndTogether (self, list, name, relTime, relTo, duration) |
|
| addSequence (self, list, name, relTime, relTo, duration) |
|
| addTrack (self, trackList, name, relTime, relTo, duration) |
|
| append (self, ival) |
|
| clearIntervals (self) |
|
| clearToInitial (self) |
|
| count (self, ival) |
|
| extend (self, ivals) |
|
| finish (self) |
|
| getDuration (self) |
|
| getIntervalStartTime (self, *args, **kw) |
|
| getManager (self) |
|
| index (self, ival) |
|
| insert (self, index, ival) |
|
| loop (self, startT=0.0, endT=-1.0, playRate=1.0) |
|
| pause (self) |
|
| pop (self, index=None) |
|
| privDoEvent (self, t, event) |
|
| privPostEvent (self) |
|
| remove (self, ival) |
|
| resume (self, startT=None) |
|
| resumeUntil (self, endT) |
|
| reverse (self) |
|
| setIntervalStartTime (self, *args, **kw) |
|
| setManager (self, manager) |
|
| setPlayRate (self, playRate) |
|
| setT (self, t) |
|
| sort (self, cmpfunc=None) |
|
| start (self, startT=0.0, endT=-1.0, playRate=1.0) |
|
| timeline (self, out=None) |
|
| validateComponent (self, component) |
|
| validateComponents (self, components) |
|
Public Member Functions inherited from CMetaInterval |
| __init__ (const CMetaInterval) |
|
| __init__ (str name) |
|
int | addCInterval (CInterval c_interval, double rel_time, CMetaInterval::RelativeStart rel_to) |
| Adds a new CInterval to the list.
|
|
int | addExtIndex (int ext_index, str name, double duration, bool open_ended, double rel_time, CMetaInterval::RelativeStart rel_to) |
| Adds a new external interval to the list.
|
|
| clearIntervals () |
| Resets the list of intervals and prepares for receiving a new list.
|
|
CInterval | getCInterval (int n) |
| Return the CInterval pointer associated with the nth interval definition.
|
|
CMetaInterval::DefType | getDefType (int n) |
| Returns the type of the nth interval definition that has been added.
|
|
int | getEventIndex () |
| If a previous call to is_event_ready() returned true, this returns the index number (added via add_event_index()) of the external interval that needs to be played.
|
|
double | getEventT () |
| If a previous call to is_event_ready() returned true, this returns the t value that should be fed to the given interval.
|
|
CInterval::EventType | getEventType () |
| If a previous call to is_event_ready() returned true, this returns the type of the event (initialize, step, finalize, etc.) for the given interval.
|
|
int | getExtIndex (int n) |
| Return the external interval index number associated with the nth interval definition.
|
|
double | getIntervalEndTime (str name) |
| Returns the actual end time, relative to the beginning of the interval, of the child interval with the given name, if found, or -1 if the interval is not found.
|
|
double | getIntervalStartTime (str name) |
| Returns the actual start time, relative to the beginning of the interval, of the child interval with the given name, if found, or -1 if the interval is not found.
|
|
int | getNumDefs () |
| Returns the number of interval and push/pop definitions that have been added to the meta interval.
|
|
double | getPrecision () |
| Returns the precision with which time measurements are compared.
|
|
bool | isEventReady () |
| Returns true if a recent call to priv_initialize(), priv_step(), or priv_finalize() has left some external intervals ready to play.
|
|
| popEvent () |
| Acknowledges that the external interval on the top of the queue has been extracted, and is about to be serviced by the scripting language.
|
|
int | popLevel (double duration) |
| Finishes a level marked by a previous call to push_level(), and returns to the previous level.
|
|
int | pushLevel (str name, double rel_time, CMetaInterval::RelativeStart rel_to) |
| Marks the beginning of a nested level of child intervals.
|
|
bool | setIntervalStartTime (str name, double rel_time, CMetaInterval::RelativeStart rel_to) |
| Adjusts the start time of the child interval with the given name, if found.
|
|
| setPrecision (double precision) |
| Indicates the precision with which time measurements are compared.
|
|
| timeline (Ostream out) |
| Outputs a list of all events in the order in which they occur.
|
|
Public Member Functions inherited from CInterval |
object | __await__ () |
|
| __init__ (const CInterval) |
|
| clearToInitial () |
| Pauses the interval, if it is playing, and resets its state to its initial state, abandoning any state changes already in progress in the middle of the interval.
|
|
| finish () |
| Stops the interval from playing and sets it to its final state.
|
|
bool | getAutoFinish () |
| Returns the state of the 'auto_finish' flag.
|
|
bool | getAutoPause () |
| Returns the state of the 'auto_pause' flag.
|
|
str | getDoneEvent () |
| Returns the event that is generated whenever the interval reaches its final state, whether it is explicitly finished or whether it gets there on its own.
|
|
double | getDuration () |
| Returns the duration of the interval in seconds.
|
|
CIntervalManager | getManager () |
| Returns the CIntervalManager object which will be responsible for playing this interval.
|
|
str | getName () |
| Returns the interval's name.
|
|
bool | getOpenEnded () |
| Returns the state of the "open_ended" flag.
|
|
double | getPlayRate () |
| Returns the play rate as set by the last call to start(), loop(), or set_play_rate().
|
|
CInterval::State | getState () |
| Indicates the state the interval believes it is in: whether it has been started, is currently in the middle, or has been finalized.
|
|
double | getT () |
| Returns the current time of the interval: the last value of t passed to priv_initialize(), priv_step(), or priv_finalize().
|
|
bool | getWantsTCallback () |
| Returns the state of the 'wants_t_callback' flag.
|
|
bool | isPlaying () |
| Returns true if the interval is currently playing, false otherwise.
|
|
bool | isStopped () |
| Returns true if the interval is in either its initial or final states (but not in a running or paused state).
|
|
| loop (double start_t, double end_t, double play_rate) |
| Starts the interval playing by registering it with the current CIntervalManager.
|
|
| output (Ostream out) |
|
double | pause () |
| Stops the interval from playing but leaves it in its current state.
|
|
| privDoEvent (double t, CInterval::EventType event) |
|
| privFinalize () |
| This is called to stop an interval, forcing it to whatever state it would be after it played all the way through.
|
|
| privInitialize (double t) |
| This replaces the first call to priv_step(), and indicates that the interval has just begun.
|
|
| privInstant () |
| This is called in lieu of priv_initialize() .
|
|
| privInterrupt () |
| This is called while the interval is playing to indicate that it is about to be interrupted; that is, priv_step() will not be called for a length of time.
|
|
| privReverseFinalize () |
| Called generally following a priv_reverse_initialize(), this indicates the interval should set itself to the initial state.
|
|
| privReverseInitialize (double t) |
| Similar to priv_initialize(), but this is called when the interval is being played backwards; it indicates that the interval should start at the finishing state and undo any intervening intervals.
|
|
| privReverseInstant () |
| This is called in lieu of priv_reverse_initialize() .
|
|
| privStep (double t) |
| Advances the time on the interval.
|
|
| resume () |
| Restarts the interval from its current point after a previous call to pause().
|
|
| resume (double start_t) |
| Restarts the interval from the indicated point after a previous call to pause().
|
|
| resumeUntil (double end_t) |
| Restarts the interval from the current point after a previous call to pause() (or a previous play-to-point-and-stop), to play until the indicated point and then stop.
|
|
| setAutoFinish (bool auto_finish) |
| Changes the state of the 'auto_finish' flag.
|
|
| setAutoPause (bool auto_pause) |
| Changes the state of the 'auto_pause' flag.
|
|
| setDoneEvent (str event) |
| Sets the event that is generated whenever the interval reaches its final state, whether it is explicitly finished or whether it gets there on its own.
|
|
| setManager (CIntervalManager manager) |
| Indicates the CIntervalManager object which will be responsible for playing this interval.
|
|
| setPlayRate (double play_rate) |
| Changes the play rate of the interval.
|
|
| setT (double t) |
| Explicitly sets the time within the interval.
|
|
| setupPlay (double start_time, double end_time, double play_rate, bool do_loop) |
| Called to prepare the interval for automatic timed playback, e.g.
|
|
| setupResume () |
| Called to prepare the interval for restarting at the current point within the interval after an interruption.
|
|
| setupResumeUntil (double end_t) |
| Called to prepare the interval for restarting from the current point after a previous call to pause() (or a previous play-to-point-and-stop), to play until the indicated point and then stop.
|
|
| setWantsTCallback (bool wants_t_callback) |
| Changes the state of the 'wants_t_callback' flag.
|
|
| start (double start_t, double end_t, double play_rate) |
| Starts the interval playing by registering it with the current CIntervalManager.
|
|
bool | stepPlay () |
| Should be called once per frame to execute the automatic timed playback begun with setup_play().
|
|
| write (Ostream out, int indent_level) |
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly.
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type.
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count.
|
|
| ref () |
| Explicitly increments the reference count.
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus.
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
|
|
bool | unref () |
| Explicitly decrements the reference count.
|
|