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__(self, name, duration, openEnded=1)[source]
clearToInitial(self)[source]
property done_event
finish(self)[source]
getDoneEvent(self)[source]
getDuration(self)[source]
getLoop(self)[source]
getName(self)[source]
getOpenEnded(self)[source]
getPlayRate(self)[source]

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

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

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

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

Popup control panel for interval.

privDoEvent(self, t, event)[source]
privFinalize(self)[source]
privInitialize(self, t)[source]
privInstant(self)[source]
privInterrupt(self)[source]
privPostEvent(self)[source]
privReverseFinalize(self)[source]
privReverseInitialize(self, t)[source]
privReverseInstant(self)[source]
privStep(self, t)[source]
resume(self, startT=None)[source]
resumeUntil(self, endT)[source]
setDoneEvent(self, event)[source]
setLoop(self, loop=1)[source]
setPlayRate(self, 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(self, t)[source]
setupPlay(self, startT, endT, playRate, doLoop)[source]
setupResume(self)[source]
start(self, startT=0.0, endT=-1.0, playRate=1.0)[source]

Starts the interval. Returns an awaitable.

stepPlay(self)[source]
property stopped
property t