Panda3D
|
Class used to execute a function over time. Function can access fromData and toData to perform blend. If fromData and toData not specified, will execute the given function passing in values ranging from 0 to 1 This is different from a standard LerpFunction, in that it assumes the function is not modifying any state that needs to be kept; so that it will only call the function while the lerp is actually running, and will not be guaranteed to call the function with its final value of the lerp. In particular, if the lerp interval happens to get skipped over completely, it will not bother to call the function at all.
def __init__ | ( | self, | |
function, | |||
duration = 0.0 , |
|||
fromData = 0 , |
|||
toData = 1 , |
|||
blendType = 'noBlend' , |
|||
extraArgs = [] , |
|||
name = None |
|||
) |
__init__(function, duration, fromData, toData, name)
def __repr__ | ( | self, | |
indent = 0 |
|||
) | [inherited] |
def clearToInitial | ( | self | ) | [inherited] |
def finish | ( | self | ) | [inherited] |
def getDoneEvent | ( | self | ) | [inherited] |
def getDuration | ( | self | ) | [inherited] |
def getLoop | ( | self | ) | [inherited] |
def getName | ( | self | ) | [inherited] |
def getOpenEnded | ( | self | ) | [inherited] |
def getPlayRate | ( | self | ) | [inherited] |
Returns the play rate as set by the last call to start(), loop(), or setPlayRate().
def getState | ( | self | ) | [inherited] |
def getT | ( | self | ) | [inherited] |
def intervalDone | ( | self | ) | [inherited] |
def isPaused | ( | self | ) | [inherited] |
def isPlaying | ( | self | ) | [inherited] |
def isStopped | ( | self | ) | [inherited] |
def loop | ( | self, | |
startT = 0.0 , |
|||
endT = -1.0 , |
|||
playRate = 1.0 |
|||
) | [inherited] |
def pause | ( | self | ) | [inherited] |
def popupControls | ( | self, | |
tl = None |
|||
) | [inherited] |
Popup control panel for interval.
def privDoEvent | ( | self, | |
t, | |||
event | |||
) | [inherited] |
def privFinalize | ( | self | ) | [inherited] |
Reimplemented in ActorInterval, AnimControlInterval, IndirectInterval, and SoundInterval.
def privInitialize | ( | self, | |
t | |||
) | [inherited] |
Reimplemented in IndirectInterval, and SoundInterval.
def privInstant | ( | self | ) | [inherited] |
Reimplemented in FunctionInterval, and IndirectInterval.
def privInterrupt | ( | self | ) | [inherited] |
Reimplemented in IndirectInterval, and SoundInterval.
def privPostEvent | ( | self | ) | [inherited] |
def privReverseFinalize | ( | self | ) | [inherited] |
Reimplemented in IndirectInterval.
def privReverseInitialize | ( | self, | |
t | |||
) | [inherited] |
Reimplemented in IndirectInterval.
def privReverseInstant | ( | self | ) | [inherited] |
Reimplemented in IndirectInterval.
def privStep | ( | self, | |
t | |||
) |
Evaluate function apply(self.function, [data] + self.extraArgs) self.state = CInterval.SStarted self.currT = t.
Reimplemented from Interval.
def resume | ( | self, | |
startT = None |
|||
) | [inherited] |
def resumeUntil | ( | self, | |
endT | |||
) | [inherited] |
def setDoneEvent | ( | self, | |
event | |||
) | [inherited] |
def setLoop | ( | self, | |
loop = 1 |
|||
) | [inherited] |
def setPlayRate | ( | self, | |
playRate | |||
) | [inherited] |
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.
def setT | ( | self, | |
t | |||
) | [inherited] |
def setupPlay | ( | self, | |
startT, | |||
endT, | |||
playRate, | |||
doLoop | |||
) | [inherited] |
def setupResume | ( | self | ) | [inherited] |
def start | ( | self, | |
startT = 0.0 , |
|||
endT = -1.0 , |
|||
playRate = 1.0 |
|||
) | [inherited] |
def stepPlay | ( | self | ) | [inherited] |
doneEvent [inherited] |
es [inherited] |
int lerpFunctionIntervalNum = 1 [static] |
name [inherited] |
tuple notify = directNotify.newCategory('LerpFunctionNoStateInterval') [static] |
Reimplemented from Interval.
openEnded [inherited] |
int playbackCounter = 0 [static, inherited] |
pname [inherited] |
pstats [inherited] |
setTHooks [inherited] |