VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
geodTdb.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: geodTdb.h,v $ $Revision: 1.11 $ $State: Exp $
7
*********************************************************************/
8
#ifndef geodTdb_H_
9
#define geodTdb_H_
10
11
// \file geodTdb.h
12
// \brief Contains the DtGeodeticReader class declaration.
13
14
#include "
gdb/gdbDefines.h
"
15
#include "
gdb/terrainReader.h
"
16
17
class
DtTerrainInitializer
;
18
class
DtTerrainDatabase
;
19
class
DtFilename;
20
21
//
22
// The DtGeodeticReader class is responsible for creating a simple terrain with
23
// a geodetic coordinate system. This class is essentially a simplified
24
// version of the DtExtentReader.
25
class
DT_DLL_gdb
DtGeodeticReader
:
public
DtTerrainReader
26
{
27
public
:
28
29
// default constructor
30
DtGeodeticReader
();
31
32
// destructor
33
virtual
~
DtGeodeticReader
();
34
35
private
:
36
// copy constructor & assignment operator not implemented. This class is
37
// not copyable or assignable
38
DtGeodeticReader
(
const
DtGeodeticReader
& orig);
39
DtGeodeticReader
&
operator=
(
const
DtGeodeticReader
& orig);
40
41
public
:
42
// Loads terrain database file named filename, returning the data in
43
// terrain. The terrain pointer passed in must be initialized before calling
44
// loadTerrain.
45
virtual
bool
loadTerrain
(
const
DtFilename& filename,
46
DtTerrainDatabase
* terrain);
47
48
// Loads terrain database file named filename, returning the data in
49
// terrain. The initializer object is used to pass in additional information
50
// about the terrain to be loaded. The terrain pointer passed in must be
51
// initialized before calling loadTerrain.
52
virtual
bool
loadTerrain
(
const
DtFilename& filename,
DtTerrainDatabase
* terrain,
53
const
DtTerrainInitializer
* initializer);
54
55
// Returns "geodetic"
56
virtual
const
DtString
dataType
()
const
;
57
58
// Returns only the coordinate system that would define this database. Should not load
59
// any polygonal or vector information
60
virtual
Coordinate_System
*
coordinateSystem
(
const
DtFilename& filename);
61
62
static
DtTerrainReader
* create();
63
64
virtual
int
optionalFileFlags
(
const
DtFilename& filename)
65
{
66
return
0;
67
}
68
};
69
70
inline
const
DtString
DtGeodeticReader::dataType
()
const
71
{
72
return
"geodetic"
;
73
}
74
75
#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
)