gwnavruntime/world/boxobstacledisplay.h Source File

boxobstacledisplay.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 // Contacts: LAPA
9 #ifndef Navigation_BoxObstacleDisplay_H
10 #define Navigation_BoxObstacleDisplay_H
11 
13 
14 namespace Kaim
15 {
16 
17 class ScopedDisplayList;
18 class BoxObstacleBlob;
19 
20 class BoxObstacleDisplayListBuilder
21 {
22 public:
23  BoxObstacleDisplayListBuilder()
24  {
25  m_boxColor = VisualColor::Green;
26  m_obstacleLinearVelocityColor = VisualColor::LightGreen;
27  m_obstacleAngularVelocityColor = VisualColor::LightCyan;
28  m_obstacleAngularSpeedColor = VisualColor::Cyan;
29  m_spatializedCylindersColor_Projected = VisualColor::Lime;
30  m_spatializedCylindersColor_NotProjected = VisualColor::Red;
31  m_spatializedCylindersVelocityColor = VisualColor::White;
32  m_spatializationLinkColor = VisualColor::LightYellow;
33  m_linearVelocityArrowWidth = 0.05f;
34  m_angularVelocityArrowWidth = 0.05f;
35  m_boxAlpha = 255;
36  }
37 
38  void DisplayOutline(ScopedDisplayList* displayList, const BoxObstacleBlob* boxObstacle, VisualColor& obstacleColor, VisualColor& obstacleLineColor);
39  void DisplayStatus(ScopedDisplayList* displayList, const BoxObstacleBlob* boxObstacle);
40  void DisplayTransform(ScopedDisplayList* displayList, const BoxObstacleBlob* boxObstacleBlob);
41  void DisplayBoxVelocities(ScopedDisplayList* displayList, const BoxObstacleBlob* boxObstacleBlob);
42 
43 public:
44  VisualColor m_boxColor;
45  VisualColor m_obstacleLinearVelocityColor;
46  VisualColor m_obstacleAngularVelocityColor;
47  VisualColor m_obstacleAngularSpeedColor;
48  VisualColor m_spatializedCylindersColor_Projected;
49  VisualColor m_spatializedCylindersColor_NotProjected;
50  VisualColor m_spatializedCylindersVelocityColor;
51  VisualColor m_spatializationLinkColor;
52  KyFloat32 m_linearVelocityArrowWidth;
53  KyFloat32 m_angularVelocityArrowWidth;
54 
55  KyUInt8 m_boxAlpha;
56  bool m_drawAsWireframe;
57 
58  bool m_forceBoxRender;
59  bool m_renderTransform;
60  bool m_renderBoxVelocities;
61 };
62 
63 }
64 
65 #endif
66 
static const VisualColor Lime
Represents the color with RGBA values ( 0, 255, 0, 255).  
Definition: visualcolor.h:172
static const VisualColor Red
Represents the color with RGBA values (255, 0, 0, 255).  
Definition: visualcolor.h:209
static const VisualColor LightGreen
Represents the color with RGBA values (144, 238, 144, 255).  
Definition: visualcolor.h:164
static const VisualColor LightYellow
Represents the color with RGBA values (255, 255, 224, 255).  
Definition: visualcolor.h:171
unsigned char KyUInt8
Type used internally to represent an unsigned 8-bit integer.
Definition: types.h:41
Definition: gamekitcrowddispersion.h:20
static const VisualColor White
Represents the color with RGBA values (255, 255, 255, 255).  
Definition: visualcolor.h:234
static const VisualColor Cyan
Represents the color with RGBA values ( 0, 255, 255, 255).  
Definition: visualcolor.h:116
static const VisualColor Green
Represents the color with RGBA values ( 0, 128, 0, 255).  
Definition: visualcolor.h:147
static const VisualColor LightCyan
Represents the color with RGBA values (224, 255, 255, 255).  
Definition: visualcolor.h:161
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43