animation/animators/
visgranimator__define.pro
Base animator.
Class description for visgranimator
Subclasses: visgrparallelanimator visgrscaleanimator visgrsequenceanimator visgrtranslateanimator
Properties
- target get set init
target object of the animator
- duration get set init
the duration of the animator in seconds; defaults to 1.0 second
- nframes get set init
the number of frames produces by the animator; defaults to 100 frames
- easing get set init
easing object to use for transitions; defaults to a linear easing
Routines
visgranimator::animate, progress
Do one frame of animation.
visgranimator::reset
Reset the animator.
visgranimator::getProperty, target=target, duration=duration, nframes=nframes, easing=easing
Get properties.
visgranimator::setProperty, target=target, duration=duration, nframes=nframes, easing=easing
Set properties.
visgranimator::cleanup
Free resources.
result = visgranimator::init(target=target, duration=duration, nframes=nframes, easing=easing)
Create an animator.
visgranimator__define
Define instance variables.
Routine details
top visgranimator::animate
visgranimator::animate, progress
Do one frame of animation. VISgrAnimator has a null animation.
Parameters
- progress in required type=float
progress from 0.0 to 1.0
top visgranimator::getProperty
visgranimator::getProperty, target=target, duration=duration, nframes=nframes, easing=easing
Get properties.
Keywords
- target
target object of the animator
- duration
the duration of the animator in seconds; defaults to 1.0 second
- nframes
the number of frames produces by the animator; defaults to 100 frames
- easing
easing object to use for transitions; defaults to a linear easing
top visgranimator::setProperty
visgranimator::setProperty, target=target, duration=duration, nframes=nframes, easing=easing
Set properties.
Keywords
- target
target object of the animator
- duration
the duration of the animator in seconds; defaults to 1.0 second
- nframes
the number of frames produces by the animator; defaults to 100 frames
- easing
easing object to use for transitions; defaults to a linear easing
top visgranimator::init
result = visgranimator::init(target=target, duration=duration, nframes=nframes, easing=easing)
Create an animator.
Return value
1 for success, 0 for failure
Keywords
- target
target object of the animator
- duration
the duration of the animator in seconds; defaults to 1.0 second
- nframes
the number of frames produces by the animator; defaults to 100 frames
- easing
easing object to use for transitions; defaults to a linear easing
File attributes
Modification date: | Mon Nov 29 18:32:10 2010 |
Lines: | 124 |
Docformat: | rst rst |