VR-Forces 4.6.1 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
dted
dtedReader.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: dtedTdb.h,v $ $Revision: 1.18 $ $State: Exp $
7
*********************************************************************/
8
#ifndef dtedReader_H_
9
#define dtedReader_H_
10
11
#include "
dted/dtedDefines.h
"
12
#include "
gdb/terrainReader.h
"
13
14
class
DtList;
15
class
DtFilename;
16
class
DtSurfaceManager
;
17
class
DtTerrainInitializer
;
18
class
DtDtedInitializer
;
19
20
//
21
// Instances of DtDtedReader are a list of DtDtedCells.
22
class
DT_DLL_dted
DtDtedReader
:
public
DtTerrainReader
23
{
24
25
public
:
26
27
// constructor
28
DtDtedReader
();
29
30
// destructor
31
virtual
~
DtDtedReader
();
32
33
virtual
bool
loadTerrain
(
const
DtFilename&
filename
,
DtTerrainDatabase
* terrain);
34
35
virtual
bool
loadTerrain
(
const
DtFilename& path,
DtTerrainDatabase
* terrain,
36
const
DtTerrainInitializer
* initializer );
37
38
// Returns "dted"
39
virtual
const
DtString
dataType
()
const
;
40
41
static
DtTerrainReader
* create();
42
43
// Returns only the coordinate system that would define this database. Should not load
44
// any polygonal or vector information
45
virtual
Coordinate_System
*
coordinateSystem
(
const
DtFilename& filename);
46
47
protected
:
48
49
// copy constructor
50
DtDtedReader
(
const
DtDtedReader
& orig);
51
52
// assignment operator
53
DtDtedReader
&
operator=
(
const
DtDtedReader
& orig);
54
55
// Load a dted database (filename is the filename of a terrain metafile).
56
// We need the path to this file in case the dted files specified in the
57
// record are relative paths.
58
virtual
bool
Load(
const
DtFilename& filename,
const
DtDtedInitializer
* i);
59
60
bool
testInvariant()
const
;
61
62
virtual
int
optionalFileFlags
(
const
DtFilename& filename)
63
{
64
return
0;
65
}
66
67
protected
:
68
69
DtList*
myDtedCellList
;
70
int
myPostSpacing
;
71
72
static
const
unsigned
int
theNumColorGradations
;
73
static
const
unsigned
int
theDefaultDt0Spacing
;
74
static
const
unsigned
int
theDefaultDt1Spacing
;
75
static
const
unsigned
int
theDefaultDt2Spacing
;
76
77
};
78
79
#endif
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)