gwnavruntime/database/databasevisualgeometrybuilder.h Source File

databasevisualgeometrybuilder.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: JUBA
9 #ifndef Navigation_DatabaseVisualGeometryBuilder_H
10 #define Navigation_DatabaseVisualGeometryBuilder_H
11 
12 
16 
17 
18 namespace Kaim
19 {
20 
21 class Database;
22 
23 class DatabaseVisualGeometryBuilderConfig
24 {
25 public:
26  DatabaseVisualGeometryBuilderConfig()
27  : m_doBuildNavMeshVisRep(true)
28  , m_doBuildNavGraphVisRep(true)
29  , m_doBuildAbstractGraphVisRep(true)
30  {}
31 public:
32  bool m_doBuildNavMeshVisRep;
33  bool m_doBuildNavGraphVisRep;
34  bool m_doBuildAbstractGraphVisRep;
35 };
36 
37 class DatabaseVisualGeometryBuilder : public IVisualGeometryBuilder
38 {
39 public:
40  DatabaseVisualGeometryBuilder(Database* database= KY_NULL);
41 
42  virtual void DoBuild()
43  {
44  BuildActiveDataGeometry();
45  BuildAbstractGraphGeometry();
46  }
47 
48 private:
49  void BuildActiveDataGeometry();
50  void BuildAbstractGraphGeometry();
51 
52 public:
53  Database* m_database;
54  CellBox m_cellBox;
55 
56 public: // Internal. For use in the DatabaseVisRepGrid
57  DatabaseVisualGeometryBuilderConfig m_databaseVisGeomBuilderConfig;
58 };
59 
60 }
61 
62 
63 #endif //Navigation_DatabaseVisualGeometryBuilder_H
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:34
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20