VR-Forces 4.6 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
geoidGrid.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
DtGeoidGrid
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
DtGeoidGrid
();
18
DtGeoidGrid
(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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)