VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
dted
geoid_grid.h
Go to the documentation of this file.
1
#ifndef dted_geoid_grid_H_
2
#define dted_geoid_grid_H_
3
4
#include "
dted/dtedDefines.h
"
5
6
#include <string>
7
#include <vector>
8
9
class
DT_DLL_dted
Dt_geoid_grid
10
{
11
public
:
12
// data type we're storing
13
typedef
double
value_type
;
14
// index into array of value_types
15
typedef
unsigned
int
index_type
;
16
17
Dt_geoid_grid
();
18
Dt_geoid_grid
(std::string
const
& filename);
19
20
bool
load(std::string
const
& filename);
21
void
unload();
22
bool
loaded()
const
;
23
24
bool
load_ascii_grid(std::string
const
& filename);
25
26
value_type
value_at_index(
index_type
ilat,
index_type
ilon)
const
;
27
value_type
get_value(
value_type
lat,
value_type
lon)
const
;
28
29
std::string print_values(
value_type
lat,
value_type
lon)
const
;
30
31
index_type
lat_index(
value_type
lat)
const
;
32
index_type
lon_index(
value_type
lon)
const
;
33
34
private
:
35
value_type
minlat_, maxlat_,
minlon_
, maxlon_;
36
value_type
latspacing_,
lonspacing_
;
37
index_type
latbands_,
lonbands_
;
38
std::vector<value_type>
data_
;
39
};
40
41
#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
)