VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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
#define DT_DLL_gdb
Definition: gdbDefines.h:25
virtual const DtString dataType() const =0
virtual bool loadTerrain(const DtFilename &filename, DtTerrainDatabase *terrain)=0
Definition: coordSystem.h:54
Definition: geodeticReader.h:25
Definition: terrainReader.h:41
virtual int optionalFileFlags(const DtFilename &filename)
Definition: geodeticReader.h:64
Definition: terrainInitializer.h:16
virtual Coordinate_System * coordinateSystem(const DtFilename &filename)=0
Definition: terrainDatabase.h:148
DtTerrainReader & operator=(const DtTerrainReader &orig)
virtual const DtString dataType() const
Definition: geodeticReader.h:70

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)