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

[AI] Manages the lifecycle, lookup, and sharing of ViewLODList instances for different ROI names. More...

#include <viewlodlist.h>

Public Member Functions

 ViewLODListManager ()
 [AI] Constructs a ViewLODListManager; initializes internal structures. More...
 
virtual ~ViewLODListManager ()
 [AI] Destroys the manager and all ViewLODLists it owns, ensuring proper cleanup of all managed instances. More...
 
ViewLODListCreate (const ROIName &rROIName, int lodCount)
 [AI] Creates and registers a new ViewLODList for a named ROI, with space for the specified number of LODs. More...
 
ViewLODListLookup (const ROIName &) const
 [AI] Looks up an existing ViewLODList by ROI name, incrementing its reference count. More...
 
unsigned char Destroy (ViewLODList *lodList)
 [AI] Destroys (removes and deletes) the given ViewLODList from the manager. More...
 

Detailed Description

[AI] Manages the lifecycle, lookup, and sharing of ViewLODList instances for different ROI names.

[AI] Ensures that ViewLODList objects are created uniquely per ROI name and shared using reference counting. Responsible for deletion and lifetime management of all shared ViewLODLists.

Definition at line 111 of file viewlodlist.h.

Constructor & Destructor Documentation

◆ ViewLODListManager()

ViewLODListManager::ViewLODListManager ( )

[AI] Constructs a ViewLODListManager; initializes internal structures.

Definition at line 32 of file viewlodlist.cpp.

◆ ~ViewLODListManager()

ViewLODListManager::~ViewLODListManager ( )
virtual

[AI] Destroys the manager and all ViewLODLists it owns, ensuring proper cleanup of all managed instances.

Definition at line 39 of file viewlodlist.cpp.

Member Function Documentation

◆ Create()

ViewLODList * ViewLODListManager::Create ( const ROIName rROIName,
int  lodCount 
)

[AI] Creates and registers a new ViewLODList for a named ROI, with space for the specified number of LODs.

Parameters
rROIName[AI] Name of the ROI to associate with the new LOD list. Must be unique.
lodCount[AI] How many LODs to reserve space for.
Returns
[AI] Pointer to the newly created ViewLODList (with reference count initialized to 1).

[AI] Caller must call Release() when done with the returned list; if a list with the same name already exists, a new unique name is generated.

Definition at line 67 of file viewlodlist.cpp.

◆ Destroy()

unsigned char ViewLODListManager::Destroy ( ViewLODList lodList)

[AI] Destroys (removes and deletes) the given ViewLODList from the manager.

Called automatically via ViewLODList reference counting.

Parameters
lodList[AI] The ViewLODList to remove and deallocate.
Returns
[AI] TRUE if successfully deleted, FALSE otherwise.

Definition at line 128 of file viewlodlist.cpp.

◆ Lookup()

ViewLODList * ViewLODListManager::Lookup ( const ROIName p_roiName) const

[AI] Looks up an existing ViewLODList by ROI name, incrementing its reference count.

Parameters
[in][AI]ROI name key.
Returns
[AI] The found ViewLODList, or NULL if not found. Reference count is incremented.

[AI] Caller is responsible for calling Release() on the returned ViewLODList.

Definition at line 108 of file viewlodlist.cpp.


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