tools/NavGenProj/include/NavGenProjConfig.h Source File

NavGenProjConfig.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: MAMU - secondary contact: GUAL
9 #ifndef GwNavGen_NavGenProjConfig_H
10 #define GwNavGen_NavGenProjConfig_H
11 
12 #include "tinyxml.h"
17 
18 namespace Kaim
19 {
20 
23 class NavGenProjConfig
24 {
25 public:
26  NavGenProjConfig() { Init(); }
27  ~NavGenProjConfig() { }
28  void Init();
29 
30 public:
31  bool Read(TiXmlNode* node);
32  bool Write(TiXmlNode* node);
33 
34 private:
35  bool ReadCoordSystemParam(TiXmlNode* node, CoordSystem& coordSystem);
36  bool ReadColor(TiXmlNode* node, VisualColor& color);
37  bool GetCoordSystemEnum(TiXmlNode* node, CoordSystem::ClientAxis& clientAxis);
38  bool ReadCoordSystemAxis(TiXmlNode* node, const char *axisName, CoordSystem::ClientAxis& clientAxis);
39  bool GetIntermediateData(TiXmlNode& node, IntermediateFilesConfig& intermediateFiles) const;
40  const char* GetClientAxisName(const CoordSystem::ClientAxis& clientAxis);
41 
42  void SetCoordSystemAxis(TiXmlNode* folder, const char *axisName, CoordSystem::ClientAxis clientAxis);
43  void SetCoordSystemParam(TiXmlNode* folderNode, CoordSystem& coordSystem);
44  void SetIntermediateData(TiXmlNode& folder, const IntermediateFilesConfig& intermediateFiles) const;
45 
46  void ReadDeprecatedConfigChild(TiXmlNode* child);
47 public:
48  String m_genIOFilename;
49  Kaim::GeneratorParameters m_generatorParams;
50  Kaim::GeneratorAbstractGraphParameters m_abstractGraphParams;
51  Kaim::GeneratorRunOptions m_generatorRunOptions;
52  Kaim::CoordSystem m_coordSystem;
54 };
55 
56 }
57 
58 
59 #endif
This class is used by the NavGenProj to store configuration parameters required by the NavData genera...
Definition: NavGenProjConfig.h:24
This class maintains the mapping between the system of coordinate axes used internally within the gam...
Definition: coordsystem.h:144
Represents a single RGBA color.
Definition: visualcolor.h:19
CoordSystemClientAxis
Enumerates the possible axis orientations that can be assigned to each of the Right, Front, and Up axes used within Gameware Navigation.
Definition: coordsystem.h:32
String m_genIOFilename
.GenIO file to use based on the specified outputDir, m_generatorParams and m_generatorRunOptions will...
Definition: NavGenProjConfig.h:53
Definition: gamekitcrowddispersion.h:20
The GeneratorParameters class contains configuration parameters that control the characteristics of t...
Definition: generatorparameters.h:75
KyArray< String > m_navRasterDistanceMapMetricNames
For internal use. Do not modify.
Definition: NavGenProjConfig.h:58
The GeneratorRunOptions class contains configuration parameters that control the way in which the Gen...
Definition: generatorrunoptions.h:49
The IntermediateFilesConfig class is used by GeneratorRunOptions to store configuration parameters th...
Definition: intermediatefilesconfig.h:23