1 // fixnode.hxx -- traverse the node file and fix the elevation of all the new
2 // interpolated points.
4 // Written by Curtis Olson, started November 1997.
6 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 // (Log is kept at end of this file)
36 #include "Include/fg_stl_config.h"
38 #ifdef NEEDNAMESPACESTD
42 #include <DEM/dem.hxx>
43 #include <Math/point3d.hxx>
46 typedef vector < Point3D > container;
47 typedef container::iterator iterator;
48 typedef container::const_iterator const_iterator;
51 // Initialize a new mesh structure
52 void load_nodes(const string& basename, container& node_list);
55 // load the extra nodes. These are always the first n nodes of the
56 // .node file. (??? These will be tagged with a code indicating what
57 // needs to be done with this node's elevation such as adjust to local
58 // DEM elevation, or massage the local DEM points to match this
59 // elevation point. ???)
60 void load_extra_nodes(const string& filename, container& node_list);
63 // fix the node elevations
64 void fix_nodes( const string& basename, fgDEM& dem, container& node_list );
71 // Revision 1.4 1998/10/20 15:49:23 curt
72 // Converted to Point3D class.
74 // Revision 1.3 1998/09/19 20:43:53 curt
75 // C++-ified and STL-ified the code. Combined triload.* and fixnode.* into
78 // Revision 1.2 1998/07/22 21:46:41 curt
79 // Fixed a bug that was triggering a seg fault.
81 // Revision 1.1 1998/04/08 23:05:56 curt
82 // Adopted Gnu automake/autoconf system.
84 // Revision 1.4 1998/03/19 02:50:19 curt
85 // Updated to support -lDEM class.
87 // Revision 1.3 1998/03/03 16:00:58 curt
88 // More c++ compile tweaks.
90 // Revision 1.2 1997/12/02 13:12:07 curt
91 // Updated to fix every node.
93 // Revision 1.1 1997/11/27 00:17:33 curt