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

[AI] Encapsulates a named part within a LEGO object that contains a list of LODs (Levels of Detail). More...

#include <legonamedpart.h>

Public Member Functions

 LegoNamedPart (const char *p_name, LegoLODList *p_list)
 [AI] Constructs a LegoNamedPart with a given name and list of LODs. More...
 
 ~LegoNamedPart ()
 [AI] Destructor, cleans up all LOD objects and the LOD list. More...
 
const MxStringGetName () const
 [AI] Gets the name of this named part. More...
 
LegoLODListGetList ()
 [AI] Accesses the list of LODs associated with this part. More...
 

Detailed Description

[AI] Encapsulates a named part within a LEGO object that contains a list of LODs (Levels of Detail).

This class provides an association between a part's name and its corresponding list of LOD geometries. It serves as a component within the LOD system, allowing named access and lifecycle management of a group of LOD objects. [AI]

Definition at line 18 of file legonamedpart.h.

Constructor & Destructor Documentation

◆ LegoNamedPart()

LegoNamedPart::LegoNamedPart ( const char *  p_name,
LegoLODList p_list 
)
inline

[AI] Constructs a LegoNamedPart with a given name and list of LODs.

Parameters
p_nameThe name of the part. [AI]
p_listList of LOD (Level of Detail) objects associated with this part. [AI]

[AI] The input p_name is copied to m_name, and p_list becomes the managed LOD list for this part.

Definition at line 26 of file legonamedpart.h.

◆ ~LegoNamedPart()

LegoNamedPart::~LegoNamedPart ( )
inline

[AI] Destructor, cleans up all LOD objects and the LOD list.

[AI] Iterates through the LOD list and deletes all owned LegoLOD objects, detaching each one before deleting the LOD list itself to ensure proper resource management.

Definition at line 37 of file legonamedpart.h.

Member Function Documentation

◆ GetList()

LegoLODList * LegoNamedPart::GetList ( )
inline

[AI] Accesses the list of LODs associated with this part.

Returns
Pointer to the LegoLODList for this named part. [AI]

Definition at line 60 of file legonamedpart.h.

◆ GetName()

const MxString * LegoNamedPart::GetName ( ) const
inline

[AI] Gets the name of this named part.

Returns
Pointer to the MxString holding the name of the part. [AI]

Definition at line 54 of file legonamedpart.h.


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