gwnavruntime/navgraph/navgraphvisualgeometrybuilder.h Source File

navgraphvisualgeometrybuilder.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 #pragma once
8 
10 
11 namespace Kaim
12 {
13 
14 class NavGraph;
15 class NavGraphBlob;
16 class ShapeColor;
17 class Vec3f;
18 
19 class NavGraphVisualGeometryBuilder : public IVisualGeometryBuilder
20 {
21 public:
22  NavGraphVisualGeometryBuilder(NavGraph* navGraph) : m_navGraph(navGraph) {}
23  virtual void DoBuild();
24 public:
25  NavGraph* m_navGraph;
26 };
27 
28 
29 class NavGraphBlobVisualGeometryBuilder : public IVisualGeometryBuilder
30 {
31 public:
32  NavGraphBlobVisualGeometryBuilder(const NavGraphBlob* navGraphBlob) : m_navGraphBlob(navGraphBlob) {}
33  virtual void DoBuild();
34 private:
35  void DrawVertex(const Vec3f& pos, KyFloat32 halfWidth, const Color& color);
36  void DrawEdge(const Vec3f& edgeStart, const Vec3f& edgeEnd, ArrowHeadCount::Enum arrowHeadCount);
37 public:
38  const NavGraphBlob* m_navGraphBlob;
39 };
40 
41 
42 }
43 
44 
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32