1
0
Fork 0
flightgear/src/Environment/fgclouds.hxx

64 lines
1.8 KiB
C++
Raw Normal View History

// Build a cloud layer based on metar
//
// Written by Harald JOHNSEN, started April 2005.
//
// Copyright (C) 2005 Harald JOHNSEN - hjohnsen@evc.net
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
2006-02-21 01:16:04 +00:00
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
//
#ifndef _FGCLOUDS_HXX
#define _FGCLOUDS_HXX
#include <string>
2013-03-27 22:48:43 +00:00
// forward decls
class SGPropertyNode;
class SGCloudField;
class FGClouds {
private:
2013-03-27 22:48:43 +00:00
double buildCloud(SGPropertyNode *cloud_def_root, SGPropertyNode *box_def_root,
const std::string& name, double grid_z_rand, SGCloudField *layer);
void buildLayer(int iLayer, const std::string& name, double coverage);
void buildCloudLayers(void);
int update_event;
2013-03-27 22:48:43 +00:00
bool clouds_3d_enabled;
2013-03-27 22:48:43 +00:00
int index;
bool add3DCloud(const SGPropertyNode *arg, SGPropertyNode * root);
bool delete3DCloud(const SGPropertyNode *arg, SGPropertyNode * root);
bool move3DCloud(const SGPropertyNode *arg, SGPropertyNode * root);
2013-03-27 22:48:43 +00:00
public:
FGClouds();
~FGClouds();
2011-04-21 20:43:05 +01:00
void Init(void);
int get_update_event(void) const;
void set_update_event(int count);
bool get_3dClouds() const;
void set_3dClouds(bool enable);
2011-04-21 20:43:05 +01:00
};
#endif // _FGCLOUDS_HXX
2011-04-21 20:43:05 +01:00