]> git.mxchange.org Git - flightgear.git/blob - src/Environment/precipitation_mgr.hxx
2d2457976bff202b7cbc6d362fe3ed5dd22f0a79
[flightgear.git] / src / Environment / precipitation_mgr.hxx
1 /**
2  * @file precipitation_mgr.hxx
3  * @author Nicolas VIVIEN
4  * @date 2008-02-10
5  *
6  * @note Copyright (C) 2008 Nicolas VIVIEN
7  *
8  * @brief Precipitation manager
9  *   This manager calculate the intensity of precipitation in function of the altitude,
10  *   calculate the wind direction and velocity, then update the drawing of precipitation.
11  *
12  * @par Licences
13  *   This program is free software; you can redistribute it and/or
14  *   modify it under the terms of the GNU General Public License as
15  *   published by the Free Software Foundation; either version 2 of the
16  *   License, or (at your option) any later version.
17  *
18  *   This program is distributed in the hope that it will be useful, but
19  *   WITHOUT ANY WARRANTY; without even the implied warranty of
20  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  *   General Public License for more details.
22  *
23  *   You should have received a copy of the GNU General Public License
24  *   along with this program; if not, write to the Free Software
25  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26  *
27  * @par CVS
28  *   $Id$
29  */
30
31 #ifndef _PRECIPITATION_MGR_HXX
32 #define _PRECIPITATION_MGR_HXX
33
34 #include <simgear/environment/precipitation.hxx>
35
36 #include "precipitation_mgr.hxx"
37
38
39 class FGPrecipitationMgr {
40 private:
41         osg::Group *group;
42         osg::MatrixTransform *transform;
43         SGPrecipitation *precipitation;
44         float getPrecipitationAtAltitudeMax(void);
45
46
47 public:
48         FGPrecipitationMgr();
49         ~FGPrecipitationMgr();
50         bool update(void);
51         osg::Group * getObject(void);
52 };
53
54 #endif
55