VR-Forces 5.0.1 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) 2017 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 
16 namespace makVrv {
17  namespace oe {
18  namespace CDB
19  {
22  class DtCDBClassRow : public osg::Referenced
23  {
24  public:
25 
26  protected:
29  };
30 
31  typedef std::map <std::string, osg::ref_ptr<DtCDBClassRow> > MapStringToClassDbfRow;
32 
35  class DtCDBinstanceRow : public osg::Referenced
36  {
37  public:
38 
40  std::string myCNAM;
42  double mySCALx;
44  double mySCALy;
46  double mySCALz;
48  bool myIsClamp;
50  double myAO1;
52  double myBSR;
54  double myBBH;
56  double myBBL;
58  double myBBW;
60  static osg::Matrixd computeTransform(osgEarth::SpatialReference* srs, const osg::Vec3d& modelPoint, const osgEarth::Util::ElevationQuery& elevationQuery
61  , const DtCDBinstanceRow* instanceRow, bool zOffset);
63  static osg::Matrixd computeTransform2(osgEarth::SpatialReference* srs, const osg::Vec3d& modelPoint, const DtCDBinstanceRow* instanceRow);
64 
65  protected:
68  };
69  typedef std::vector<osg::ref_ptr<DtCDBinstanceRow> > VecInstancesDbfRow;
70  }
71  }
72 } // 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:46
double mySCALy
Y scaling factor (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:44
double mySCALx
X scaling factor (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:42
static osg::Matrixd computeTransform2(osgEarth::SpatialReference *srs, const osg::Vec3d &modelPoint, const DtCDBinstanceRow *instanceRow)
Calculate the point matrix tranform.
static osg::Matrixd computeTransform(osgEarth::SpatialReference *srs, const osg::Vec3d &modelPoint, const osgEarth::Util::ElevationQuery &elevationQuery, const DtCDBinstanceRow *instanceRow, bool zOffset)
Calculate the point matrix tranform.
double myBBH
Bounding Box Height (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:54
double myBBW
Bounding Box Width (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:58
std::string myCNAM
Class name.
Definition: DtCDBClassRow.h:40
Class used to keep &quot;instance&quot; dbf information.
Definition: DtCDBClassRow.h:35
double myAO1
Angle of Orientation (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:50
std::vector< osg::ref_ptr< DtCDBinstanceRow > > VecInstancesDbfRow
Definition: DtCDBClassRow.h:69
double myBSR
Bounding Sphere (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:52
Class used to keep &quot;class&quot; dbf information.
Definition: DtCDBClassRow.h:22
std::map< std::string, osg::ref_ptr< DtCDBClassRow > > MapStringToClassDbfRow
Definition: DtCDBClassRow.h:31
DtCDBClassRow()
CTOR.
Definition: DtCDBClassRow.h:28
double myBBL
Bounding Box Lenght (keep this attribute common even if not all the cdb datasets have it) ...
Definition: DtCDBClassRow.h:56
bool myIsClamp
Should the point be clamp.
Definition: DtCDBClassRow.h:48

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)