Class Name: Animation Behavior

Superclass - SEDRIS Abstract Base

Definition

A component of Animation Related Geometry. This class contains all the information necessary to define time sequence, and the frames involved.

Primary Page in DRM Diagram:

Example

  1. An animation of an explosion could have many different sections. One section could represent the explosion, another section the fire, and another section smoke. The fields of this class give the duration of each frame and the beginning and ending frame sequence.
  2. The Animation Related Geometry class would have 60 ordered Geometry Hierarchies as components. The first Animation Behavior (explosion) would define frames 1 through 20 in its animation sequence. The second Animation Behavior (fire) would define frames 21 through 40 in its animation sequence. The third Animation Behavior (smoke) would define frames 41 through 60 as its sequence, with the count set to 0. The effect would be to see the animation of the explosion followed by the fire, followed by the smoke. The smoke would last forever, since its count was set to 0.

FAQs

Can animation sequences be chained together?
Yes. The Animation Related Geometry class can have one or more ordered classes of Animation Behavior as components. In the example (below) of an explosion, each one of the sections (i.e. explosion, fire, and smoke) can be its own Animation Behavior. Because the Animation Behaviors are ordered, they behave as though they are chained together, one following the other.

Can the frames in different animation sequences overlap?
Yes.

Constraints

None.

Component of (one-way)

Field Elements

SE_FLOAT64 period; (notes)
SE_UINT16 count; (notes)
SE_BOOLEAN forward_sequence_mode; (notes)
SE_PINT16 beginning_frame; (notes)
SE_PINT16 ending_frame; (notes)
SE_BOOLEAN random_beginning_frame; (notes)

Notes

Fields Notes

period

 duration (in seconds) of each frame

count

 the number of times that the animation sequence will repeat
 (0 = forever)

forward_sequence_mode

 If SE_TRUE the animation sequence cycles from beginning to end,
 beginning to end, beginning to end, etc. (standard cycling)
 If SE_FALSE the animation sequence cycles from beginning to end, end
 to beginning, beginning to end, end to beginning, etc. (swing mode)

beginning_frame

 the index of the beginning frame (1 to n)

ending_frame

 the index of the ending frame (1 to n)

random_beginning_frame

 flag (default SE_FALSE=not random)
 SE_TRUE indicates that the beginning frame is chosen randomly.
 When random_beginning_frame=SE_FALSE the beginning frame is ignored,
 and the sequence cycles towards the ending frame.

Prev: Ambient Color. Next: Animation Related Geometry. Up:Index.