VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
dted
dtedTdb.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 dtedTdb_H_
9
#define dtedTdb_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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)