VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vantageTerrainImplementation
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
13
#include <
vantageTerrainImplementation/vantageTerrainImplementationDefines.h
>
14
#include <
vantageTerrainImplementation/osgToBullet.h
>
15
#include <
vantageTerrainImplementation/osgEarthTerrainSourceTracker.h
>
16
17
#include <
vrfutil/objectDB.h
>
18
19
#include <boost/scoped_ptr.hpp>
20
26
class
DT_DLL_vantageTerrainImplementation
DtCutoutCache
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
{
44
DtCollisionObjectList
collisionObjects
;
45
unsigned
numberOfTriangles
;
46
DtTileData::Extent::Vector
maskExtents
;
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
67
DtObjectDB::Ptr
myObjectDB
;
68
boost::scoped_ptr<DtObjectDB::Cursor>
myCursor
;
69
70
osg::ref_ptr<const osgEarth::Profile>
myProfile
;
71
73
DtObjectDB::Offset
myNextWriteLocationOffset
;
75
DtObjectDB::Offset
myNextWriteLocation
;
76
77
typedef
std::map<osgEarth::TileKey, boost::shared_ptr<Record> >
CacheMap
;
78
79
CacheMap
myCacheMap
;
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
)