2.8.66 TimeRotationBehaviorAtom

Referenced by: TimeRotationBehaviorContainer

An atom record that specifies animation information for object rotation.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

rh

...

A

B

C

D

reserved

fBy

fFrom

fTo

rotationDirection

rh (8 bytes): A RecordHeader structure (section 2.3.1) that specifies the header for this record. Sub-fields are further specified in the following table.

Field

Meaning

rh.recVer

MUST be 0x0.

rh.recInstance

MUST be 0x000.

rh.recType

MUST be an RT_TimeRotationBehavior.

rh.recLen

MUST be 0x00000014.

 

A - fByPropertyUsed (1 bit): A bit that specifies whether fBy was explicitly set by a user interface action.

B - fFromPropertyUsed (1 bit): A bit that specifies whether fFrom was explicitly set by a user interface action. If fFromPropertyUsed is TRUE, fByPropertyUsed or fToPropertyUsed MUST also be TRUE.

C - fToPropertyUsed (1 bit): A bit that specifies whether fTo was explicitly set by a user interface action.

D - fDirectionPropertyUsed (1 bit): A bit that specifies whether rotationDirection was explicitly set by a user interface action.

reserved (28 bits): MUST be zero, and MUST be ignored.

fBy (4 bytes): A floating-point number that specifies the offset degree of rotation. It MUST be ignored if fByPropertyUsed is FALSE or if fToPropertyUsed is TRUE.

fFrom (4 bytes): A floating-point number that specifies the starting degree of rotation. It MUST be ignored if fFromPropertyUsed is FALSE and a value of 0 MUST be used instead.

fTo (4 bytes): A floating-point number that specifies the end degree of rotation. It MUST be ignored if fToPropertyUsed is FALSE and a value of 360 MUST be used instead.

rotationDirection (4 bytes): An unsigned integer that specifies the rotation direction. It MUST be ignored if fDirectionPropertyUsed is FALSE and a value of 0x00000000 MUST be used instead. It MUST be a value from the following table.

Value

Meaning

0x00000000

Rotate clockwise.

0x00000001

Rotate counter clockwise.