tools/NavGenProj/include/NavGenProjMirrorOptions.h Source File

NavGenProjMirrorOptions.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: NOBODY
9 #ifndef GwNavGen_NavGenProjMirrorOptions_H
10 #define GwNavGen_NavGenProjMirrorOptions_H
11 
12 #include "tinyxml.h"
13 #include <string>
14 #include "NavGenProj.h"
16 #include "NavGenProjGeometry.h"
17 #include "NavGenProjClientInput.h"
18 
19 namespace Kaim
20 {
21 
25 {
26 public:
28  : m_useOneSectorPerMirroredObj(false)
29  , m_createCellBox(false)
30  , m_extentInMeters(0)
31  {}
32 
33  bool Read(TiXmlNode* node)
34  {
35  for (TiXmlNode* child = node->FirstChild(); child != 0; child = child->NextSibling())
36  {
37  NavGenProj::GetParam(child, "useOneSectorPerMirroredObj", m_useOneSectorPerMirroredObj);
38  NavGenProj::GetParam(child, "createCellBox", m_createCellBox);
39  NavGenProj::GetParam(child, "extentInMeters", m_extentInMeters);
40  }
41  return m_extentInMeters > 0.f;
42  }
43 
44  bool Write(TiXmlNode* folderNode)
45  {
46  TiXmlElement* node = new TiXmlElement("mirror");
47  folderNode->LinkEndChild(node);
48 
49  NavGenProj::SetParam(node, "useOneSectorPerMirroredObj", m_useOneSectorPerMirroredObj);
50  NavGenProj::SetParam(node, "createCellBox", m_createCellBox);
51  NavGenProj::SetParam(node, "extentInMeters", m_extentInMeters);
52  return true;
53  }
54 
55 public:
56 
57  bool m_useOneSectorPerMirroredObj;
58  bool m_createCellBox;
59  KyFloat32 m_extentInMeters;
60 };
61 
62 
63 }
64 
65 
66 #endif
This class is used to store parameters if a sector must be mirrored cf.
Definition: NavGenProjMirrorOptions.h:24
Definition: gamekitcrowddispersion.h:20
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43