![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 1999 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: geodTdb.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 *********************************************************************/ 00008 #ifndef geodTdb_H_ 00009 #define geodTdb_H_ 00010 00011 // \file geodTdb.h 00012 // \brief Contains the DtGeodeticReader class declaration. 00013 00014 #include "gdb/gdbDefines.h" 00015 #include "gdb/terrainReader.h" 00016 00017 class DtTerrainInitializer; 00018 class DtTerrainDatabase; 00019 class DtFilename; 00020 00021 // 00022 // The DtGeodeticReader class is responsible for creating a simple terrain with 00023 // a geodetic coordinate system. This class is essentially a simplified 00024 // version of the DtExtentReader. 00025 class DT_DLL_gdb DtGeodeticReader : public DtTerrainReader 00026 { 00027 public: 00028 00029 // default constructor 00030 DtGeodeticReader(); 00031 00032 // destructor 00033 virtual ~DtGeodeticReader(); 00034 00035 private: 00036 // copy constructor & assignment operator not implemented. This class is 00037 // not copyable or assignable 00038 DtGeodeticReader(const DtGeodeticReader& orig); 00039 DtGeodeticReader& operator=(const DtGeodeticReader& orig); 00040 00041 public: 00042 // Loads terrain database file named filename, returning the data in 00043 // terrain. The terrain pointer passed in must be initialized before calling 00044 // loadTerrain. 00045 virtual bool loadTerrain(const DtFilename& filename, 00046 DtTerrainDatabase* terrain); 00047 00048 // Loads terrain database file named filename, returning the data in 00049 // terrain. The initializer object is used to pass in additional information 00050 // about the terrain to be loaded. The terrain pointer passed in must be 00051 // initialized before calling loadTerrain. 00052 virtual bool loadTerrain(const DtFilename& filename, DtTerrainDatabase* terrain, 00053 const DtTerrainInitializer* initializer); 00054 00055 // Returns "geodetic" 00056 virtual const DtString dataType() const; 00057 00058 // Returns only the coordinate system that would define this database. Should not load 00059 // any polygonal or vector information 00060 virtual Coordinate_System* coordinateSystem(const DtFilename& filename); 00061 00062 static DtTerrainReader* create(); 00063 00064 virtual int optionalFileFlags(const DtFilename& filename) 00065 { 00066 return 0; 00067 } 00068 }; 00069 00070 inline const DtString DtGeodeticReader::dataType() const 00071 { 00072 return "geodetic"; 00073 } 00074 00075 #endif