VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vpfDatabase.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.** All rights reserved.
3 ******************************************************************************/
4 /******************************************************************************
5 * $RCSfile: vmapDatabase.h,v $ $Revision: 1.21 $ $State: Exp $
6 ******************************************************************************/
7 
8 #ifndef VMAP_DATABASE_H_
9 #define VMAP_DATABASE_H_
10 
13 
14 #include <list>
15 
16 #include <matrix/geodeticCoord.h>
17 #include <vlutil/vlString.h>
18 
19 #include "vmap/vmapDefines.h"
20 
21 //forward defs
22 class DtVpfTile;
23 class DtVpfTable;
24 class DtVectorNetwork;
25 class DtVpfRow;
26 class DtTerrainDatabase;
28 
29 //typedefs
30 typedef std::list<DtVpfTile*> DtTileList;
31 typedef std::list<DtVpfTile*>::iterator DtTileListIter;
32 
34 
35 struct DtAreaQuad
36 {
37  DtGeodeticCoord topRight;
38  DtGeodeticCoord bottomLeft;
39 };
40 
44 {
45  private:
47  DtVpfDatabase(const DtVpfDatabase &input);
48 
50  DtVpfDatabase& operator=(const DtVpfDatabase &input);
51 
52  public:
55  DtVpfDatabase(DtString path);
56 
58  virtual ~DtVpfDatabase();
59 
62  virtual bool initDatabase();
63 
66  virtual DtString dbPath() const;
67 
70  virtual DtString library() const {return myLibraryOfInterest;}
71 
74  virtual DtString theme() const {return myThemeOfInterest;}
75 
78  virtual DtString feature() const {return myFeatureOfInterest;}
79 
82  virtual DtString tilePath(int ID) const;
83 
86  virtual bool setAreaOfInterest(const DtGeodeticCoord& SWCorner,
87  const DtGeodeticCoord& NECorner);
88 
91  virtual void getAreaOfInterest(DtGeodeticCoord& SWCorner,
92  DtGeodeticCoord& NECorner) const;
93 
95  virtual bool setLibraryOfInterest(DtString lib);
96 
99  virtual bool setThemeOfInterest(DtString theme);
100 
103  virtual bool setFeatureOfInterest(DtString feature);
104 
108  virtual bool loadTiles(DtVectorNetwork* vectorNetwork);
109 
113  virtual DtTerrainDatabase* terrainDatabase() const;
114 
117  virtual void setTerrainDatabase(DtTerrainDatabase* tdb);
118 
122  virtual DtVpfSpecFactory* specFactory() const;
123 
126  virtual std::list<DtString> libraryList() const;
127 
130  virtual std::list<DtString> themeList() const;
131 
134  virtual std::list<DtString> featureList() const;
135 
136  protected:
137  virtual bool overlap(DtAreaQuad& a1, DtAreaQuad& a2);
138 
141 
145  DtGeodeticCoord mySWCorner;
146  DtGeodeticCoord myNECorner;
147 
153 
156 
159 };
160 
161 #endif

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)