12 #include <osgEarth/Map>
13 #include <osgEarth/Progress>
14 #include <osgEarth/MapNodeObserver>
26 #include <tbb/concurrent_hash_map.h>
28 #include <Vect/Cee_VectFeature.h>
29 #include <Cee_CdbDB.h>
33 class SpatialReference;
38 class DtIndirectGeometryRegistrar;
39 class DtIndirectGeometry;
40 class DtOsgGraphMergeOperation;
48 class CDBModelOptions;
51 class DtCDBClassIndex;
52 class DtCDBInstanceIndex;
53 class DtCdbGroupNodeProgress;
67 virtual void initialize(
const std::string& shpInstanceFile,
DtCDBInstanceIndex& instanceAttrIndexes,
69 const std::string& dbfExtendedFile) = 0;
89 void warn_once(
const std::string& classname,
const std::string& key,
const std::string& message)
91 std::lock_guard<Threading::Mutex> lock(mutex_);
92 auto it = keys_.find(key);
93 if (it == keys_.end()) {
94 OE_WARN << classname <<
" " << message <<
" (this message will appear only once)" << std::endl;
99 void warn_once_missingfield(
const std::string& classname,
const std::string& key,
const std::string& field,
const std::string& file)
101 std::lock_guard<Threading::Mutex> lock(mutex_);
102 auto it = keys_.find(key);
103 if (it == keys_.end()) {
104 OE_WARN << classname <<
" Unable to find [" << field <<
"] field in file: " << file <<
" (this message will appear only once)" << std::endl;
111 std::unordered_set<std::string>
keys_;
std::string myDbfClassFile
Dbf class filename.
Definition: DtCDBVector.h:138
Hold the unique CDB tile key information CDB LOD goes from -10 to 23. Negative keys to zero are all 1...
Definition: DtCDBTileKey.h:47
WarnOnceRegistry & getWarnOnceRegistry()
Definition: DtCDBVector.h:115
CDB Configuration file holding constant definition.
bool myIsLinearDataset
Is linear dataset.
Definition: DtCDBVector.h:172
CDB Class that hold the Dataset informationNote: A DUPLICATED class also exist in the Openflight Plug...
std::unordered_set< std::string > keys_
Definition: DtCDBVector.h:111
DatasetInfo myCurrentDataset
Dataset information.
Definition: DtCDBVector.h:132
void warn_once_missingfield(const std::string &classname, const std::string &key, const std::string &field, const std::string &file)
Definition: DtCDBVector.h:99
Utility class for Material Classification on Demand (MCOD) for CDB raster/model dataset.
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
Definition: featureContext.h:36
bool myIsInitialized
Was the indexes read.
Definition: DtCDBVector.h:124
std::string myDbfExtendedFile
Dbf extented attributes filename.
Definition: DtCDBVector.h:140
bool myIsArealDataset
Is areal dataset.
Definition: DtCDBVector.h:174
CDB osg node class CdbGroupNode as the following structure for GT models Each quadrant does not have ...
Definition: DtCDBGroupNode.h:49
Class used to keep "instance" indexes attributes dbf information.
Definition: DtCDBAttributeIndex.h:111
Threading::Mutex mutex_
Definition: DtCDBVector.h:110
std::vector< osg::ref_ptr< DtCDBinstanceRow > > VecInstancesDbfRow
Definition: DtCDBClassRow.h:88
static const DtCDBDbfConfig myVectorConfig
Static class with predefine information.
Definition: DtCDBVector.h:127
Utility class to manage CDB Base Material Table.
CDB Dataset information class.
Definition: DtCDBDatasetInfo.h:24
The DtCdbGroupNodeProgressthat gets passed to createPagedNode() to use. It will report cancellation i...
Definition: DtCDBUtils.h:209
std::string myCNAM
Class Name field value (common attributes)
Definition: DtCDBVector.h:152
OpenThreads::Mutex Mutex
Definition: DtOsgThreadingUtils.h:12
CDBDatasets * myCDBDatasets
CDB Dataset information manager.
Definition: DtCDBVector.h:166
std::string myCDBRootPath
Copy of CDB root path.
Definition: DtCDBVector.h:146
Abstract Vector handler class.
Definition: DtCDBVector.h:58
Reference wrapper class for CdbDB.
std::string myShpInstanceFile
The cache path for the data set.
Definition: DtCDBVector.h:136
unsigned int myCMIX
Composite Material Index field value (common attributes)
Definition: DtCDBVector.h:154
osg::ref_ptr< DtCDBDatabase > myCdbDatabase
Valid CDB database pointer.
Definition: DtCDBVector.h:142
WarnOnceRegistry & myWarnOnceRegistry
Definition: DtCDBVector.h:121
std::unordered_map< std::string, osg::ref_ptr< DtCDBClassRow > > MapStringToClassDbfRow
Definition: DtCDBClassRow.h:52
CDB Significant Size Table class (to be filled from ../appData/cdb/SignificantSize_SwitchDistance.xml) Note: A DUPLICATED class also exist in the Openflight Plugin of MakOSG and this one in Vantage osgdb_osgearth_model_cdb TODO REMOVE THIS ONE AND REFERENCE THE MakOsg FLT one once we MERGE IN THE TRUNK.
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
void warn_once(const std::string &classname, const std::string &key, const std::string &message)
Definition: DtCDBVector.h:89
osg::ref_ptr< osgDB::Options > myDbOptions
Database option.
Definition: DtCDBVector.h:144
Abstract class to manage Cdb class vector row (dbf) information.
int myTileLod
keep a copy of the current tile CDB LOD
Definition: DtCDBVector.h:169
osg::ref_ptr< osgEarth::SpatialReference > myWgs84
Spatial reference pointer geocentric.
Definition: DtCDBVector.h:130
Definition: DtCDBVector.h:88
Class used to keep "class" indexes attributes index dbf information.
Definition: DtCDBAttributeIndex.h:22
CDB Dataset class. Hold Dataset information Helper class to retreive CBD Dataset information.
Definition: DtCDBDatasets.h:78
virtual bool isInitialized() const
Check if initialize() was called.
Definition: DtCDBVector.h:71
DtDe & myDe
Reference to DtDe.
Definition: DtCDBVector.h:177
CDB class that hold definition (like DBF column name, config file, etc)Renamed DtCDBDbfConfig from Dt...
Definition: DtCDBDbfConfig.h:20
std::string myFACC
Feature Attribute Classification Code field value (common attributes)
Definition: DtCDBVector.h:148
std::string myFSC
FACC Sub Code field value (common attributes)
Definition: DtCDBVector.h:150