VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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
value_type lonspacing_
Definition: geoidGrid.h:36
unsigned int index_type
Definition: geoidGrid.h:15
value_type minlon_
Definition: geoidGrid.h:35
#define DT_DLL_dted
Definition: dtedDefines.h:23
std::vector< value_type > data_
Definition: geoidGrid.h:38
Definition: geoidGrid.h:9
index_type lonbands_
Definition: geoidGrid.h:37
double value_type
Definition: geoidGrid.h:13

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)