X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FEnvironment%2Ffgclouds.hxx;h=34ac595e311a7d275b96d18c29fbd264711d5024;hb=6eadcb8dfcd6f925dac73cb5a023e5bb73921b47;hp=8a14f7f6ff023556c2b09063cb7db69aa695e651;hpb=d9bfd5a425df1bad7e3c53a64adce871e299a6b9;p=flightgear.git diff --git a/src/Environment/fgclouds.hxx b/src/Environment/fgclouds.hxx index 8a14f7f6f..34ac595e3 100644 --- a/src/Environment/fgclouds.hxx +++ b/src/Environment/fgclouds.hxx @@ -32,47 +32,32 @@ #include -SG_USING_STD(string); +using std::string; -class SGNewCloud; class SGCloudField; -class FGMetar; -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); + 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 coverage); - void buildMETAR(void); - - void buildScenario( const string& scenario ); - - 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