VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBDebugUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright(c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #include <map>
11 
12 #include <osg/Vec4>
13 #include <osgEarth/GeoData>
14 
15 namespace osg
16 {
17  class Group;
18 }
19 
20 namespace osgEarth
21 {
22  class SpatialReference;
23  class MapNode;
24 }
25 
26 namespace makVrv { namespace oe { namespace CDB {
27 
28  class CDBTileKey;
29 
32  {
33  public:
36  static osg::Vec4f getDebugColor(int lod);
37 
39  static void addDebugText(const std::string& text, const osgEarth::GeoPoint& point,
40  osg::Group* groupNode, osgEarth::MapNode* mapNode, float lodDistance=500.0f);
41 
43  static void addTileLabel(const CDBTileKey& key, osg::Group* groupNode
44  , osgEarth::SpatialReference* srs
45  , osgEarth::MapNode* mapNode);
46 
48  static void setupDebugColor(int lod, osg::Group* attachPoint);
49  private:
51  typedef std::map< int, osg::Vec4f > MapLODToDebugColor;
54 
56  static bool initDebugColorMap();
58  static const bool debugColorMapInitialized;
59  };
60 
61 }}}

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)