Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
FunctionInterval Class Reference
Inheritance diagram for FunctionInterval:
Interval DirectObject AcceptInterval EventInterval Func HprInterval HprScaleInterval IgnoreInterval ParentInterval PosHprInterval PosHprScaleInterval PosInterval ScaleInterval WrtParentInterval

Public Member Functions

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

Static Public Member Functions

 makeUniqueName (func, suffix='')
 

Public Attributes

 extraArgs
 
 function
 
 kw
 
 name
 
- Public Attributes inherited from Interval
 currT
 
 doneEvent
 
 duration
 
 es
 
 name
 
 openEnded
 
 pname
 
 pstats
 
 setTHooks
 
 state
 

Static Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from DirectObject
 _addTask (self, task)
 
 _clearTask (self, task)
 
- Protected Attributes inherited from DirectObject
 _taskList
 
- Properties inherited from Interval
 done_event = property(getDoneEvent, setDoneEvent)
 
 open_ended = property(getOpenEnded)
 
 play_rate = property(getPlayRate, setPlayRate)
 
 stopped = property(isStopped)
 
 t = property(getT, setT)
 

Detailed Description

                                                  ###

See examples of function intervals in IntervalTest.py ###

autotoc_md21

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
function,
** kw )
__init__(function, name = None, openEnded = 1, extraArgs = [])

Reimplemented from Interval.

Reimplemented in Func, AcceptInterval, IgnoreInterval, EventInterval, HprInterval, HprScaleInterval, ParentInterval, WrtParentInterval, PosInterval, PosHprInterval, PosHprScaleInterval, and ScaleInterval.

Member Function Documentation

◆ makeUniqueName()

makeUniqueName ( func,
suffix = '' )
static

◆ privInstant()

privInstant ( self)

Reimplemented from Interval.

◆ replaceMethod()

replaceMethod ( self,
oldFunction,
newFunction )

Member Data Documentation

◆ extraArgs

extraArgs

◆ function

function

◆ functionIntervalNum

int functionIntervalNum = 1
static

◆ FunctionIntervals

FunctionIntervals = weakref.WeakKeyDictionary()
static

◆ kw

kw

◆ name

name

◆ notify

notify = directNotify.newCategory('FunctionInterval')
static