1 // trisegs.hxx -- "Triangle" segment management class
3 // Written by Curtis Olson, started March 1999.
5 // Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 // (Log is kept at end of this file)
30 # error This library requires C++
34 #include <Include/compiler.h>
41 // a segment is two integer pointers into the node list
48 typedef vector < FGTriSeg > triseg_list;
49 typedef triseg_list::iterator triseg_list_iterator;
50 typedef triseg_list::const_iterator const_triseg_list_iterator;
61 // Constructor and destructor
62 FGTriSegments( void );
63 ~FGTriSegments( void );
65 // Add a point to the point list if it doesn't already exist.
66 // Returns the index (starting at zero) of the point in the list.
67 int unique_add( const FGTriSeg& s );
69 // return the master node list
70 inline triseg_list get_seg_list() const { return seg_list; }
72 // return the ith segment
73 inline FGTriSeg get_seg( int i ) const { return seg_list[i]; }
77 #endif // _TRISEGS_HXX
81 // Revision 1.1 1999/03/20 13:21:36 curt