Isle
|
[AI] Represents a named 3D plane with orientation and position, used to describe places or camera targets in LEGO Island's world. More...
#include <legonamedplane.h>
Public Member Functions | |
LegoNamedPlane () | |
[AI] Default constructor that initializes an unnamed plane. More... | |
const char * | GetName () const |
[AI] Default destructor (implementation likely trivial). More... | |
const Mx3DPointFloat & | GetPosition () |
[AI] Get the 3D position of this plane in world coordinates. More... | |
const Mx3DPointFloat & | GetDirection () |
[AI] Get the normalized direction (forward) vector of the plane. More... | |
const Mx3DPointFloat & | GetUp () |
[AI] Get the normalized "up" vector of the plane, defining its orientation. More... | |
void | SetName (const char *p_name) |
[AI] Set the name identifier for this plane. More... | |
void | SetPosition (const Mx3DPointFloat &p_position) |
[AI] Set the 3D position of the plane. More... | |
void | SetDirection (const Mx3DPointFloat &p_direction) |
[AI] Set the direction (forward) vector of the plane. More... | |
void | SetUp (const Mx3DPointFloat &p_up) |
[AI] Set the "up" vector of the plane. More... | |
MxBool | IsPresent () |
[AI] Determines whether the plane instance is valid (present) based on its name. More... | |
void | Reset () |
[AI] Reset the plane to "not present" by clearing its name. More... | |
MxResult | Serialize (LegoStorage *p_storage) |
[AI] Serialize or deserialize the plane data to or from a LegoStorage object. More... | |
Public Attributes | |
MxString | m_name |
[AI] Name identifier for this plane (used for lookups and scripting). More... | |
Mx3DPointFloat | m_position |
[AI] 3D position of the plane in world space. More... | |
Mx3DPointFloat | m_direction |
[AI] Direction (forward/facing) vector for the plane orientation. More... | |
Mx3DPointFloat | m_up |
[AI] "Up" vector for the plane, defines its local up direction. More... | |
[AI] Represents a named 3D plane with orientation and position, used to describe places or camera targets in LEGO Island's world.
This structure encapsulates a plane in 3D space by providing a name, a position, a direction vector (the facing/forward vector), and an up vector to fully specify its orientation. It's serializable to and from LegoStorage, making it suitable for game state save/load and scripting purposes. [AI]
Definition at line 19 of file legonamedplane.h.
|
inline |
[AI] Default constructor that initializes an unnamed plane.
[AI]
Definition at line 23 of file legonamedplane.h.
|
inline |
[AI] Get the normalized direction (forward) vector of the plane.
[AI]
Definition at line 50 of file legonamedplane.h.
|
inline |
[AI] Default destructor (implementation likely trivial).
[AI]
[AI] Retrieve the name identifier for this plane. [AI]
Definition at line 38 of file legonamedplane.h.
|
inline |
[AI] Get the 3D position of this plane in world coordinates.
[AI]
Definition at line 44 of file legonamedplane.h.
|
inline |
[AI] Get the normalized "up" vector of the plane, defining its orientation.
[AI]
Definition at line 56 of file legonamedplane.h.
|
inline |
[AI] Determines whether the plane instance is valid (present) based on its name.
A plane is present if its name is not empty. [AI]
Definition at line 89 of file legonamedplane.h.
|
inline |
[AI] Reset the plane to "not present" by clearing its name.
[AI]
Definition at line 94 of file legonamedplane.h.
|
inline |
[AI] Serialize or deserialize the plane data to or from a LegoStorage object.
If the storage is in write mode, writes the members (name, position, direction, up). In read mode, reads in the same order. Used for saving/loading state and scripting. [AI]
p_storage | Pointer to the LegoStorage for serialization. [AI] |
Definition at line 105 of file legonamedplane.h.
|
inline |
[AI] Set the direction (forward) vector of the plane.
[AI]
p_direction | Reference to the new direction vector. [AI] |
Definition at line 74 of file legonamedplane.h.
|
inline |
[AI] Set the name identifier for this plane.
[AI]
p_name | Null-terminated string for the new name. [AI] |
Definition at line 62 of file legonamedplane.h.
|
inline |
[AI] Set the 3D position of the plane.
[AI]
p_position | Reference to the new position value. [AI] |
Definition at line 68 of file legonamedplane.h.
|
inline |
[AI] Set the "up" vector of the plane.
[AI]
p_up | Reference to the new up vector. [AI] |
Definition at line 80 of file legonamedplane.h.
Mx3DPointFloat LegoNamedPlane::m_direction |
[AI] Direction (forward/facing) vector for the plane orientation.
[AI]
Definition at line 136 of file legonamedplane.h.
MxString LegoNamedPlane::m_name |
[AI] Name identifier for this plane (used for lookups and scripting).
[AI]
Definition at line 126 of file legonamedplane.h.
Mx3DPointFloat LegoNamedPlane::m_position |
Mx3DPointFloat LegoNamedPlane::m_up |
[AI] "Up" vector for the plane, defines its local up direction.
[AI]
Definition at line 141 of file legonamedplane.h.