gwnavgeneration/input/spatializedsectorinput.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_SpatializedSectorInput_H
10 #define GwNavGen_SpatializedSectorInput_H
22 class GeneratorSystem;
24 class TaggedTriangle3i;
25 class SectorInputData;
59 class DynInputCellArrayAtTilePos
63 DynInputCellArrayAtTilePos(
KyInt32 x,
KyInt32 y) : m_x(x), m_y(y) {}
64 KyArrayPOD<DynamicInputCell*> m_dynInputCells;
70 class TilePartFileNameArrayAtTilePos
74 TilePartFileNameArrayAtTilePos(
KyInt32 x,
KyInt32 y) : m_x(x), m_y(y) {}
75 KyArray<String> m_filenames;
89 class SpatializedSectorInput
94 SpatializedSectorInput(GeneratorSystem* sys);
96 ~SpatializedSectorInput() { ClearAll(); }
98 void SetName(
const String& name) { m_sectorName = name; }
100 void SetMaxTriangleCountBeforeFlush(
KyUInt32 maxTriangleCountBeforeFlush) { m_maxTriangleCountBeforeFlush = maxTriangleCountBeforeFlush; }
104 ClearCellAndTileGrids();
105 ClearFlushedTiledFileNames();
108 void ClearCellAndTileGrids();
110 void ClearFlushedTiledFileNames();
112 void PushTriangle(
const DynamicTaggedTriangle3i& inputTriangle);
114 void PushTagVolume(
const TagVolume& volume);
116 DynamicInputCell* GetCell(
CellCoord x,
CellCoord y) {
return m_dynInputCellGrid.Get(x, y); }
118 DynamicInputCell** GetCells() {
return m_dynInputCellGrid.GetElements(); }
120 KyUInt32 GetCellsCount()
const {
return m_dynInputCellGrid.GetElementsCount(); }
124 void RemovePartsTempDirectory();
127 String GetTilePartDirName();
131 GeneratorSystem* m_sys;
135 KyUInt32 m_maxTriangleCountBeforeFlush;
137 DenseGridAndArrayOfRawPtr<DynamicInputCell> m_dynInputCellGrid;
139 DenseGridAndArrayOfRawPtr<DynInputCellArrayAtTilePos> m_dynInputCellArrayTileGrid;
140 DenseGridAndArrayOfRawPtr<TilePartFileNameArrayAtTilePos> m_tilePartFileNameArrayTileGrid;
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
KyInt32 CellCoord
A type that represents the placement of a cell on one axis of a 2D grid.
Definition: navmeshtypes.h:32