VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metaFlightReader.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: mtFltTdb.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef metaFlightReader_H_
10 #define metaFlightReader_H_
11 
12 //
13 // \file mtFltTdb.h
14 // \brief Represents a metaflight terrain reader.
15 //
16 
17 #include "mtflt/mtfltDefines.h"
18 #include "gdb/gdbTerrainReader.h"
19 #include <libxml/xmlreader.h>
20 
21 class DtList;
22 class DtMetafileRecord;
23 class DtFilename;
25 
26 // \brief Represents a metaflight terrain reader.
27 // This class represents a reader for the MetaFlight format. Metaflight files
28 // describe the structure, organization, file naming and coordinate systems of
29 // all the datasets that comprise a single, more complex database.
31 {
32 
33 public:
34 
35  // Constructor
37 
38  // Destructor
39  virtual ~DtMetaFlightReader();
40 
41  // Save the database in dted format.
42  virtual bool Save(const DtFilename& name);
43 
44  // Loads terrain database file named filename, returning the data in
45  // terrain. The terrain pointer passed in must be initialized before calling
46  // loadTerrain.
47  virtual bool loadTerrain(const DtFilename& filename, DtTerrainDatabase* terrain);
48 
49  // Loads terrain database file named filename, returning the data in
50  // terrain. The initializer object is used to pass in additional information
51  // about the terrain to be loaded. The terrain pointer passed in must be
52  // initialized before calling loadTerrain.
53  virtual bool loadTerrain(const DtFilename& filename, DtTerrainDatabase* terrain,
54  const DtTerrainInitializer* initializer);
55 
56  // Returns "metaflight"
57  virtual const DtString dataType() const;
58 
59  static DtTerrainReader* create();
60 
61  // Returns only the coordinate system that would define this database. Should not load
62  // any polygonal or vector information
63  virtual Coordinate_System* coordinateSystem(const DtFilename& filename);
64 
65  virtual int optionalFileFlags(const DtFilename& filename)
66  {
67  return 0;
68  }
69 
70 protected:
71 
72  // copy constructor
74 
75  // assignment operator
77 
78 };
79 
80 #endif
81 
Contains the DtGdbTerrainReader class declaration.
virtual int optionalFileFlags(const DtFilename &filename)
Definition: metaFlightReader.h:65
virtual const DtString dataType() const =0
virtual bool loadTerrain(const DtFilename &filename, DtTerrainDatabase *terrain)=0
Definition: coordSystem.h:54
#define DT_DLL_mtflt
Definition: mtfltDefines.h:23
Definition: terrainReader.h:41
Definition: metafileRecord.h:28
Definition: metaFlightReader.h:30
Definition: terrainInitializer.h:16
virtual Coordinate_System * coordinateSystem(const DtFilename &filename)=0
Definition: terrainDatabase.h:148
DtTerrainReader & operator=(const DtTerrainReader &orig)

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)