gwnavruntime/world/tagvolumedisplay.h Source File

tagvolumedisplay.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: NOBODY
9 #ifndef Navigation_TagVolumeDisplayListBuilder_H
10 #define Navigation_TagVolumeDisplayListBuilder_H
11 
14 #include "tagvolume.h"
15 
16 
17 namespace Kaim
18 {
19 
20 class Database;
21 class TagVolumeBlob;
22 class TagVolumeContextBlob;
23 
24 
25 class TagVolumeDisplayListBuilder
26 {
27 public:
28  TagVolumeDisplayListBuilder()
29  {
30  m_aabbColor_Projected = VisualColor::Lime;
31  m_aabbColor_NotProjected = VisualColor::Red;
32  m_contourColor = VisualColor::Cyan;
33 
34  m_colorNotIntegrated = VisualColor::Red;
35  m_colorToBeIntegrated = VisualColor::Orange;
36  m_colorIntegrationInProcess = VisualColor::Orange;
37  m_colorIntegrated = VisualColor::LimeGreen;
38 
39  m_displayWorldStatus = true;
40  m_displayIntegrationStatus = true;
41  }
42 
43  void DisplayTagVolumeContour(ScopedDisplayList* displayList, const TagVolumeBlob* tagVolumeBlob, Database* database);
44  void DisplayTagVolumeAABB(ScopedDisplayList* displayList, const TagVolumeBlob* tagVolumeBlob);
45  void DisplayTagVolumeObjectType(ScopedDisplayList* displayList, const TagVolumeBlob* tagVolumeBlob);
46  void DisplayTagVolumeStatus(ScopedDisplayList* displayList, const TagVolumeBlob* tagVolumeBlob, const TagVolumeContextBlob* tagVolumeContextBlob);
47 
48  VisualColor GetIntegrationStatusColor(const TagVolume::IntegrationStatus tagVolumeIntegrationStatus) const;
49  KyUInt8 GetAlphaForObstacleFromIntegrationStatus(const TagVolume::IntegrationStatus tagVolumeIntegrationStatus) const;
50 
51 public:
52  VisualColor m_aabbColor_Projected;
53  VisualColor m_aabbColor_NotProjected;
54  VisualColor m_contourColor;
55 
56  VisualColor m_colorNotIntegrated;
57  VisualColor m_colorToBeIntegrated;
58  VisualColor m_colorIntegrationInProcess;
59  VisualColor m_colorIntegrated;
60 
61  bool m_displayWorldStatus;
62  bool m_displayIntegrationStatus;
63 };
64 
65 } // namespace Kaim
66 
67 #endif // Navigation_TagVolumeDisplayListBuilder_H
static const VisualColor LimeGreen
Represents the color with RGBA values ( 50, 205, 50, 255).  
Definition: visualcolor.h:173
static const VisualColor Lime
Represents the color with RGBA values ( 0, 255, 0, 255).  
Definition: visualcolor.h:172
static const VisualColor Orange
Represents the color with RGBA values (255, 165, 0, 255).  
Definition: visualcolor.h:195
static const VisualColor Red
Represents the color with RGBA values (255, 0, 0, 255).  
Definition: visualcolor.h:209
unsigned char KyUInt8
Type used internally to represent an unsigned 8-bit integer.
Definition: types.h:41
Definition: gamekitcrowddispersion.h:20
static const VisualColor Cyan
Represents the color with RGBA values ( 0, 255, 255, 255).  
Definition: visualcolor.h:116