gwnavruntime/path/pathdisplay.h Source File

pathdisplay.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 // Primary contact: MAMU - secondary contact: GUAL
8 #ifndef Navigation_PathVisRep_H
9 #define Navigation_PathVisRep_H
10 
14 
15 namespace Kaim
16 {
17 
18 class ScopedDisplayList;
19 class PathBlob;
20 
21 enum DrawingMode
22 {
23  OneColor,
24  TwoColor,
25  ThreeColors
26 };
27 
28 class PathDisplayListBuilder
29 {
30 public:
31  PathDisplayListBuilder()
32  {
33  SetDefaults();
34  }
35 
36  void SetDefaults()
37  {
38  m_altitudeOffset = 0.0f;
39  m_drawingMode = OneColor;
40 
41  m_nodesColor = Kaim::VisualColor::Cyan;
42  m_nodesAltitudeOffset = 0.5f;
43  m_nodesHalfWidth = 0.1f;
44 
45  m_edgesColor = Kaim::VisualColor::LawnGreen;
46  m_edgesAltitudeOffset = 0.5f;
47  m_secondEdgesColor = Kaim::VisualColor::Cyan;
48  m_thirdEdgesColor = Kaim::VisualColor::Cyan;
49  m_firstPathSplit = KY_NULL;
50  m_secondPathSplit = KY_NULL;
51  }
52 
53  void DisplayPath(Kaim::ScopedDisplayList* displayList, const Kaim::PathBlob* pathBlob, bool displayChannel = true);
54 
55 public:
56  KyFloat32 m_altitudeOffset;
57  DrawingMode m_drawingMode;
58  Kaim::VisualColor m_edgesColor;
59  Kaim::VisualColor m_nodesColor;
60  KyFloat32 m_nodesAltitudeOffset;
61  KyFloat32 m_nodesHalfWidth;
62  KyFloat32 m_edgesAltitudeOffset;
63  Kaim::VisualColor m_secondEdgesColor;
64  Kaim::VisualColor m_thirdEdgesColor;
65  const Kaim::Vec3f* m_firstPathSplit;
66  const Kaim::Vec3f* m_secondPathSplit;
67 };
68 
69 } // namespace Kaim
70 
71 #endif // Navigation_PathVisRep_H
static const VisualColor LawnGreen
Represents the color with RGBA values (124, 252, 0, 255).  
Definition: visualcolor.h:157
#define KY_NULL
Null value.
Definition: types.h:247
Represents a single RGBA color.
Definition: visualcolor.h:19
Definition: gamekitcrowddispersion.h:20
static const VisualColor Cyan
Represents the color with RGBA values ( 0, 255, 255, 255).  
Definition: visualcolor.h:116
ScopedDisplayList is used to push text, lines or shapes for rendering in the NavigationLab e...
Definition: displaylist.h:136
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23