VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
flt
fltReader.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
#pragma once
6
#ifndef fltReader_H_
7
#define fltReader_H_
8
9
#include "
flt/mgWrapperInterface.h
"
10
#include "
flt/fltDefines.h
"
11
#include "
gdb/gdbNode.h
"
12
#include "
geometry/color.h
"
13
#include "
gdb/terrainReader.h
"
14
#include "
flt/surfaceCharacteristicMap.h
"
15
#include "
flt/flightTerrainInitializer.h
"
16
17
#include <vlutil/vlConfig.h>
18
#include <list>
19
#include <map>
20
#include <string>
21
#include "vlutil/vlDynamic.h"
22
23
#define API_LEV2
24
25
class
DtGroup
;
26
27
class
DT_DLL_flt
DtFltReader
:
public
DtTerrainReader
28
{
29
public
:
30
31
DtFltReader
();
32
virtual
~
DtFltReader
();
33
34
// Loads terrain database file named filename, returning the data in
35
// terrain. The terrain pointer passed in must be initialized before
36
// calling loadTerrain.
37
virtual
bool
loadTerrain
(
const
DtFilename&
filename
,
38
DtTerrainDatabase
* terrain);
39
40
// Loads terrain database file named filename, returning the data in
41
// terrain. The initializer object is used to pass in additional information
42
// about the terrain to be loaded. The terrain pointer passed in must be
43
// initialized before calling loadTerrain.
44
virtual
bool
loadTerrain
(
const
DtFilename& filename,
45
DtTerrainDatabase
* terrain,
46
const
DtTerrainInitializer
* initializer);
47
48
// Returns "flt"
49
virtual
const
DtString
dataType
()
const
;
50
51
static
DtTerrainReader
* create();
52
53
// virtual DtSurfaceCharacteristicMap surfaceCharacteristicMap() const;
54
// virtual void setSurfaceCharacteristicMap(const DtSurfaceCharacteristicMap& newSurfaceCharacteristicMap);
55
56
57
// Load from the given OpenFlight file. This is done by init() (after it
58
// initializes the mgapi) and then calls xlateOpenFlightFile to do the
59
// actual translation. Then it "reduces" the database and updates the
60
// extents.
61
bool
loadFromFile(
const
DtFilename& filename);
62
63
//Appends a an external flight file to the reader's database
64
void
addFlightFile(
const
DtFilename& filename,
DtTerrainDatabase
*terrain);
65
66
// Returns only the coordinate system that would define this database. Should not load
67
// any polygonal or vector information
68
virtual
Coordinate_System
*
coordinateSystem
(
const
DtFilename& filename);
69
70
virtual
int
optionalFileFlags
(
const
DtFilename& filename)
71
{
72
return
0;
73
}
74
75
protected
:
76
DtMgWrapperInterface
*
myMgWrapperInterface
;
77
78
// Holds possible spheroid information
79
DtFlightTerrainInitializer
myFltInit
;
80
81
static
const
DtString
theCharacteristicMapName
;
82
};
83
84
#endif
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)