Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Interval Class Reference
Inheritance diagram for Interval:
DirectObject ActorInterval AnimControlInterval FunctionInterval IndirectInterval LerpFunctionInterval LerpFunctionNoStateInterval ParticleInterval ProjectileInterval SoundInterval TestInterval

Public Member Functions

def __init__ (self, name, duration, openEnded=1)
 
def __repr__ (self, indent=0)
 
def clearToInitial (self)
 
def finish (self)
 
def getDoneEvent (self)
 
def getDuration (self)
 
def getLoop (self)
 
def getName (self)
 
def getOpenEnded (self)
 
def getPlayRate (self)
 
def getState (self)
 
def getT (self)
 
def intervalDone (self)
 
def isPaused (self)
 
def isPlaying (self)
 
def isStopped (self)
 
def loop (self, startT=0.0, endT=-1.0, playRate=1.0)
 
def pause (self)
 
def popupControls (self, tl=None)
 
def privDoEvent (self, t, event)
 
def privFinalize (self)
 
def privInitialize (self, t)
 
def privInstant (self)
 
def privInterrupt (self)
 
def privPostEvent (self)
 
def privReverseFinalize (self)
 
def privReverseInitialize (self, t)
 
def privReverseInstant (self)
 
def privStep (self, t)
 
def resume (self, startT=None)
 
def resumeUntil (self, endT)
 
def setDoneEvent (self, event)
 
def setLoop (self, loop=1)
 
def setPlayRate (self, playRate)
 
def setT (self, t)
 
def setupPlay (self, startT, endT, playRate, doLoop)
 
def setupResume (self)
 
def start (self, startT=0.0, endT=-1.0, playRate=1.0)
 
def stepPlay (self)
 
- Public Member Functions inherited from DirectObject
def __init__ (self)
 
def accept (self, event, method, extraArgs=[])
 
def acceptOnce (self, event, method, extraArgs=[])
 
def addTask (self, *args, **kwargs)
 
def detectLeaks (self)
 
def doMethodLater (self, *args, **kwargs)
 
def getAllAccepting (self)
 
def ignore (self, event)
 
def ignoreAll (self)
 
def isAccepting (self, event)
 
def isIgnoring (self, event)
 
def removeAllTasks (self)
 
def removeTask (self, taskOrName)
 

Public Attributes

 currT
 
 doneEvent
 
 duration
 
 es
 
 name
 
 openEnded
 
 pname
 
 pstats
 
 setTHooks
 
 state
 

Static Public Attributes

 notify = directNotify.newCategory("Interval")
 
int playbackCounter = 0
 
- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
 
def add_task = addTask
 
def detect_leaks = detectLeaks
 
def do_method_later = doMethodLater
 
def get_all_accepting = getAllAccepting
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_ignoring = isIgnoring
 
def remove_all_tasks = removeAllTasks
 
def remove_task = removeTask
 

Properties

 done_event = property(getDoneEvent, setDoneEvent)
 
 open_ended = property(getOpenEnded)
 
 play_rate = property(getPlayRate, setPlayRate)
 
 stopped = property(isStopped)
 
 t = property(getT, setT)
 

Detailed Description

Interval class: Base class for timeline functionality

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name,
  duration,
  openEnded = 1 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self,
  indent = 0 
)

◆ clearToInitial()

def clearToInitial (   self)

◆ finish()

def finish (   self)

◆ getDoneEvent()

def getDoneEvent (   self)

◆ getDuration()

def getDuration (   self)

◆ getLoop()

def getLoop (   self)

◆ getName()

def getName (   self)

◆ getOpenEnded()

def getOpenEnded (   self)

◆ getPlayRate()

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

◆ getState()

def getState (   self)

◆ getT()

def getT (   self)

◆ intervalDone()

def intervalDone (   self)

◆ isPaused()

def isPaused (   self)

◆ isPlaying()

def isPlaying (   self)

◆ isStopped()

def isStopped (   self)

◆ loop()

def loop (   self,
  startT = 0.0,
  endT = -1.0,
  playRate = 1.0 
)

◆ pause()

def pause (   self)

◆ popupControls()

def popupControls (   self,
  tl = None 
)
Popup control panel for interval.

◆ privDoEvent()

def privDoEvent (   self,
  t,
  event 
)

◆ privFinalize()

def privFinalize (   self)

◆ privInitialize()

def privInitialize (   self,
  t 
)

◆ privInstant()

def privInstant (   self)

◆ privInterrupt()

def privInterrupt (   self)

Reimplemented in SoundInterval, IndirectInterval, and TestInterval.

◆ privPostEvent()

def privPostEvent (   self)

◆ privReverseFinalize()

def privReverseFinalize (   self)

Reimplemented in SoundInterval, and IndirectInterval.

◆ privReverseInitialize()

def privReverseInitialize (   self,
  t 
)

Reimplemented in SoundInterval, and IndirectInterval.

◆ privReverseInstant()

def privReverseInstant (   self)

Reimplemented in SoundInterval, and IndirectInterval.

◆ privStep()

def privStep (   self,
  t 
)

◆ resume()

def resume (   self,
  startT = None 
)

◆ resumeUntil()

def resumeUntil (   self,
  endT 
)

◆ setDoneEvent()

def setDoneEvent (   self,
  event 
)

◆ setLoop()

def setLoop (   self,
  loop = 1 
)

◆ setPlayRate()

def setPlayRate (   self,
  playRate 
)
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()

def setT (   self,
  t 
)

◆ setupPlay()

def setupPlay (   self,
  startT,
  endT,
  playRate,
  doLoop 
)

◆ setupResume()

def setupResume (   self)

◆ start()

def start (   self,
  startT = 0.0,
  endT = -1.0,
  playRate = 1.0 
)
Starts the interval.  Returns an awaitable. 

◆ stepPlay()

def stepPlay (   self)

Member Data Documentation

◆ currT

currT

◆ doneEvent

doneEvent

◆ duration

duration

◆ es

es

◆ name

name

◆ notify

notify = directNotify.newCategory("Interval")
static

◆ openEnded

openEnded

◆ playbackCounter

int playbackCounter = 0
static

◆ pname

pname

◆ pstats

pstats

◆ setTHooks

setTHooks

◆ state

state

Property Documentation

◆ done_event

done_event = property(getDoneEvent, setDoneEvent)
static

◆ open_ended

open_ended = property(getOpenEnded)
static

◆ play_rate

play_rate = property(getPlayRate, setPlayRate)
static

◆ stopped

stopped = property(isStopped)
static

◆ t

t = property(getT, setT)
static