gwnavruntime/world/worldelementspatializer.h Source File

worldelementspatializer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
9 
12 
13 
14 namespace Kaim
15 {
16 
17 class World;
18 
19 // Internal: this class manages the spatialization of WorldElement instances in
20 // the World.
21 class WorldElementSpatializer
22 {
23  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_WorldFwk)
24  KY_CLASS_WITHOUT_COPY(WorldElementSpatializer)
25 
26 public:
27  explicit WorldElementSpatializer(World* world): m_world(world) {}
28  ~WorldElementSpatializer() {}
29 
30  void UpdateSpatializations();
31 
32 private:
33  void UpdateBotSpatializations();
34  void UpdatePointOfInterestSpatializations();
35  void UpdateCylinderObstacleSpatializations();
36  void UpdateBoxObstacleSpatializations();
37 
38  World* m_world;
39 };
40 
41 } // namespace Kaim
42 
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17