VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geodeticReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: geodTdb.h,v $ $Revision: 1.11 $ $State: Exp $
7 *********************************************************************/
8 #ifndef geodeticReader_H_
9 #define geodeticReader_H_
10 
11 // \file geodTdb.h
12 // \brief Contains the DtGeodeticReader class declaration.
13 
14 #include "gdb/gdbDefines.h"
15 #include "gdb/terrainReader.h"
16 
18 class DtTerrainDatabase;
19 class DtFilename;
20 
21 //
22 // The DtGeodeticReader class is responsible for creating a simple terrain with
23 // a geodetic coordinate system. This class is essentially a simplified
24 // version of the DtExtentReader.
26 {
27 public:
28 
29  // default constructor
31 
32  // destructor
33  virtual ~DtGeodeticReader();
34 
35 private:
36  // copy constructor & assignment operator not implemented. This class is
37  // not copyable or assignable
40 
41 public:
42  // Loads terrain database file named filename, returning the data in
43  // terrain. The terrain pointer passed in must be initialized before calling
44  // loadTerrain.
45  virtual bool loadTerrain(const DtFilename& filename,
46  DtTerrainDatabase* terrain);
47 
48  // Loads terrain database file named filename, returning the data in
49  // terrain. The initializer object is used to pass in additional information
50  // about the terrain to be loaded. The terrain pointer passed in must be
51  // initialized before calling loadTerrain.
52  virtual bool loadTerrain(const DtFilename& filename, DtTerrainDatabase* terrain,
53  const DtTerrainInitializer* initializer);
54 
55  // Returns "geodetic"
56  virtual const DtString dataType() const;
57 
58  // Returns only the coordinate system that would define this database. Should not load
59  // any polygonal or vector information
60  virtual Coordinate_System* coordinateSystem(const DtFilename& filename);
61 
62  static DtTerrainReader* create();
63 
64  virtual int optionalFileFlags(const DtFilename& filename)
65  {
66  return 0;
67  }
68 };
69 
71 {
72  return "geodetic";
73 }
74 
75 #endif

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)