direct.interval.Interval

from direct.interval.Interval import Interval

Interval module: contains the Interval class

Inheritance diagram

Inheritance diagram of direct.interval.Interval

class Interval(name, duration, openEnded=1)[source]

Bases: DirectObject

Interval class: Base class for timeline functionality

__init__(name, duration, openEnded=1)[source]
clearToInitial()[source]
property done_event
finish()[source]
getDoneEvent()[source]
getDuration()[source]
getLoop()[source]
getName()[source]
getOpenEnded()[source]
getPlayRate()[source]

Returns the play rate as set by the last call to start(), loop(), or setPlayRate().

getState()[source]
getT()[source]
intervalDone()[source]
isPaused()[source]
isPlaying()[source]
isStopped()[source]
loop(startT=0.0, endT=-1.0, playRate=1.0)[source]
notify = <direct.directnotify.Notifier.Notifier object>
property open_ended
pause()[source]
property play_rate

Returns the play rate as set by the last call to start(), loop(), or setPlayRate().

playbackCounter = 0
popupControls(tl=None)[source]

Popup control panel for interval.

privDoEvent(t, event)[source]
privFinalize()[source]
privInitialize(t)[source]
privInstant()[source]
privInterrupt()[source]
privPostEvent()[source]
privReverseFinalize()[source]
privReverseInitialize(t)[source]
privReverseInstant()[source]
privStep(t)[source]
resume(startT=None)[source]
resumeUntil(endT)[source]
setDoneEvent(event)[source]
setLoop(loop=1)[source]
setPlayRate(playRate)[source]

Changes the play rate of the interval. If the interval is already started, this changes its speed on-the-fly. Note that since playRate is a parameter to start() and loop(), the next call to start() or loop() will reset this parameter.

setT(t)[source]
setupPlay(startT, endT, playRate, doLoop)[source]
setupResume()[source]
start(startT=0.0, endT=-1.0, playRate=1.0)[source]

Starts the interval. Returns an awaitable.

stepPlay()[source]
property stopped
property t