VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
debugDrawColors.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 #pragma once
9 
10 #include <vrfutil/vrfutilDefines.h>
11 #include <geometry/surface.h>
12 #include <map>
13 #include <geometry/surface.h>
14 
17 {
18 public:
19  //CTOR (need the full resolved path for the debugDrawColors.csv)
21  DtDebugDrawColors(const DtString& csvDebugDrawColorFile);
22  //DTOR
23  virtual ~DtDebugDrawColors();
24 
25  class debugColor
26  {
27  public:
29  red(1.0f)
30  , blue(1.0f)
31  , green(1.0f)
32  , alpha(1.0f)
33  {}
34  debugColor(float r, float g, float b, float a):
35  red(r)
36  ,blue(b)
37  ,green(g)
38  ,alpha(a)
39  {}
40  debugColor(const debugColor& color) :
41  red(color.red)
42  , blue(color.blue)
43  , green(color.green)
44  , alpha(color.alpha)
45  {}
46 
47  virtual ~debugColor() {};
48 
49  float red;
50  float green;
51  float blue;
52  float alpha;
53  };
54 
56  virtual void roughnessSoilTypeColor(DtRoughnessSoilType type,
57  float& r, float& g, float& b, float& a);
58 
60  virtual void soilTypeColor(DtSoilType type,
61  float& r, float& g, float& b, float& a);
62 
64  virtual void navMeshTypeColor(DtString type,
65  float& r, float& g, float& b, float& a);
66 
68  typedef std::map<DtRoughnessSoilType, debugColor> RoughnessSoilMapType;
69 
71  typedef std::map<DtSoilType, debugColor> SoilTypeMapType;
72 
74  typedef std::map<DtString, debugColor> NavMeshMapType;
75 
77  std::string soilString(DtSoilType type) const;
78 
80  std::string roughnessSoilString(DtRoughnessSoilType type) const;
81 
83  RoughnessSoilMapType& roughnessSoilColorMap();
84 
86  SoilTypeMapType& soilTypeColorMap();
87 
89  NavMeshMapType& navMeshMapType();
90 
91 protected:
92 
93  virtual void loadColorMap();
94 
97 
100 
103 
106 
107 };
108 
float alpha
Definition: debugDrawColors.h:52
RoughnessSoilMapType myRoughnessSoilColorMap
Map with roughness soil type color.
Definition: debugDrawColors.h:96
virtual ~debugColor()
Definition: debugDrawColors.h:47
std::map< DtRoughnessSoilType, debugColor > RoughnessSoilMapType
roughness soil type
Definition: debugDrawColors.h:68
DtString myCSVDebugDrawColorFile
the debugDraw color mapping file
Definition: debugDrawColors.h:105
std::map< DtString, debugColor > NavMeshMapType
nav mesh type
Definition: debugDrawColors.h:74
float green
Definition: debugDrawColors.h:50
debugColor(const debugColor &color)
Definition: debugDrawColors.h:40
debugColor(float r, float g, float b, float a)
Definition: debugDrawColors.h:34
std::map< DtSoilType, debugColor > SoilTypeMapType
soil type
Definition: debugDrawColors.h:71
SoilTypeMapType mySoilTypeColorMap
Map with soil type color.
Definition: debugDrawColors.h:99
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
This class will read ammunition, entity, weapons and assemblies and provide information about them...
Definition: debugDrawColors.h:16
Definition: debugDrawColors.h:25
DtSoilType
Definition: surface.h:21
float blue
Definition: debugDrawColors.h:51
NavMeshMapType myNavMeshColorMap
Map nav mesh color.
Definition: debugDrawColors.h:102
DtRoughnessSoilType
Definition: surface.h:74
debugColor()
Definition: debugDrawColors.h:28

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)