gwnavruntime/spatialization/spatializedcylinderdisplay.h Source File

spatializedcylinderdisplay.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: LAPA - secondary contact: GUAL
9 #ifndef Navigation_SpatializedCylinderDisplay_H
10 #define Navigation_SpatializedCylinderDisplay_H
11 
15 
16 namespace Kaim
17 {
18 
19 class ScopedDisplayList;
20 class SpatializedCylinderBlob;
21 class SpatializedCylinderConfigBlob;
22 class SpatializationResultBlob;
23 
24 
25 // This class is used only in the NavigationLab
26 // Used to display Bots, BoxObstacles and CylinderObstacles
27 class SpatializedCylinderDisplay
28 {
29 public:
30  SpatializedCylinderDisplay(
31  ScopedDisplayList* displayList,
32  const SpatializedCylinderBlob* spatializedCylinderBlob,
33  const SpatializedCylinderConfigBlob* spatializedCylinderConfigBlob,
34  const SpatializationResultBlob* spatializationResultBlob)
35  : m_displayList(displayList)
36  , m_spatializedCylinderBlob(spatializedCylinderBlob)
37  , m_spatializedCylinderConfigBlob(spatializedCylinderConfigBlob)
38  , m_spatializationResultBlob(spatializationResultBlob)
39  {
40  m_cylinderEdgeCount = 5;
41  m_cylinderColor = Kaim::VisualColor::Magenta;
42  m_cylinderLinesColor = Kaim::VisualColor::Magenta;
43  m_velocityColor = Kaim::VisualColor::White;
44  }
45 
46  void DisplayCylinder(bool displayAsWireframe);
47 
48  void DisplayVelocity();
49 
50  void DisplaySpatializationResult(KyUInt32 databaseIndex);
51 
52 public:
53  KyUInt32 m_cylinderEdgeCount;
54  VisualColor m_cylinderColor;
55  VisualColor m_cylinderLinesColor;
56  VisualColor m_velocityColor;
57  ScopedDisplayList* m_displayList;
58  const SpatializedCylinderBlob* m_spatializedCylinderBlob;
59  const SpatializedCylinderConfigBlob* m_spatializedCylinderConfigBlob;
60  const SpatializationResultBlob* m_spatializationResultBlob;
61 };
62 
63 }
64 
65 #endif
Definition: gamekitcrowddispersion.h:20
static const VisualColor White
Represents the color with RGBA values (255, 255, 255, 255).  
Definition: visualcolor.h:234
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
static const VisualColor Magenta
Represents the color with RGBA values (255, 0, 255, 255).  
Definition: visualcolor.h:175