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

[AI] Animation key class for scaling transformations. More...

#include <legoanim.h>

Inheritance diagram for LegoScaleKey:
Collaboration diagram for LegoScaleKey:

Public Member Functions

 LegoScaleKey ()
 [AI] Constructs a scale key (default: scale factor 1,1,1). More...
 
LegoResult Read (LegoStorage *p_storage)
 [AI] Deserializes the scale key from storage. More...
 
LegoResult Write (LegoStorage *p_storage)
 [AI] Serializes the scale key to storage. More...
 
LegoFloat GetX ()
 [AI] Gets the scaling X factor. More...
 
void SetX (LegoFloat p_x)
 [AI] Sets the scaling X factor. More...
 
LegoFloat GetY ()
 [AI] Gets the scaling Y factor. More...
 
void SetY (LegoFloat p_y)
 [AI] Sets the scaling Y factor. More...
 
LegoFloat GetZ ()
 [AI] Gets the scaling Z factor. More...
 
void SetZ (LegoFloat p_z)
 [AI] Sets the scaling Z factor. 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_x
 [AI] Scale along the X-axis. More...
 
LegoFloat m_y
 [AI] Scale along the Y-axis. More...
 
LegoFloat m_z
 [AI] Scale along the Z-axis. 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 scaling transformations.

[AI] Contains scaling factors for X, Y, and Z axes.

Definition at line 95 of file legoanim.h.

Constructor & Destructor Documentation

◆ LegoScaleKey()

LegoScaleKey::LegoScaleKey ( )

[AI] Constructs a scale key (default: scale factor 1,1,1).

Definition at line 454 of file legoanim.cpp.

Member Function Documentation

◆ GetX()

LegoFloat LegoScaleKey::GetX ( )
inline

[AI] Gets the scaling X factor.

Definition at line 100 of file legoanim.h.

◆ GetY()

LegoFloat LegoScaleKey::GetY ( )
inline

[AI] Gets the scaling Y factor.

Definition at line 102 of file legoanim.h.

◆ GetZ()

LegoFloat LegoScaleKey::GetZ ( )
inline

[AI] Gets the scaling Z factor.

Definition at line 104 of file legoanim.h.

◆ Read()

LegoResult LegoScaleKey::Read ( LegoStorage p_storage)

[AI] Deserializes the scale key from storage.

Parameters
p_storageStorage to read from. [AI]

Definition at line 462 of file legoanim.cpp.

◆ SetX()

void LegoScaleKey::SetX ( LegoFloat  p_x)
inline

[AI] Sets the scaling X factor.

Definition at line 101 of file legoanim.h.

◆ SetY()

void LegoScaleKey::SetY ( LegoFloat  p_y)
inline

[AI] Sets the scaling Y factor.

Definition at line 103 of file legoanim.h.

◆ SetZ()

void LegoScaleKey::SetZ ( LegoFloat  p_z)
inline

[AI] Sets the scaling Z factor.

Definition at line 105 of file legoanim.h.

◆ Write()

LegoResult LegoScaleKey::Write ( LegoStorage p_storage)

[AI] Serializes the scale key to storage.

Parameters
p_storageStorage to write to. [AI]

Definition at line 491 of file legoanim.cpp.

Member Data Documentation

◆ m_x

LegoFloat LegoScaleKey::m_x
protected

[AI] Scale along the X-axis.

Definition at line 108 of file legoanim.h.

◆ m_y

LegoFloat LegoScaleKey::m_y
protected

[AI] Scale along the Y-axis.

Definition at line 109 of file legoanim.h.

◆ m_z

LegoFloat LegoScaleKey::m_z
protected

[AI] Scale along the Z-axis.

Definition at line 110 of file legoanim.h.


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