12 #include <osgEarth/TileSource>
13 #include <osgEarth/ImageMosaic>
18 #include <Cee_CdbDB.h>
20 namespace makVrv {
namespace oe {
namespace CDB
22 using namespace osgEarth;
24 class DtCDBBaseMaterialTable;
35 virtual osg::Image* createImage(
bool isRasterMaterial);
50 Status initialize(
const osgDB::Options* dbOptions);
53 osg::Image* createImage(
const TileKey& key, ProgressCallback* progress);
56 osg::HeightField* createHeightField(
const TileKey& key, ProgressCallback* progress);
66 void processCDBImageryTileSource(
const TileKey& key,
const std::string& CdbTile,
const int st,
const TileKey& cdbKey,
const std::vector<TileKey>::iterator& k,
CdbImageMosaic& mosaic,
bool& foundAtLeastOneRealTile,
bool& addedImage);
69 void processCDBRasterMaterialTileSource(
const TileKey& key,
const std::string& CdbTile,
const std::string& CdbMaterialDescriptorTile,
const int st,
const TileKey& cdbKey,
const std::vector<TileKey>::iterator& k,
CdbImageMosaic& mosaic,
bool& foundAtLeastOneRealTile,
bool& addedImage);
72 ReadResult readImage(
const std::string& cdbfile);
78 bool convertToSplat(
osg::Image* rasterImage,
const std::string& CdbMaterialDescriptorTile);
CDB raster earth file options for "cdbraster" driver.
std::string myCdbRootDir
CDB root folder from the .earth file.
Definition: DtCDBTileSource.h:87
OpenThreads::Mutex myImageryMutex
Whole cache mutex object to allow thread safety.
Definition: DtCDBTileSource.h:108
CDB Class that hold the Dataset informationNote: A DUPLICATED class also exist in the Openflight Plug...
Definition: featureContext.h:37
Class the parse CDB folder before loading it to speed up the actual reading later.
Utility class to get CDB dataset information.
osg::ref_ptr< DtCDBBaseMaterialTable > myProceduralBaseMaterialTable
Base Material table use to map Procedural class index.
Definition: DtCDBTileSource.h:117
osg::ref_ptr< osgDB::Options > myDbOptions
Reference pointer to the OSG DB options.
Definition: DtCDBTileSource.h:84
virtual ~CdbImageMosaic()
Definition: DtCDBTileSource.h:33
Class used to find CDB Tiles information.
Definition: DtCDBTile.h:52
CDB Dataset information class.
Definition: DtCDBDatasetInfo.h:23
IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2 &size, const ImVec2 &uv0=ImVec2(0, 0), const ImVec2 &uv1=ImVec2(1, 1), const ImVec4 &tint_col=ImVec4(1, 1, 1, 1), const ImVec4 &border_col=ImVec4(0, 0, 0, 0))
OpenThreads::Mutex Mutex
Definition: DtOsgThreadingUtils.h:12
CDBDatasets * myDatasetsPtr
Dataset Manager singleton.
Definition: DtCDBTileSource.h:99
Class used to create OSG Tiles from CDB Tiles Used to create OSG imagery, land use or elevation tiles...
Definition: DtCDBTileSource.h:42
Used to pass option(s) Pass option from the OSG earth file to this "cdbraster" driver.
Definition: DtCDBOptions.h:22
CdbDB myCdbDatabase
CDB database object.
Definition: DtCDBTileSource.h:102
CdbImageMosaic()
Definition: DtCDBTileSource.h:32
functions class that help find CDB tiles information
bool myCdbIsOpened
Was the CDB database open correctly.
Definition: DtCDBTileSource.h:105
OpenThreads::Mutex myRasterMaterialMutex
Whole cache mutex object to allow thread safety.
Definition: DtCDBTileSource.h:114
CDBTile * myCdbTilePtr
CDB Tile utility object.
Definition: DtCDBTileSource.h:96
Utility class for extracting a single image from a collection of image tiles.
Definition: DtCDBTileSource.h:29
DatasetInfo myCurrentDataset
Current CDB Dataset of this pager.
Definition: DtCDBTileSource.h:90
OpenThreads::Mutex myElevationMutex
Mutex object to allow thread safety.
Definition: DtCDBTileSource.h:111
osg::ref_ptr< CDBTileCache > myTileCache
CDB Tile cache object.
Definition: DtCDBTileSource.h:93
CDB Dataset class.
Definition: DtCDBDatasets.h:78
const CDBOptions myCdbOptions
Earth file CDB options.
Definition: DtCDBTileSource.h:81