VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cutoutCache.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 
17 #include <vrfutil/objectDB.h>
18 
19 #include <boost/scoped_ptr.hpp>
20 
27 {
28 public:
33  explicit DtCutoutCache(
34  const DtFilename& filename,
35  const osgEarth::Profile* profile,
36  bool erasePrevious = false);
37 
39  virtual ~DtCutoutCache();
40 
42  struct Record
43  {
47 
48  Record();
49  };
50 
55  virtual boost::shared_ptr<Record> read(const osgEarth::TileKey& key);
56 
59  virtual void write(
60  const osgEarth::TileKey& key,
61  const DtCollisionObjectList& objects,
62  const DtTileData::Extent::Vector& maskExtents);
63 
64 protected:
65  void fillCache();
66 
68  boost::scoped_ptr<DtObjectDB::Cursor> myCursor;
69 
70  osg::ref_ptr<const osgEarth::Profile> myProfile;
71 
76 
77  typedef std::map<osgEarth::TileKey, boost::shared_ptr<Record> > CacheMap;
78 
80 };
81 
82 

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)