VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
osgdb_osgearth_cdb
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>
13
#include <
osgdb_osgearth_cdb/DtCDBTileCache.h
>
14
#include <
osgdb_osgearth_cdb/DtCDBTile.h
>
15
#include <
osgdb_osgearth_cdb/DtCDBDatasets.h
>
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
56
const
CDBOptions
myCdbOptions
;
57
59
osg::ref_ptr<osgDB::Options>
myDbOptions
;
60
62
std::string
myCdbRootDir
;
63
65
int
myCdbDatasetCode
;
66
68
int
myCdbComponentSelector1
;
69
71
int
myCdbComponentSelector2
;
72
74
CDBTileCache
myTileCache
;
75
77
CDBTile
*
myCdbTilePtr
;
78
80
CDBDatasets
*
myDatasetsPtr
;
81
83
CdbDB
myCdbDatabase
;
84
86
bool
myCdbIsOpened
;
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
)