VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
mtflt
mtFltTdb.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 mtFltTdb_H_
10
#define mtFltTdb_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;
24
class
DtTerrainInitializer
;
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.
30
class
DT_DLL_mtflt
DtMtFltReader
:
public
DtTerrainReader
31
{
32
33
public
:
34
35
// Constructor
36
DtMtFltReader
();
37
38
// Destructor
39
virtual
~
DtMtFltReader
();
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
73
DtMtFltReader
(
const
DtMtFltReader
& orig);
74
75
// assignment operator
76
DtMtFltReader
&
operator=
(
const
DtMtFltReader
& orig);
77
78
};
79
80
#endif
81
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)