12 #include <osgEarth/TileSource>
13 #include <osgEarth/ImageMosaic>
14 #include <osgEarth/Color>
20 #include <Cee_CdbDB.h>
30 namespace makVrv {
namespace oe {
namespace CDB
32 using namespace osgEarth;
34 class DtCDBBaseMaterialTable;
46 virtual osg::Image* createImage(
bool isRasterMaterial,
bool isMcod);
61 Status initialize(
const osgDB::Options* dbOptions);
64 osg::Image* createImage(
const TileKey& key, ProgressCallback* progress);
67 osg::HeightField* createHeightField(
const TileKey& key, ProgressCallback* progress);
77 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);
80 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);
83 ReadResult readImage(
const std::string& cdbfile);
89 bool convertToMCOD(
osg::Image* rasterImage,
osg::Image* mcodImage,
const std::string& CdbMaterialDescriptorTile);
92 bool convertToSplat(
osg::Image* rasterImage,
const std::string& CdbMaterialDescriptorTile);
CDB raster earth file options for "cdbraster" driver.
bool myMcod
Flag to know if Raster material will produce MCOD (SensorFx) image.
Definition: DtCDBTileSource.h:127
std::string myCdbRootDir
CDB root folder from the .earth file.
Definition: DtCDBTileSource.h:106
std::set< unsigned char > myCompMaterialNotFound
keep the warning message list so we don't flood the console
Definition: DtCDBTileSource.h:94
OpenThreads::Mutex myImageryMutex
Whole cache mutex object to allow thread safety.
Definition: DtCDBTileSource.h:133
CDB Class that hold the Dataset informationNote: A DUPLICATED class also exist in the Openflight Plug...
Utility class for Material Classification on Demand (MCOD) for CDB raster/model dataset.
Definition: featureContext.h:36
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:142
osg::ref_ptr< osgDB::Options > myDbOptions
Reference pointer to the OSG DB options.
Definition: DtCDBTileSource.h:103
virtual ~CdbImageMosaic()
Definition: DtCDBTileSource.h:44
Class used to find CDB Tiles information.
Definition: DtCDBTile.h:52
std::map< std::string, color2DArray > mcodColorMap
Definition: DtCDBMcod.h:28
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:118
Class used to create OSG Tiles from CDB Tiles Used to create OSG imagery, land use or elevation tiles...
Definition: DtCDBTileSource.h:53
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:121
CdbImageMosaic()
Definition: DtCDBTileSource.h:43
functions class that help find CDB tiles information
bool myCdbIsOpened
Was the CDB database open correctly.
Definition: DtCDBTileSource.h:124
OpenThreads::Mutex myRasterMaterialMutex
Whole cache mutex object to allow thread safety.
Definition: DtCDBTileSource.h:139
CDBTile * myCdbTilePtr
CDB Tile utility object.
Definition: DtCDBTileSource.h:115
makVrv::DtDe * myDe
Get the DtDe in running from front end plugin.
Definition: DtCDBTileSource.h:148
makVrv::oe::CDB::mcodColorMap myMCODTerrainColorMap
ColorMap for MCOD material.
Definition: DtCDBTileSource.h:145
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Utility class for extracting a single image from a collection of image tiles.
Definition: DtCDBTileSource.h:40
DatasetInfo myCurrentDataset
Current CDB Dataset of this pager.
Definition: DtCDBTileSource.h:109
OpenThreads::Mutex myElevationMutex
Mutex object to allow thread safety.
Definition: DtCDBTileSource.h:136
osg::ref_ptr< CDBTileCache > myTileCache
CDB Tile cache object.
Definition: DtCDBTileSource.h:112
CDB Dataset class. Hold Dataset information Helper class to retreive CBD Dataset information.
Definition: DtCDBDatasets.h:78
unsigned int myNumberOfMcodLayer
Number of MCOD layer to produce by Raster material (usually 2)
Definition: DtCDBTileSource.h:130
const CDBOptions myCdbOptions
Earth file CDB options.
Definition: DtCDBTileSource.h:100