1 /*****************************************************************************
3 Header: FGWeatherFeature.h
4 Author: Christian Mayer
7 -------- Copyright (C) 1999 Christian Mayer (fgfs@christianmayer.de) --------
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free Software
11 Foundation; either version 2 of the License, or (at your option) any later
14 This program is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19 You should have received a copy of the GNU General Public License along with
20 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21 Place - Suite 330, Boston, MA 02111-1307, USA.
23 Further information about the GNU General Public License can also be found on
24 the world wide web at http://www.gnu.org.
26 FUNCTIONAL DESCRIPTION
27 ------------------------------------------------------------------------------
28 Abstract class that every weather feature, such as wind layers, are derivated
32 ------------------------------------------------------------------------------
33 28.05.1999 Christian Mayer Created
34 16.06.1999 Durk Talsma Portability for Linux
35 20.06.1999 Christian Mayer added lots of consts
36 30.06.1999 Christian Mayer STL portability
37 11.10.1999 Christian Mayer changed set<> to map<> on Bernie Bright's
39 19.10.1999 Christian Mayer change to use PLIB's sg instead of Point[2/3]D
40 and lots of wee code cleaning
41 *****************************************************************************/
43 /****************************************************************************/
45 /****************************************************************************/
46 #ifndef FGWeatherFeature_H
47 #define FGWeatherFeature_H
49 /****************************************************************************/
51 /****************************************************************************/
52 #include <simgear/compiler.h>
56 #include "FGWeatherDefs.h"
58 /****************************************************************************/
60 /****************************************************************************/
70 /****************************************************************************/
71 /* CLASS DECLARATION */
72 /****************************************************************************/
73 class FGWeatherFeature
77 sgVec3 position; //middle of the feature in lat/lon/alt
78 WeatherPrecision minSize; //smalest size of the feature
79 //=> a disk is specifies
81 LayerType FeatureType;
84 LayerType getFeature(void) const { return FeatureType; }
85 bool isFeature(const LayerType& f) const { return (f == FeatureType); }
88 /****************************************************************************/
89 #endif /*FGWeatherFeature_H*/