]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/sky/cloudfield.hxx
hla: Provide a directly property based api for property data element.
[simgear.git] / simgear / scene / sky / cloudfield.hxx
index 5b7bb6f7195c05e5f7812c87c7f54728c213c75a..77f504b6503723aec1e9966761eacf97af7dda49 100644 (file)
@@ -73,8 +73,8 @@ private:
         float Rnd(float);
         
   // Radius of the LoD nodes for the dynamic quadtrees.
-  static const float RADIUS_LEVEL_1 = 20000.0f;
-  static const float RADIUS_LEVEL_2 = 5000.0f;
+  static float RADIUS_LEVEL_1;
+  static float RADIUS_LEVEL_2;
 
        // this is a relative position only, with that we can move all clouds at once
        SGVec3f relative_position;
@@ -130,23 +130,26 @@ public:
         * @param lat specifies a rotation about the new Y axis
         * @param dt the time elapsed since the last call
         * @param asl altitude of the layer
-  * @param speed of cloud layer movement (due to wind)
-  * @param direction of cloud layer movement (due to wind)
+        * @param speed of cloud layer movement (due to wind)
+        * @param direction of cloud layer movement (due to wind)
         */
         bool reposition( const SGVec3f& p, const SGVec3f& up,
                   double lon, double lat, double dt, int asl, float speed, float direction);
 
         osg::Group* getNode() { return field_root.get(); }
 
-       // visibility distance for clouds in meters
-       static float CloudVis;
+        // visibility distance for clouds in meters
+             static float CloudVis;
 
-       static SGVec3f view_vec, view_X, view_Y;
+             static SGVec3f view_vec, view_X, view_Y;
 
         static float view_distance;
         static double timer_dt;
-       static float fieldSize;
-       static bool wrap;
+        static float fieldSize;
+             static bool wrap;
+       
+        static bool getWrap(void) { return wrap; }
+        static void setWrap(bool w) { wrap = w; }
 
         static float getVisRange(void) { return view_distance; }
         static void setVisRange(float d) { view_distance = d; }