VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dtedReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: dtedTdb.h,v $ $Revision: 1.18 $ $State: Exp $
7 *********************************************************************/
8 #ifndef dtedReader_H_
9 #define dtedReader_H_
10 
11 #include "dted/dtedDefines.h"
12 #include "gdb/terrainReader.h"
13 
14 class DtList;
15 class DtFilename;
16 class DtSurfaceManager;
18 class DtDtedInitializer;
19 
20 //
21 // Instances of DtDtedReader are a list of DtDtedCells.
23 {
24 
25 public:
26 
27  // constructor
28  DtDtedReader();
29 
30  // destructor
31  virtual ~DtDtedReader();
32 
33  virtual bool loadTerrain(const DtFilename& filename, DtTerrainDatabase* terrain);
34 
35  virtual bool loadTerrain(const DtFilename& path, DtTerrainDatabase* terrain,
36  const DtTerrainInitializer* initializer );
37 
38  // Returns "dted"
39  virtual const DtString dataType() const;
40 
41  static DtTerrainReader* create();
42 
43  // Returns only the coordinate system that would define this database. Should not load
44  // any polygonal or vector information
45  virtual Coordinate_System* coordinateSystem(const DtFilename& filename);
46 
47 protected:
48 
49  // copy constructor
50  DtDtedReader(const DtDtedReader& orig);
51 
52  // assignment operator
53  DtDtedReader& operator=(const DtDtedReader& orig);
54 
55  // Load a dted database (filename is the filename of a terrain metafile).
56  // We need the path to this file in case the dted files specified in the
57  // record are relative paths.
58  virtual bool Load(const DtFilename& filename, const DtDtedInitializer* i);
59 
60  bool testInvariant() const;
61 
62  virtual int optionalFileFlags(const DtFilename& filename)
63  {
64  return 0;
65  }
66 
67 protected:
68 
69  DtList* myDtedCellList;
71 
72  static const unsigned int theNumColorGradations;
73  static const unsigned int theDefaultDt0Spacing;
74  static const unsigned int theDefaultDt1Spacing;
75  static const unsigned int theDefaultDt2Spacing;
76 
77 };
78 
79 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)