The Animator3ds type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Animator3ds | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| DoAnimate |
The main method that does the animation. This method should be called every time user wants to show the next frame.
This method is usually called from a CompositionTarget.Rendering or DispatherTimerevent handler.
| |
| GoToFrame |
Goes to the frameNo. This method can be called when the animation is running or when it is stopped.
| |
| Reset |
Resets the animation and shows the first frame.
| |
| Stop |
Stops the animation. After stopping animation can continue from the current frame on - with just calling DoAnimate method.
|
Properties
| Name | Description | |
|---|---|---|
| AnimationDuration |
Gets or sets the time in second how long will the whole animation be playing (once from the first to the last frame).
Setting this value also changes ModelFramesPerSecond accordingly.
| |
| AutoRepeat |
Gets or set if the animation should automatically repeat itself or not.
Default value is true.
| |
| AutoReverse |
Gets or sets if animation should go backwards when coming to the last frame or should it start from beginning.
Default value is false.
| |
| AverageFramesPerSecond |
Gets the average rendered frames per second. The value is calculated from the data in the last played animation.
| |
| LastFrame |
Gets the last rendered frame number
| |
| ModelFramesPerSecond |
Gets or sets how many 3ds file frames per second are played - faster (bigger value) or slower (smaller value) animation.
Setting ModelFramesPerSecond also changes AnimationDuration accordingly.
Note that this is not the same as rendered frames per second that means more or less smooth animation.
Default value is 10
|
Events
| Name | Description | |
|---|---|---|
| FramesPerSecondUpdated |
Event that can be used to display the current frames per second.
|