1 /*****************************************************************************
3 Header: FGWeatherFeature.h
4 Author: Christian Mayer
7 ---------- Copyright (C) 1999 Christian Mayer (vader@t-online.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 *****************************************************************************/
39 /****************************************************************************/
41 /****************************************************************************/
42 #ifndef FGWeatherFeature_H
43 #define FGWeatherFeature_H
45 /****************************************************************************/
47 /****************************************************************************/
48 #include <Include/compiler.h>
51 FG_USING_NAMESPACE(std);
53 #include <Math/point3d.hxx>
54 #include "FGWeatherDefs.h"
56 /****************************************************************************/
58 /****************************************************************************/
68 /****************************************************************************/
69 /* CLASS DECLARATION */
70 /****************************************************************************/
71 class FGWeatherFeature
75 Point3D position; //middle of the feature in lat/lon/alt
76 WeatherPrecition minSize; //smalest size of the feature
77 //=> a disk is specifies
79 LayerType FeatureType;
82 LayerType getFeature(void) const { return FeatureType; }
83 bool isFeature(const LayerType& f) const {return (f == FeatureType);}
86 /****************************************************************************/
87 #endif /*FGWeatherFeature_H*/