gwnavruntime/dynamicnavmesh/dynamicnavmeshquerystats.h Source File

dynamicnavmeshquerystats.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 #ifndef Navigation_DynamicNavMeshQueryStats_H
8 #define Navigation_DynamicNavMeshQueryStats_H
9 
10 // primary contact: LASI - secondary contact: NONE
14 
15 namespace Kaim
16 {
17 
18 class VisualDebugServer;
19 
20 class DynamicNavMeshQueryStats
21 {
22  KY_DEFINE_NEW_DELETE_OPERATORS(Stat_Default_Mem)
23 public:
24  DynamicNavMeshQueryStats();
25 
26  DynamicNavMeshQueryStats& operator+=(const DynamicNavMeshQueryStats& rhs);
27 
28  bool operator<(const DynamicNavMeshQueryStats& other);
29 
30  KyFloat32 GetPercentage(KyFloat32 x) const;
31 
32  void PrintStats() const;
33 
34  void PrintTotalTime() const;
35 
36  void SendVisualDebug(VisualDebugServer* visualDebugServer, const char* groupName) const;
37 
38 public:
39  KyFloat32 m_extractInputData;
40  KyFloat32 m_edgeIntersectTime;
41  KyFloat32 m_sweeplineTime;
42  KyFloat32 m_polygonBuildingTime;
43  KyFloat32 m_triangulatorInputConversionTime;
44  KyFloat32 m_triangulationTime;
45  KyFloat32 m_delaunayTime;
46  KyFloat32 m_triangulatoroutPutConversionTime;
47  KyFloat32 m_navFloorBuilding;
48  KyFloat32 m_edgeTypeFixing;
49  KyFloat32 m_altitudeComputationTime;
50  KyFloat32 m_ACT_PixelBoxAndFloatComputation;
51  KyFloat32 m_ACT_StaticVertexBrowse;
52  KyFloat32 m_ACT_IsInsideTriangletest;
53  KyFloat32 m_ACT_edgeCaseResolution;
54 
55  KyFloat32 m_blobBuildingTime;
56  KyFloat32 m_totalQueryTime;
57  KyUInt32 m_inputEdgeCount;
58 };
59 
60 } // namespace Kaim
61 
62 
63 
64 #endif // Navigation_DynamicNavMeshQueryStats_H
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
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43