X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Ffgclouds.hxx;h=8a956d74829c05b05c9f8ae973ce731bae7e8a18;hb=386aefe69358ce41a11c9afeb8f56e26758fe56b;hp=fd2a45a9cd25a65a7dad3ecf2087a244eecea9a6;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Environment/fgclouds.hxx b/src/Environment/fgclouds.hxx index fd2a45a9c..8a956d748 100644 --- a/src/Environment/fgclouds.hxx +++ b/src/Environment/fgclouds.hxx @@ -30,49 +30,38 @@ #include #include
-#include STL_STRING +#include -SG_USING_STD(string); +using std::string; -class SGNewCloud; +class SGSampleGroup; class SGCloudField; +class SGNewCloud; class FGMetar; -class FGEnvironmentCtrl; +//class FGEnvironmentCtrl; class FGClouds { private: - SGNewCloud *buildCloud(SGPropertyNode *cloud_def_root, const string& name); - void buildLayer(SGCloudField *layer, const string& name, double alt, double coverage); - - void buildMETAR(void); - - void buildScenario( const string& scenario ); + double buildCloud(SGPropertyNode *cloud_def_root, SGPropertyNode *box_def_root, const string& name, double grid_z_rand, SGCloudField *layer); + void buildLayer(int iLayer, const string& name, double alt, double coverage); - void setLayer( int iLayer, float alt_m, const string& coverage, const string& layer_type ); - - void update_metar_properties( const FGMetar *m ); - - void update_env_config (); + void buildCloudLayers(void); int update_event; SGSoundSample *snd_lightning; - FGEnvironmentCtrl * _controller; - float station_elevation_ft; - string last_scenario; - SGPropertyNode *last_env_config, *last_env_clouds; + bool clouds_3d_enabled; public: - FGClouds(FGEnvironmentCtrl * controller); + FGClouds(); ~FGClouds(); - void build(void); - void init(void); int get_update_event(void) const; void set_update_event(int count); - + bool get_3dClouds() const; + void set_3dClouds(bool enable); }; #endif // _FGCLOUDS_HXX