VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBClassRow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright(c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 #include <osg/Referenced>
11 #include <osg/Matrixd>
12 #include <osg/Vec3d>
13 #include <osgEarth/GeoData>
14 #include <osgEarth/ElevationQuery>
15 
17 
18 namespace makVrv {
19  namespace oe {
20  namespace CDB
21  {
22  class CDBTileKey;
23  class CDBTile;
24 
27  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBClassRow : public osg::Referenced
28  {
29  public:
31  DtCDBClassRow();
32 
34  bool myAHGT;
36  int myCMIX;
38  std::string myFACC;
40  std::string myFSC;
42  double myHGT;
44  std::string myMODL;
46  std::string myFullModelName;
47 
49  double myBSR;
50  };
51 
52  using MapStringToClassDbfRow = std::unordered_map <std::string, osg::ref_ptr<DtCDBClassRow> > ;
53 
56  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBinstanceRow : public osg::Referenced
57  {
58  public:
59 
61  std::string myCNAM;
63  double mySCALx;
65  double mySCALy;
67  double mySCALz;
69  bool myIsClamp;
71  double myAO1;
73  double myBSR;
75  double myBBH;
77  double myBBL;
79  double myBBW;
80 
82  static osg::Matrixd computeTransform(osgEarth::SpatialReference* srs, const osg::Vec3d& modelPoint, const DtCDBinstanceRow* instanceRow);
83 
84  protected:
87  };
88  using VecInstancesDbfRow = std::vector<osg::ref_ptr<DtCDBinstanceRow> > ;
89  }
90  }
91 } // namespace makVrv::oe::CDB
double mySCALz
Z scaling factor (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:67
double mySCALy
Y scaling factor (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:65
double mySCALx
X scaling factor (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:63
bool myAHGT
Absolute Height Flag.
Definition: DtCDBClassRow.h:34
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
double myHGT
Height above Surface Level.
Definition: DtCDBClassRow.h:42
int myCMIX
Composite Material Index.
Definition: DtCDBClassRow.h:36
double myBBH
Bounding Box Height (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:75
std::string myMODL
Model Name.
Definition: DtCDBClassRow.h:44
double myBBW
Bounding Box Width (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:79
std::string myCNAM
Class name.
Definition: DtCDBClassRow.h:61
std::vector< osg::ref_ptr< DtCDBinstanceRow > > VecInstancesDbfRow
Definition: DtCDBClassRow.h:88
std::string myFullModelName
(reconstructed) Model Name
Definition: DtCDBClassRow.h:46
Class used to keep &quot;instance&quot; dbf information.
Definition: DtCDBClassRow.h:56
std::string myFSC
FACC Sub Code.
Definition: DtCDBClassRow.h:40
double myAO1
Angle of Orientation (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:71
double myBSR
Bounding Sphere (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:73
std::unordered_map< std::string, osg::ref_ptr< DtCDBClassRow > > MapStringToClassDbfRow
Definition: DtCDBClassRow.h:52
Class used to keep &quot;class&quot; dbf information.
Definition: DtCDBClassRow.h:27
std::string myFACC
Feature Attribute Classification Code.
Definition: DtCDBClassRow.h:38
double myBBL
Bounding Box Lenght (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:77
bool myIsClamp
Should the point be clamp.
Definition: DtCDBClassRow.h:69
double myBSR
Bounding Box Sphere.
Definition: DtCDBClassRow.h:49

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)