gwnavruntime/world/worldelementspatializer.h Source File

worldelementspatializer.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: LAPA - secondary contact: NOBODY
9 #ifndef Navigation_WorldElementSpatializer_H
10 #define Navigation_WorldElementSpatializer_H
11 
14 
15 
16 namespace Kaim
17 {
18 
19 class World;
20 
21 // Internal: this class manages the spatialization of WorldElement instances in
22 // the World.
23 class WorldElementSpatializer
24 {
25  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_WorldFwk)
26  KY_CLASS_WITHOUT_COPY(WorldElementSpatializer)
27 
28 public:
29  explicit WorldElementSpatializer(World* world): m_world(world) {}
30  ~WorldElementSpatializer() {}
31 
32  void UpdateSpatializations();
33 
34 private:
35  void UpdateBotSpatializations();
36  void UpdatePointOfInterestSpatializations();
37  void UpdateCylinderObstacleSpatializations();
38  void UpdateBoxObstacleSpatializations();
39 
40  World* m_world;
41 };
42 
43 } // namespace Kaim
44 
45 #endif // Navigation_WorldElementSpatializer_H
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137