Isle
Loading...
Searching...
No Matches
LegoRotationKey Class Reference

[AI] Animation key class for rotations (axis-angle format). More...

#include <legoanim.h>

Inheritance diagram for LegoRotationKey:
Collaboration diagram for LegoRotationKey:

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...
 

Detailed Description

[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.

Constructor & Destructor Documentation

◆ LegoRotationKey()

LegoRotationKey::LegoRotationKey ( )

[AI] Constructs a rotation key with default (identity) rotation.

Definition at line 384 of file legoanim.cpp.

Member Function Documentation

◆ GetAngle()

LegoFloat LegoRotationKey::GetAngle ( )
inline

[AI] Gets the rotation angle (around the axis).

Definition at line 77 of file legoanim.h.

◆ GetX()

LegoFloat LegoRotationKey::GetX ( )
inline

[AI] Gets the X-axis of the rotation.

Definition at line 79 of file legoanim.h.

◆ GetY()

LegoFloat LegoRotationKey::GetY ( )
inline

[AI] Gets the Y-axis of the rotation.

Definition at line 81 of file legoanim.h.

◆ GetZ()

LegoFloat LegoRotationKey::GetZ ( )
inline

[AI] Gets the Z-axis of the rotation.

Definition at line 83 of file legoanim.h.

◆ Read()

LegoResult LegoRotationKey::Read ( LegoStorage p_storage)

[AI] Deserializes the rotation key from storage.

Parameters
p_storageStorage to read from. [AI]

Definition at line 393 of file legoanim.cpp.

◆ SetAngle()

void LegoRotationKey::SetAngle ( LegoFloat  p_angle)
inline

[AI] Sets the rotation angle.

Definition at line 78 of file legoanim.h.

◆ SetX()

void LegoRotationKey::SetX ( LegoFloat  p_x)
inline

[AI] Sets the X-axis of the rotation.

Definition at line 80 of file legoanim.h.

◆ SetY()

void LegoRotationKey::SetY ( LegoFloat  p_y)
inline

[AI] Sets the Y-axis of the rotation.

Definition at line 82 of file legoanim.h.

◆ SetZ()

void LegoRotationKey::SetZ ( LegoFloat  p_z)
inline

[AI] Sets the Z-axis of the rotation.

Definition at line 84 of file legoanim.h.

◆ Write()

LegoResult LegoRotationKey::Write ( LegoStorage p_storage)

[AI] Serializes the rotation key to storage.

Parameters
p_storageStorage to write to. [AI]

Definition at line 426 of file legoanim.cpp.

Member Data Documentation

◆ m_angle

LegoFloat LegoRotationKey::m_angle
protected

[AI] Axis-angle rotation: the angle value.

Definition at line 87 of file legoanim.h.

◆ m_x

LegoFloat LegoRotationKey::m_x
protected

[AI] Axis-angle rotation: X component.

Definition at line 88 of file legoanim.h.

◆ m_y

LegoFloat LegoRotationKey::m_y
protected

[AI] Axis-angle rotation: Y component.

Definition at line 89 of file legoanim.h.

◆ m_z

LegoFloat LegoRotationKey::m_z
protected

[AI] Axis-angle rotation: Z component.

Definition at line 90 of file legoanim.h.


The documentation for this class was generated from the following files: