Kaim::GeneratorSector Class Reference
#include <generatorsector.h>
The GeneratorSector class provides a definition for a single sector to be treated by the Generator.
It contains the sector configuration and the generated NavData.
Typically a GeneratorSector can be obtained from a GeneratorInputOutput instance using AddSector() or one of the GetSector() method.
Inherits Kaim::RefCountBaseNTS< C, Stat >.
Reset the GeneratorSector as if is was just default constructed.
NOTE: Copy Constructor and Copy Assignment Operator are those generated automatically. They perform SHALLOW Copy. original and copy will point to the same instances of: void* m_userData; Ptr<> m_refCountedUserData; Ptr<> m_navData; Ptr<> m_navDataPatch; To make sure those members are NULL, call ClearPointedData() after Copy Constructor or Copy Assignment Operator
Kaim::GeneratorSector::GeneratorSector |
( |
const KyGuid & |
sectorGuid, |
|
|
const char * |
sectorName |
|
) |
| |
Retrieve a pointer to the ColData that was generated for this sector, or KY_NULL if the ColData is not available or has not been generated yet.
The ColData provided is not bound to any Kaim::World and needs to be added manually in order to use it
String Kaim::GeneratorSector::GetGuidString |
( |
| ) |
const |
|
inline |
Retrieves the GUID set for this sector.
Retrieves a string representing the GUID set for this sector.
const char* Kaim::GeneratorSector::GetName |
( |
| ) |
const |
|
inline |
Retrieves the name set for this sector as char*.
const String& Kaim::GeneratorSector::GetNameString |
( |
| ) |
const |
|
inline |
Retrieves the name set for this sector as String.
Ptr<NavData> Kaim::GeneratorSector::GetNavData |
( |
| ) |
|
|
inline |
Retrieve a pointer to the NavData that was generated for this sector, or KY_NULL if the navdata is not available or has not been generated yet.
The NavData provided is not bound to any Kaim::Database or Kaim::World and needs to be added manually in order to have access to the stitched runtime data
Ptr<NavData> Kaim::GeneratorSector::GetNavDataPatch |
( |
| ) |
|
|
inline |
Retrieve a pointer to the NavDataPatch that was generated for this sector, or KY_NULL if the navDataPath is not available or has not been generated yet.
bool Kaim::GeneratorSector::IsNavDataCellBoxSet |
( |
| ) |
const |
|
inline |
Determines whether or not a cellBox was set for this sector.
If NavData was generated, save it to the specified location.
String Kaim::GeneratorSector::m_clientInputAbsoluteFileName |
String Kaim::GeneratorSector::m_colDataAbsoluteFileName |
Set by the Generator when the ColData is saved.
KyUInt32 Kaim::GeneratorSector::m_colDataBuildMode |
takes values from GenerationFlags::SectorColDataSaveMode
KyArray<String> Kaim::GeneratorSector::m_inputFileNames |
KyUInt32 Kaim::GeneratorSector::m_inputSource |
bool Kaim::GeneratorSector::m_isClientInputSaveEnabled |
bool Kaim::GeneratorSector::m_isPatch |
Indicates if the Sector is a Patch.
Ptr<NavData> Kaim::GeneratorSector::m_navData |
Generated NavData. Relevant when m_isPatch=false and m_buildMode=SECTOR_CHANGE.
String Kaim::GeneratorSector::m_navDataAbsoluteFileName |
CellBox Kaim::GeneratorSector::m_navDataCellBox |
Optional, limits the NavData generation to this CellBox. Relevant when pipeline uses tiles as sectors.
Ptr<NavData> Kaim::GeneratorSector::m_navDataPatch |
Generated NavData. Relevant when m_isPatch=true and m_patchOperation!=PATCH_NO_CHANGE.
String Kaim::GeneratorSector::m_navDataPatchAbsoluteFileName |
Set by the Generator when the NavDataPatch is saved.
CellBox Kaim::GeneratorSector::m_previousInputCellBox |
From previous generation, the AABB of CellPos that were impacted by the Sector or Patch Inputs.
From previous generation, the list of CellPos that were impacted by the Patch inputs. Empty if m_isPatch is false or if the Patch is new.
From previous generation, the sector SeedPoints.
KyUInt32 Kaim::GeneratorSector::m_sectorChange |
What has changed in the sector since previous generation.
KyGuid Kaim::GeneratorSector::m_sectorGuid |
String Kaim::GeneratorSector::m_sectorName |
void* Kaim::GeneratorSector::m_userData |
The documentation for this class was generated from the following file: