]> git.mxchange.org Git - flightgear.git/blob - src/WeatherCM/FGWeatherFeature.h
Various SGI portability tweaks.
[flightgear.git] / src / WeatherCM / FGWeatherFeature.h
1 /*****************************************************************************
2
3  Header:       FGWeatherFeature.h       
4  Author:       Christian Mayer
5  Date started: 28.05.99
6
7  ---------- Copyright (C) 1999  Christian Mayer (vader@t-online.de) ----------
8
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
12  version.
13
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
17  details.
18
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.
22
23  Further information about the GNU General Public License can also be found on
24  the world wide web at http://www.gnu.org.
25
26 FUNCTIONAL DESCRIPTION
27 ------------------------------------------------------------------------------
28 Abstract class that every weather feature, such as wind layers, are derivated
29 from
30
31 HISTORY
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 *****************************************************************************/
38
39 /****************************************************************************/
40 /* SENTRY                                                                   */
41 /****************************************************************************/
42 #ifndef FGWeatherFeature_H
43 #define FGWeatherFeature_H
44
45 /****************************************************************************/
46 /* INCLUDES                                                                 */
47 /****************************************************************************/
48 #include <Include/compiler.h>
49 #include <vector>
50 FG_USING_STD(vector);
51 FG_USING_NAMESPACE(std);
52
53 #include <Math/point3d.hxx>
54 #include "FGWeatherDefs.h"
55                 
56 /****************************************************************************/
57 /* DEFINES                                                                  */
58 /****************************************************************************/
59 enum LayerType {
60     fgWind,
61     fgTurbulence,
62     fgTemperature,
63     fgAirDensity,
64     fgCloud,
65     fgRain
66 };
67
68 /****************************************************************************/
69 /* CLASS DECLARATION                                                        */
70 /****************************************************************************/
71 class FGWeatherFeature
72 {
73 private:
74 protected:
75     Point3D position;               //middle of the feature in lat/lon/alt
76     WeatherPrecition minSize;       //smalest size of the feature
77                                     //=> a disk is specifies
78
79     LayerType FeatureType; 
80
81 public:
82     LayerType getFeature(void) const { return FeatureType; }
83     bool isFeature(const LayerType& f) const {return (f == FeatureType);}
84 };
85
86 /****************************************************************************/
87 #endif /*FGWeatherFeature_H*/