|
Isle
|
[AI] Animation key class for rotations (axis-angle format). More...
#include <legoanim.h>


Public Member Functions | |
| LegoRotationKey () | |
| [AI] Constructs a rotation key with default (identity) rotation. More... | |
| LegoResult | Read (LegoStorage *p_storage) |
| [AI] Deserializes the rotation key from storage. More... | |
| LegoResult | Write (LegoStorage *p_storage) |
| [AI] Serializes the rotation key to storage. More... | |
| LegoFloat | GetAngle () |
| [AI] Gets the rotation angle (around the axis). More... | |
| void | SetAngle (LegoFloat p_angle) |
| [AI] Sets the rotation angle. More... | |
| LegoFloat | GetX () |
| [AI] Gets the X-axis of the rotation. More... | |
| void | SetX (LegoFloat p_x) |
| [AI] Sets the X-axis of the rotation. More... | |
| LegoFloat | GetY () |
| [AI] Gets the Y-axis of the rotation. More... | |
| void | SetY (LegoFloat p_y) |
| [AI] Sets the Y-axis of the rotation. More... | |
| LegoFloat | GetZ () |
| [AI] Gets the Z-axis of the rotation. More... | |
| void | SetZ (LegoFloat p_z) |
| [AI] Sets the Z-axis of the rotation. More... | |
Public Member Functions inherited from LegoAnimKey | |
| LegoAnimKey () | |
| [AI] Constructs an animation key with zero time and cleared flags. More... | |
| LegoResult | Read (LegoStorage *p_storage) |
| [AI] Deserializes the animation key from storage. More... | |
| LegoResult | Write (LegoStorage *p_storage) |
| [AI] Serializes the animation key to storage. More... | |
| LegoFloat | GetTime () |
| [AI] Retrieves the time (frame/tick) of this key. More... | |
| void | SetTime (MxS32 p_time) |
| [AI] Sets the key's time (from an integer value, used during deserialization or legacy data). More... | |
| LegoU32 | TestBit1 () |
| [AI] Tests if flag bit1 is set. More... | |
| LegoU32 | TestBit2 () |
| [AI] Tests if flag bit2 is set. More... | |
| LegoU32 | TestBit3 () |
| [AI] Tests if flag bit3 is set. More... | |
| void | FUN_100739a0 (MxS32 p_param) |
| [AI] Sets or clears bit1 depending on the parameter. More... | |
Protected Attributes | |
| LegoFloat | m_angle |
| [AI] Axis-angle rotation: the angle value. More... | |
| LegoFloat | m_x |
| [AI] Axis-angle rotation: X component. More... | |
| LegoFloat | m_y |
| [AI] Axis-angle rotation: Y component. More... | |
| LegoFloat | m_z |
| [AI] Axis-angle rotation: Z component. More... | |
Protected Attributes inherited from LegoAnimKey | |
| LegoU8 | m_flags |
| [AI] Flags controlling key behavior or interpolation (see Flags enum). More... | |
| LegoFloat | m_time |
| [AI] Time/sample/frame when this key occurs. More... | |
Additional Inherited Members | |
Public Types inherited from LegoAnimKey | |
| enum | Flags { c_bit1 = 0x01 , c_bit2 = 0x02 , c_bit3 = 0x04 } |
| [AI] Bitmask flag definitions for animation keys. More... | |
[AI] Animation key class for rotations (axis-angle format).
[AI] Contains axis (X, Y, Z) and angle (radians or normalized value), defining a rotation to be interpolated.
Definition at line 71 of file legoanim.h.
| LegoRotationKey::LegoRotationKey | ( | ) |
[AI] Constructs a rotation key with default (identity) rotation.
Definition at line 384 of file legoanim.cpp.
|
inline |
[AI] Gets the rotation angle (around the axis).
Definition at line 77 of file legoanim.h.
|
inline |
[AI] Gets the X-axis of the rotation.
Definition at line 79 of file legoanim.h.
|
inline |
[AI] Gets the Y-axis of the rotation.
Definition at line 81 of file legoanim.h.
|
inline |
[AI] Gets the Z-axis of the rotation.
Definition at line 83 of file legoanim.h.
| LegoResult LegoRotationKey::Read | ( | LegoStorage * | p_storage | ) |
[AI] Deserializes the rotation key from storage.
| p_storage | Storage to read from. [AI] |
Definition at line 393 of file legoanim.cpp.
|
inline |
[AI] Sets the rotation angle.
Definition at line 78 of file legoanim.h.
|
inline |
[AI] Sets the X-axis of the rotation.
Definition at line 80 of file legoanim.h.
|
inline |
[AI] Sets the Y-axis of the rotation.
Definition at line 82 of file legoanim.h.
|
inline |
[AI] Sets the Z-axis of the rotation.
Definition at line 84 of file legoanim.h.
| LegoResult LegoRotationKey::Write | ( | LegoStorage * | p_storage | ) |
[AI] Serializes the rotation key to storage.
| p_storage | Storage to write to. [AI] |
Definition at line 426 of file legoanim.cpp.
|
protected |
[AI] Axis-angle rotation: the angle value.
Definition at line 87 of file legoanim.h.
|
protected |
[AI] Axis-angle rotation: X component.
Definition at line 88 of file legoanim.h.
|
protected |
[AI] Axis-angle rotation: Y component.
Definition at line 89 of file legoanim.h.
|
protected |
[AI] Axis-angle rotation: Z component.
Definition at line 90 of file legoanim.h.