Panda3D
|
An interval that lerps one or more properties (like pos, hpr, etc.) on a NodePath over time. More...
Public Types | |
enum | BlendType { BTNoBlend = 0, BTEaseIn = 1, BTEaseOut = 2, BTEaseInOut = 3, BTInvalid = 4 } |
enum | EventType { ETInitialize = 0, ETInstant = 1, ETStep = 2, ETFinalize = 3, ETReverseInitialize = 4, ETReverseInstant = 5, ETReverseFinalize = 6, ETInterrupt = 7 } |
enum | State { SInitial = 0, SStarted = 1, SPaused = 2, SFinal = 3 } |
Public Member Functions | |
CLerpNodePathInterval (string name, double duration, BlendType blend_type, bool bake_in_start, bool fluid, NodePath const node, NodePath const other) | |
Constructs a lerp interval that will lerp some properties on the indicated node, possibly relative to the indicated other node (if other is nonempty). | |
clearToInitial () | |
Pauses the interval, if it is playing, and resets its state to its initial state, abandoning any state changes already in progress in the middle of the interval. | |
finish () | |
Stops the interval from playing and sets it to its final state. | |
bool | getAutoFinish () |
Returns the state of the 'auto_finish' flag. | |
bool | getAutoPause () |
Returns the state of the 'auto_pause' flag. | |
BlendType | getBlendType () |
Returns the blend type specified for the interval. | |
string | getDoneEvent () |
Returns the event that is generated whenever the interval reaches its final state, whether it is explicitly finished or whether it gets there on its own. | |
double | getDuration () |
Returns the duration of the interval in seconds. | |
CIntervalManager | getManager () |
Returns the CIntervalManager object which will be responsible for playing this interval. | |
string | getName () |
Returns the interval's name. | |
NodePath const | getNode () |
Returns the node being lerped. | |
bool | getOpenEnded () |
Returns the state of the "open_ended" flag. | |
NodePath const | getOther () |
Returns the "other" node, which the lerped node is being moved relative to. | |
int | getOverride () |
Returns the override value that will be associated with any state changes applied by the lerp. | |
double | getPlayRate () |
Returns the play rate as set by the last call to start(), loop(), or set_play_rate(). | |
State | getState () |
Indicates the state the interval believes it is in: whether it has been started, is currently in the middle, or has been finalized. | |
double | getT () |
Returns the current time of the interval: the last value of t passed to priv_initialize(), priv_step(), or priv_finalize(). | |
bool | getWantsTCallback () |
Returns the state of the 'wants_t_callback' flag. | |
bool | isPlaying () |
Returns true if the interval is currently playing, false otherwise. | |
bool | isStopped () |
Returns true if the interval is in either its initial or final states (but not in a running or paused state). | |
loop (double start_t, double end_t, double play_rate) | |
Starts the interval playing by registering it with the current CIntervalManager. | |
loop (double start_t, double end_t) | |
Starts the interval playing by registering it with the current CIntervalManager. | |
loop (double start_t) | |
Starts the interval playing by registering it with the current CIntervalManager. | |
loop () | |
Starts the interval playing by registering it with the current CIntervalManager. | |
output (ostream out) | |
double | pause () |
Stops the interval from playing but leaves it in its current state. | |
privDoEvent (double t, EventType event) | |
privFinalize () | |
This is called to stop an interval, forcing it to whatever state it would be after it played all the way through. | |
privInitialize (double t) | |
This replaces the first call to priv_step(), and indicates that the interval has just begun. | |
privInstant () | |
This is called in lieu of priv_initialize() . | |
privInterrupt () | |
This is called while the interval is playing to indicate that it is about to be interrupted; that is, priv_step() will not be called for a length of time. | |
privReverseFinalize () | |
Called generally following a priv_reverse_initialize(), this indicates the interval should set itself to the initial state. | |
privReverseInitialize (double t) | |
Similar to priv_initialize(), but this is called when the interval is being played backwards; it indicates that the interval should start at the finishing state and undo any intervening intervals. | |
privReverseInstant () | |
This is called in lieu of priv_reverse_initialize() | |
privStep (double t) | |
Advances the time on the interval. | |
resume (double start_t) | |
Restarts the interval from the indicated point after a previous call to pause(). | |
resume () | |
Restarts the interval from its current point after a previous call to pause(). | |
resumeUntil (double end_t) | |
Restarts the interval from the current point after a previous call to pause() (or a previous play-to-point-and-stop), to play until the indicated point and then stop. | |
setAutoFinish (bool auto_finish) | |
Changes the state of the 'auto_finish' flag. | |
setAutoPause (bool auto_pause) | |
Changes the state of the 'auto_pause' flag. | |
setDoneEvent (string event) | |
Sets the event that is generated whenever the interval reaches its final state, whether it is explicitly finished or whether it gets there on its own. | |
setEndColor (VBase4 const color) | |
Indicates that the color of the node should be lerped, and specifies the final color of the node. | |
setEndColorScale (VBase4 const color_scale) | |
Indicates that the color scale of the node should be lerped, and specifies the final color scale of the node. | |
setEndHpr (VBase3 const hpr) | |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node. | |
setEndHpr (Quat const quat) | |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node. | |
setEndPos (VBase3 const pos) | |
Indicates that the position of the node should be lerped, and specifies the final position of the node. | |
setEndQuat (Quat const quat) | |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node. | |
setEndQuat (VBase3 const hpr) | |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node. | |
setEndScale (float scale) | |
Indicates that the scale of the node should be lerped, and specifies the final scale of the node. | |
setEndScale (VBase3 const scale) | |
Indicates that the scale of the node should be lerped, and specifies the final scale of the node. | |
setEndShear (VBase3 const shear) | |
Indicates that the shear of the node should be lerped, and specifies the final shear of the node. | |
setEndTexOffset (VBase2 const tex_offset) | |
Indicates that the UV offset of the node should be lerped, and specifies the final UV offset of the node. | |
setEndTexRotate (float tex_rotate) | |
Indicates that the UV rotate of the node should be lerped, and specifies the final UV rotate of the node. | |
setEndTexScale (VBase2 const tex_scale) | |
Indicates that the UV scale of the node should be lerped, and specifies the final UV scale of the node. | |
setManager (CIntervalManager manager) | |
Indicates the CIntervalManager object which will be responsible for playing this interval. | |
setOverride (int override) | |
Changes the override value that will be associated with any state changes applied by the lerp. | |
setPlayRate (double play_rate) | |
Changes the play rate of the interval. | |
setStartColor (VBase4 const color) | |
Indicates the initial color of the lerped node. | |
setStartColorScale (VBase4 const color_scale) | |
Indicates the initial color scale of the lerped node. | |
setStartHpr (VBase3 const hpr) | |
Indicates the initial rotation of the lerped node. | |
setStartPos (VBase3 const pos) | |
Indicates the initial position of the lerped node. | |
setStartQuat (Quat const quat) | |
Indicates the initial rotation of the lerped node. | |
setStartScale (VBase3 const scale) | |
Indicates the initial scale of the lerped node. | |
setStartScale (float scale) | |
Indicates the initial scale of the lerped node. | |
setStartShear (VBase3 const shear) | |
Indicates the initial shear of the lerped node. | |
setStartTexOffset (VBase2 const tex_offset) | |
Indicates the initial UV offset of the lerped node. | |
setStartTexRotate (float tex_rotate) | |
Indicates the initial UV rotate of the lerped node. | |
setStartTexScale (VBase2 const tex_scale) | |
Indicates the initial UV scale of the lerped node. | |
setT (double t) | |
Explicitly sets the time within the interval. | |
setTextureStage (TextureStage stage) | |
Indicates the texture stage that is adjusted by tex_offset, tex_rotate, and/or tex_scale. | |
setupPlay (double start_time, double end_time, double play_rate, bool do_loop) | |
Called to prepare the interval for automatic timed playback, e.g. | |
setupResume () | |
Called to prepare the interval for restarting at the current point within the interval after an interruption. | |
setupResumeUntil (double end_t) | |
Called to prepare the interval for restarting from the current point after a previous call to pause() (or a previous play-to-point-and-stop), to play until the indicated point and then stop. | |
setWantsTCallback (bool wants_t_callback) | |
Changes the state of the 'wants_t_callback' flag. | |
start (double start_t, double end_t) | |
Starts the interval playing by registering it with the current CIntervalManager. | |
start (double start_t) | |
Starts the interval playing by registering it with the current CIntervalManager. | |
start (double start_t, double end_t, double play_rate) | |
Starts the interval playing by registering it with the current CIntervalManager. | |
start () | |
Starts the interval playing by registering it with the current CIntervalManager. | |
bool | stepPlay () |
Should be called once per frame to execute the automatic timed playback begun with setup_play(). | |
write (ostream out, int indent_level) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static BlendType | stringBlendType (string blend_type) |
Returns the BlendType enumerated value corresponding to the indicated string, or BT_invalid if the string doesn't match anything. |
An interval that lerps one or more properties (like pos, hpr, etc.) on a NodePath over time.
enum BlendType [inherited] |
enum EventType [inherited] |
enum State [inherited] |
CLerpNodePathInterval | ( | string | name, |
double | duration, | ||
BlendType | blend_type, | ||
bool | bake_in_start, | ||
bool | fluid, | ||
NodePath const | node, | ||
NodePath const | other | ||
) |
Constructs a lerp interval that will lerp some properties on the indicated node, possibly relative to the indicated other node (if other is nonempty).
You must call set_end_pos(), etc. for the various properties you wish to lerp before the first call to priv_initialize(). If you want to set a starting value for any of the properties, you may call set_start_pos(), etc.; otherwise, the starting value is taken from the actual node's value at the time the lerp is performed.
The starting values may be explicitly specified or omitted. The value of bake_in_start determines the behavior if the starting values are omitted. If bake_in_start is true, the values are obtained the first time the lerp runs, and thenceforth are stored within the interval. If bake_in_start is false, the starting value is computed each frame, based on assuming the current value represents the value set from the last time the interval was run. This "smart" behavior allows code to manipulate the object event while it is being lerped, and the lerp continues to apply in a sensible way.
If fluid is true, the prev_transform is not adjusted by the lerp; otherwise, it is reset.
clearToInitial | ( | ) | [inherited] |
Pauses the interval, if it is playing, and resets its state to its initial state, abandoning any state changes already in progress in the middle of the interval.
Calling this is like pausing the interval and discarding it, creating a new one in its place.
finish | ( | ) | [inherited] |
Stops the interval from playing and sets it to its final state.
bool getAutoFinish | ( | ) | [inherited] |
Returns the state of the 'auto_finish' flag.
See set_auto_finish().
bool getAutoPause | ( | ) | [inherited] |
Returns the state of the 'auto_pause' flag.
See set_auto_pause().
BlendType getBlendType | ( | ) | [inherited] |
Returns the blend type specified for the interval.
This controls how the linear interpolation behaves near the beginning and end of the lerp period.
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from CLerpInterval.
string getDoneEvent | ( | ) | [inherited] |
Returns the event that is generated whenever the interval reaches its final state, whether it is explicitly finished or whether it gets there on its own.
double getDuration | ( | ) | [inherited] |
Returns the duration of the interval in seconds.
CIntervalManager getManager | ( | ) | [inherited] |
Returns the CIntervalManager object which will be responsible for playing this interval.
Note that this can only return a C++ object; if the particular CIntervalManager object has been extended in the scripting language, this will return the encapsulated C++ object, not the full extended object.
string getName | ( | ) | [inherited] |
Returns the interval's name.
NodePath const getNode | ( | ) |
Returns the node being lerped.
bool getOpenEnded | ( | ) | [inherited] |
Returns the state of the "open_ended" flag.
This is primarily intended for instantaneous intervals like FunctionIntervals; it indicates true if the interval has some lasting effect that should be applied even if the interval doesn't get started until after its finish time, or false if the interval is a transitive thing that doesn't need to be called late.
NodePath const getOther | ( | ) |
Returns the "other" node, which the lerped node is being moved relative to.
If this is an empty node path, the lerped node is being moved in its own coordinate system.
int getOverride | ( | ) |
Returns the override value that will be associated with any state changes applied by the lerp.
See set_override().
double getPlayRate | ( | ) | [inherited] |
State getState | ( | ) | [inherited] |
Indicates the state the interval believes it is in: whether it has been started, is currently in the middle, or has been finalized.
double getT | ( | ) | [inherited] |
Returns the current time of the interval: the last value of t passed to priv_initialize(), priv_step(), or priv_finalize().
bool getWantsTCallback | ( | ) | [inherited] |
Returns the state of the 'wants_t_callback' flag.
See set_wants_t_callback().
bool isPlaying | ( | ) | [inherited] |
Returns true if the interval is currently playing, false otherwise.
bool isStopped | ( | ) | [inherited] |
Returns true if the interval is in either its initial or final states (but not in a running or paused state).
loop | ( | double | start_t, |
double | end_t, | ||
double | play_rate | ||
) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play until it is interrupted with finish() or pause(), looping back to start_t when it reaches end_t.
If end_t is less than zero, it indicates the end of the interval.
loop | ( | double | start_t, |
double | end_t | ||
) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play until it is interrupted with finish() or pause(), looping back to start_t when it reaches end_t.
If end_t is less than zero, it indicates the end of the interval.
loop | ( | double | start_t | ) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play until it is interrupted with finish() or pause(), looping back to start_t when it reaches end_t.
If end_t is less than zero, it indicates the end of the interval.
loop | ( | ) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play until it is interrupted with finish() or pause(), looping back to start_t when it reaches end_t.
If end_t is less than zero, it indicates the end of the interval.
output | ( | ostream | out | ) | [inherited] |
double pause | ( | ) | [inherited] |
Stops the interval from playing but leaves it in its current state.
It may later be resumed from this point by calling resume().
privDoEvent | ( | double | t, |
EventType | event | ||
) | [inherited] |
privFinalize | ( | ) | [inherited] |
This is called to stop an interval, forcing it to whatever state it would be after it played all the way through.
It's generally invoked by set_final_t().
privInitialize | ( | double | t | ) | [inherited] |
This replaces the first call to priv_step(), and indicates that the interval has just begun.
This may be overridden by derived classes that need to do some explicit initialization on the first call.
privInstant | ( | ) | [inherited] |
This is called in lieu of priv_initialize() .
. priv_step() .. priv_finalize(), when everything is to happen within one frame. The interval should initialize itself, then leave itself in the final state.
privInterrupt | ( | ) | [inherited] |
This is called while the interval is playing to indicate that it is about to be interrupted; that is, priv_step() will not be called for a length of time.
But the interval should remain in its current state in anticipation of being eventually restarted when the calls to priv_step() eventually resume.
The purpose of this function is to allow self-running intervals like sound intervals to stop the actual sound playback during the pause.
privReverseFinalize | ( | ) | [inherited] |
Called generally following a priv_reverse_initialize(), this indicates the interval should set itself to the initial state.
privReverseInitialize | ( | double | t | ) | [inherited] |
Similar to priv_initialize(), but this is called when the interval is being played backwards; it indicates that the interval should start at the finishing state and undo any intervening intervals.
privReverseInstant | ( | ) | [inherited] |
This is called in lieu of priv_reverse_initialize()
. priv_step() .. priv_reverse_finalize(), when everything is to happen within one frame. The interval should initialize itself, then leave itself in the initial state.
privStep | ( | double | t | ) | [inherited] |
Advances the time on the interval.
The time may either increase (the normal case) or decrease (e.g. if the interval is being played by a slider).
resume | ( | ) | [inherited] |
Restarts the interval from its current point after a previous call to pause().
resume | ( | double | start_t | ) | [inherited] |
Restarts the interval from the indicated point after a previous call to pause().
resumeUntil | ( | double | end_t | ) | [inherited] |
Restarts the interval from the current point after a previous call to pause() (or a previous play-to-point-and-stop), to play until the indicated point and then stop.
setAutoFinish | ( | bool | auto_finish | ) | [inherited] |
Changes the state of the 'auto_finish' flag.
If this is true, the interval may be arbitrarily finished when the system needs to reset due to some external event by calling CIntervalManager.interrupt(). If this is false (the default), the interval must always be explicitly finished or paused.
setAutoPause | ( | bool | auto_pause | ) | [inherited] |
Changes the state of the 'auto_pause' flag.
If this is true, the interval may be arbitrarily interrupted when the system needs to reset due to some external event by calling CIntervalManager.interrupt(). If this is false (the default), the interval must always be explicitly finished or paused.
setDoneEvent | ( | string | event | ) | [inherited] |
Sets the event that is generated whenever the interval reaches its final state, whether it is explicitly finished or whether it gets there on its own.
setEndColor | ( | VBase4 const | color | ) |
Indicates that the color of the node should be lerped, and specifies the final color of the node.
This should be called before priv_initialize(). If this is not called, the node's color will not be affected by the lerp.
setEndColorScale | ( | VBase4 const | color_scale | ) |
Indicates that the color scale of the node should be lerped, and specifies the final color scale of the node.
This should be called before priv_initialize(). If this is not called, the node's color scale will not be affected by the lerp.
setEndHpr | ( | VBase3 const | hpr | ) |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node.
This should be called before priv_initialize().
This replaces a previous call to set_end_quat(). If neither set_end_hpr() nor set_end_quat() is called, the node's rotation will not be affected by the lerp.
setEndHpr | ( | Quat const | quat | ) |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node.
This should be called before priv_initialize().
This special function is overloaded to accept a quaternion, even though the function name is set_end_hpr(). The quaternion will be implicitly converted to a HPR trio, and the lerp will be performed in HPR space, componentwise.
setEndPos | ( | VBase3 const | pos | ) |
Indicates that the position of the node should be lerped, and specifies the final position of the node.
This should be called before priv_initialize(). If this is not called, the node's position will not be affected by the lerp.
setEndQuat | ( | VBase3 const | hpr | ) |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node.
This should be called before priv_initialize().
This replaces a previous call to set_end_hpr(). If neither set_end_quat() nor set_end_hpr() is called, the node's rotation will not be affected by the lerp.
This special function is overloaded to accept a HPR trio, even though the function name is set_end_quat(). The HPR will be implicitly converted to a quaternion, and the lerp will be performed in quaternion space, as a spherical lerp.
setEndQuat | ( | Quat const | quat | ) |
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the node.
This should be called before priv_initialize().
This replaces a previous call to set_end_hpr(). If neither set_end_quat() nor set_end_hpr() is called, the node's rotation will not be affected by the lerp.
setEndScale | ( | float | scale | ) |
Indicates that the scale of the node should be lerped, and specifies the final scale of the node.
This should be called before priv_initialize(). If this is not called, the node's scale will not be affected by the lerp.
setEndScale | ( | VBase3 const | scale | ) |
Indicates that the scale of the node should be lerped, and specifies the final scale of the node.
This should be called before priv_initialize(). If this is not called, the node's scale will not be affected by the lerp.
setEndShear | ( | VBase3 const | shear | ) |
Indicates that the shear of the node should be lerped, and specifies the final shear of the node.
This should be called before priv_initialize(). If this is not called, the node's shear will not be affected by the lerp.
setEndTexOffset | ( | VBase2 const | tex_offset | ) |
Indicates that the UV offset of the node should be lerped, and specifies the final UV offset of the node.
This should be called before priv_initialize(). If this is not called, the node's UV offset will not be affected by the lerp.
setEndTexRotate | ( | float | tex_rotate | ) |
Indicates that the UV rotate of the node should be lerped, and specifies the final UV rotate of the node.
This should be called before priv_initialize(). If this is not called, the node's UV rotate will not be affected by the lerp.
setEndTexScale | ( | VBase2 const | tex_scale | ) |
Indicates that the UV scale of the node should be lerped, and specifies the final UV scale of the node.
This should be called before priv_initialize(). If this is not called, the node's UV scale will not be affected by the lerp.
setManager | ( | CIntervalManager | manager | ) | [inherited] |
Indicates the CIntervalManager object which will be responsible for playing this interval.
This defaults to the global CIntervalManager; you should need to change this only if you have special requirements for playing this interval.
setOverride | ( | int | override | ) |
Changes the override value that will be associated with any state changes applied by the lerp.
If this lerp is changing state (for instance, a color lerp or a tex matrix lerp), then the new attributes created by this lerp will be assigned the indicated override value when they are applied to the node.
setPlayRate | ( | double | play_rate | ) | [inherited] |
setStartColor | ( | VBase4 const | color | ) |
Indicates the initial color of the lerped node.
This is meaningful only if set_end_color() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual color at the time the lerp is performed.
setStartColorScale | ( | VBase4 const | color_scale | ) |
Indicates the initial color scale of the lerped node.
This is meaningful only if set_end_color_scale() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual color scale at the time the lerp is performed.
setStartHpr | ( | VBase3 const | hpr | ) |
Indicates the initial rotation of the lerped node.
This is meaningful only if either set_end_hpr() or set_end_quat() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual rotation at the time the lerp is performed.
setStartPos | ( | VBase3 const | pos | ) |
Indicates the initial position of the lerped node.
This is meaningful only if set_end_pos() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual position at the time the lerp is performed.
setStartQuat | ( | Quat const | quat | ) |
Indicates the initial rotation of the lerped node.
This is meaningful only if either set_end_quat() or set_end_hpr() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual rotation at the time the lerp is performed.
setStartScale | ( | VBase3 const | scale | ) |
Indicates the initial scale of the lerped node.
This is meaningful only if set_end_scale() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual scale at the time the lerp is performed.
setStartScale | ( | float | scale | ) |
Indicates the initial scale of the lerped node.
This is meaningful only if set_end_scale() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual scale at the time the lerp is performed.
setStartShear | ( | VBase3 const | shear | ) |
Indicates the initial shear of the lerped node.
This is meaningful only if set_end_shear() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual shear at the time the lerp is performed.
setStartTexOffset | ( | VBase2 const | tex_offset | ) |
Indicates the initial UV offset of the lerped node.
This is meaningful only if set_end_tex_offset() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual UV offset at the time the lerp is performed.
setStartTexRotate | ( | float | tex_rotate | ) |
Indicates the initial UV rotate of the lerped node.
This is meaningful only if set_end_tex_rotate() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual UV rotate at the time the lerp is performed.
setStartTexScale | ( | VBase2 const | tex_scale | ) |
Indicates the initial UV scale of the lerped node.
This is meaningful only if set_end_tex_scale() is also called. This parameter is optional; if unspecified, the value will be taken from the node's actual UV scale at the time the lerp is performed.
setT | ( | double | t | ) | [inherited] |
setTextureStage | ( | TextureStage | stage | ) |
Indicates the texture stage that is adjusted by tex_offset, tex_rotate, and/or tex_scale.
If this is not set, the default is the default texture stage.
setupPlay | ( | double | start_time, |
double | end_time, | ||
double | play_rate, | ||
bool | do_loop | ||
) | [inherited] |
Called to prepare the interval for automatic timed playback, e.g.
via a Python task. The interval will be played from start_t to end_t, at a time factor specified by play_rate. start_t must always be less than end_t (except for the exception for end_t == -1, below), but if play_rate is negative the interval will be played backwards.
Specify end_t of -1 to play the entire interval from start_t.
Call step_play() repeatedly to execute the interval.
setupResume | ( | ) | [inherited] |
Called to prepare the interval for restarting at the current point within the interval after an interruption.
setupResumeUntil | ( | double | end_t | ) | [inherited] |
Called to prepare the interval for restarting from the current point after a previous call to pause() (or a previous play-to-point-and-stop), to play until the indicated point and then stop.
setWantsTCallback | ( | bool | wants_t_callback | ) | [inherited] |
Changes the state of the 'wants_t_callback' flag.
If this is true, the interval will be returned by CIntervalManager.get_event() each time the interval's time value has been changed, regardless of whether it has any external events.
start | ( | double | start_t, |
double | end_t | ||
) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play to the end and stop.
If end_t is less than zero, it indicates the end of the interval.
start | ( | ) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play to the end and stop.
If end_t is less than zero, it indicates the end of the interval.
start | ( | double | start_t | ) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play to the end and stop.
If end_t is less than zero, it indicates the end of the interval.
start | ( | double | start_t, |
double | end_t, | ||
double | play_rate | ||
) | [inherited] |
Starts the interval playing by registering it with the current CIntervalManager.
The interval will play to the end and stop.
If end_t is less than zero, it indicates the end of the interval.
bool stepPlay | ( | ) | [inherited] |
Should be called once per frame to execute the automatic timed playback begun with setup_play().
Returns true if the interval should continue, false if it is done and should stop.
static BlendType stringBlendType | ( | string | blend_type | ) | [static, inherited] |
Returns the BlendType enumerated value corresponding to the indicated string, or BT_invalid if the string doesn't match anything.
write | ( | ostream | out, |
int | indent_level | ||
) | [inherited] |