gwnavgeneration/generator/generatorsectorreport.h Source File

generatorsectorreport.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // primary contact: GUAL - secondary contact: NOBODY
9 #ifndef GwNavGen_GeneratorSectorReport_H
10 #define GwNavGen_GeneratorSectorReport_H
11 
13 
14 namespace Kaim
15 {
16 
17 
22 {
23  KY_DEFINE_NEW_DELETE_OPERATORS(Stat_Default_Mem)
24 public:
27  m_doLogDetails(false),
28  m_isPatch(false),
29  m_clientInputLoaded(false),
30  m_sectorInputProduced(false),
31  m_navDataGenerated(false),
33  m_colDataGenerated(false),
45  m_coldataSizeInBytes(0),
48  {
49  m_logPrefix = " ";
50  }
51 
52  bool SomethingHappenedForThisSector() const
53  {
54  return m_clientInputLoaded == true
55  || m_sectorInputProduced == true
56  || m_navDataGenerated == true
57  || m_navDataPatchGenerated == true;
58  }
59 
60 public:
61  mutable bool m_doLogDetails;
62  String m_logPrefix;
63 
64  String m_sectorName;
65  KyGuid m_guid;
66  bool m_isPatch;
67 
68  bool m_clientInputLoaded;
73 
74  String m_loadedClientInputAbsoluteFileName; // != "" if .ClientInput was loaded from the hard drive
75  String m_savedClientInputAbsoluteFileName; // != "" if .ClientInput was saved to the hard drive
76  String m_savedNavDataAbsoluteFileName; // != "" if .NavData was saved to the hard drive
77  String m_savedNavDataPatchAbsoluteFileName; // != "" if .Patch.X.NavData was saved to the hard drive
78  String m_savedColDataAbsoluteFileName; // != "" if .ColData was saved to the hard drive
79 
83 
88 
92 
95  KyUInt32 m_coldataSizeInBytes;
96 
99 };
101 }
102 
103 
104 #endif
105 
KyFloat32 m_sectorLoadInputTileTime
Maintains the time taken to load the InputTile for the sector.
Definition: generatorsectorreport.h:93
bool m_colDataGenerated
Indicates if the ColData was generated for this sector.
Definition: generatorsectorreport.h:74
KyFloat32 m_sectorRawNavMeshTime
Maintains the time taken to generate the NavData for the sector. This includes m_sectorLoadInputTileT...
Definition: generatorsectorreport.h:92
KyUInt32 m_generatedMainNavCellsCount
Maintains the total number of unique cells in the NavMesh generated for the sector: i...
Definition: generatorsectorreport.h:87
KyUInt32 m_generatedTotalNavCellsCount
Maintains the total number of cells in the NavMesh generated for the sector.
Definition: generatorsectorreport.h:86
bool m_clientInputLoaded
Indicates if the client input loaded for this sector.
Definition: generatorsectorreport.h:70
KyUInt32 m_totalNavmeshSizeInBytes
Maintains the size of the NavMeshElement generated for the sector.
Definition: generatorsectorreport.h:99
GeneratorSectorReport()
For internal use: constructs a new SectorStatistic.
Definition: generatorsectorreport.h:27
Box3f m_inputBoundingBox
Maintains the bounding box around the input geometry of the sector.
Definition: generatorsectorreport.h:84
KyUInt32 m_overlapDataSizeInBytes
Maintains the size of the overlap data generated for the sector: the NavData that overlaps the NavDat...
Definition: generatorsectorreport.h:100
KyUInt32 m_generatedOverlapNavCellsCount
Maintains the total number of overlap cells in the NavMesh generated for the sector: i...
Definition: generatorsectorreport.h:88
The SectorStatistics class encapsulates a detailed set of statistics about a single sector treated by...
Definition: generatorsectorreport.h:21
This class represents a three-dimensional axis-aligned bounding box whose dimensions are stored using...
Definition: box3f.h:25
Definition: gamekitcrowddispersion.h:20
bool m_navDataGenerated
Indicates if the NavData was generated for this sector.
Definition: generatorsectorreport.h:72
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
KyUInt32 m_consumedTriangleCount
Maintains the number of input triangles consumed in the input geometry of the sector.
Definition: generatorsectorreport.h:83
KyUInt32 m_navDataSizeInBytes
Maintains the total size of the NavData generated for the sector.
Definition: generatorsectorreport.h:95
bool m_sectorInputProduced
Indicates if the InputProducer was called for this sector.
Definition: generatorsectorreport.h:71
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
KyUInt32 m_navDataPatchSizeInBytes
Maintains the total size of the NavData generated for the sector.
Definition: generatorsectorreport.h:96
KyUInt32 m_inputCellsCount
Maintains the number of input cells created internally for the input geometry of the sector...
Definition: generatorsectorreport.h:82
KyUInt32 m_navdataElementsCount
Maintains the total number of NavData elements in the sector: i.e. the number of data chunks that are...
Definition: generatorsectorreport.h:89
bool m_navDataPatchGenerated
Indicates if the Patch.X.NavData was generated for this sector.
Definition: generatorsectorreport.h:73
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
KyFloat32 m_sectorInputConsumptionDuration
Maintains the time taken to consume the input geometry for the sector.
Definition: generatorsectorreport.h:91