#include STL_STRING
SG_USING_STD(string);
+// #include <iostream>
+// SG_USING_STD(cout);
+// SG_USING_STD(endl);
+
/**
* A class layer to model a single cloud layer
* of the cloud layer. The elevation of the top of the layer is
* elevation_m + thickness_m.
* @param elevation_m the layer elevation in meters
+ * @param set_span defines whether it is allowed to adjust the span
*/
- void setElevation_m (float elevation_m);
+ void setElevation_m (float elevation_m, bool set_span = true);
/** get the layer thickness */
float getThickness_m () const;
* set the cloud movement direction
* @param dir the cloud movement direction
*/
- inline void setDirection(float dir) { direction = dir; }
+ inline void setDirection(float dir) {
+ // cout << "cloud dir = " << dir << endl;
+ direction = dir;
+ }
/** get the cloud movement direction */
inline float getDirection() { return direction; }
* set the cloud movement speed
* @param sp the cloud movement speed
*/
- inline void setSpeed(float sp) { speed = sp; }
+ inline void setSpeed(float sp) {
+ // cout << "cloud speed = " << sp << endl;
+ speed = sp;
+ }
/** get the cloud movement speed */
inline float getSpeed() { return speed; }
// from winds, and to simulate the clouds being tied to ground
// position, not view position
// double xoff, yoff;
- double last_lon, last_lat;
-
+ double last_lon, last_lat, last_course;
};