]> git.mxchange.org Git - flightgear.git/blobdiff - DEM/dem.hxx
Tweaks to go along with scenery tools overhaul.
[flightgear.git] / DEM / dem.hxx
index de96a3700d871c4a485ed7ac0116ed84ea19bad7..44e91a8b011cb14a2921e7b84afd909f6b6d4e9a 100644 (file)
@@ -90,12 +90,13 @@ class fgDEM {
     double next_double();
 
     // return next exponential num from input stream
-    int next_exp();
+    double next_exp();
 
 public:
 
     // Constructor
     fgDEM( void );
+    fgDEM( const string& file );
 
     // open a DEM file (use "-" if input is coming from stdin)
     int open ( const string& file );
@@ -113,8 +114,12 @@ public:
     void read_b_record();
 
     // Informational methods
-    double info_originx( void ) { return(originx); }
-    double info_originy( void ) { return(originy); }
+    double get_originx( void ) { return originx; }
+    double get_originy( void ) { return originy; }
+    int get_cols( void ) { return cols; }
+    int get_rows( void ) { return rows; }
+    double get_col_step( void ) { return col_step; }
+    double get_row_step( void ) { return row_step; }
 
     // return the current altitude based on mesh data.  We should
     // rewrite this to interpolate exact values, but for now this is
@@ -145,6 +150,13 @@ public:
 
 
 // $Log$
+// Revision 1.10  1999/03/10 01:09:13  curt
+// Tweaks to go along with scenery tools overhaul.
+// Added a new constructor that accepts the file name.
+//
+// Revision 1.9  1998/10/16 19:08:14  curt
+// Portability updates from Bernie Bright.
+//
 // Revision 1.8  1998/09/19 17:59:46  curt
 // Use c++ streams (fg_gzifstream).  Also converted many character arrays to
 // the string class.