gwnavruntime/spatialization/spatializedcylinderdisplay.h Source File

spatializedcylinderdisplay.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 
8 #pragma once
9 
13 
14 namespace Kaim
15 {
16 
17 class DisplayList;
18 class SpatializedCylinderBlob;
19 class SpatializedCylinderConfigBlob;
20 class SpatializationResultBlob;
21 
22 
23 // This class is used only in the NavigationLab
24 // Used to display Bots, BoxObstacles and CylinderObstacles
25 class SpatializedCylinderDisplay
26 {
27 public:
28  SpatializedCylinderDisplay(
29  DisplayList* displayList,
30  const SpatializedCylinderBlob* spatializedCylinderBlob,
31  const SpatializedCylinderConfigBlob* spatializedCylinderConfigBlob,
32  const SpatializationResultBlob* spatializationResultBlob)
33  : m_displayList(displayList)
34  , m_spatializedCylinderBlob(spatializedCylinderBlob)
35  , m_spatializedCylinderConfigBlob(spatializedCylinderConfigBlob)
36  , m_spatializationResultBlob(spatializationResultBlob)
37  {
38  m_cylinderColor = Kaim::Color::Magenta;
39  m_cylinderLinesColor = Kaim::Color::Magenta;
40  m_velocityColor = Kaim::Color::White;
41  }
42 
43  void DisplayCylinder(bool displayAsWireframe);
44 
45  void DisplayVelocity();
46 
47  void DisplaySpatializationResult(KyUInt32 databaseIndex);
48 
49 public:
50  KyUInt32 m_cylinderEdgeCount;
51  Color m_cylinderColor;
52  Color m_cylinderLinesColor;
53  Color m_velocityColor;
54  DisplayList* m_displayList;
55  const SpatializedCylinderBlob* m_spatializedCylinderBlob;
56  const SpatializedCylinderConfigBlob* m_spatializedCylinderConfigBlob;
57  const SpatializationResultBlob* m_spatializationResultBlob;
58 };
59 
60 }
61 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17