VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCDBTileSource.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include "DtCDBOptions.h"
12 #include <osgEarth/TileSource>
16 #include <Cee_CdbDB.h>
17 
18 namespace makVrv { namespace oe { namespace CDB
19 {
20  using namespace osgEarth;
21 
26  class CDBTileSource : public TileSource
27  {
28  public:
29 
31  CDBTileSource(const TileSourceOptions& options);
32 
34  Status initialize(const osgDB::Options* dbOptions);
35 
37  osg::Image* createImage(const TileKey& key, ProgressCallback* progress);
38 
40  osg::HeightField* createHeightField(const TileKey& key, ProgressCallback* progress);
41 
42  protected:
43 
45  virtual ~CDBTileSource();
46 
47  private:
48 
50  ReadResult readImage(std::string& cdbfile);
51 
53  osg::ref_ptr< osg::HeightField > readElevation(std::string& cdbfile);
54 
57 
59  osg::ref_ptr<osgDB::Options> myDbOptions;
60 
62  std::string myCdbRootDir;
63 
66 
69 
72 
75 
78 
81 
84 
87 
89  OpenThreads::Mutex myImageryMutex;
90 
92  OpenThreads::Mutex myElevationMutex;
93 
94  };
95 
96 } } } // namespace mak::osgEarth::CDB

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)