]> git.mxchange.org Git - flightgear.git/blobdiff - src/WeatherCM/FGWeatherFeature.h
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / WeatherCM / FGWeatherFeature.h
index c0a261ad9412d3b532c266a839e60b8353df56d2..74d7e105bc0fcc49f22b9f5d1b00f576642774c0 100644 (file)
@@ -4,7 +4,7 @@
  Author:       Christian Mayer
  Date started: 28.05.99
 
- ---------- Copyright (C) 1999  Christian Mayer (vader@t-online.de) ----------
+ -------- Copyright (C) 1999 Christian Mayer (fgfs@christianmayer.de) --------
 
  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
@@ -36,6 +36,8 @@ HISTORY
 30.06.1999 Christian Mayer     STL portability
 11.10.1999 Christian Mayer     changed set<> to map<> on Bernie Bright's 
                                suggestion
+19.10.1999 Christian Mayer     change to use PLIB's sg instead of Point[2/3]D
+                               and lots of wee code cleaning
 *****************************************************************************/
 
 /****************************************************************************/
@@ -47,12 +49,10 @@ HISTORY
 /****************************************************************************/
 /* INCLUDES                                                                */
 /****************************************************************************/
-#include <Include/compiler.h>
-#include <vector>
-FG_USING_STD(vector);
-FG_USING_NAMESPACE(std);
+#include <simgear/compiler.h>
+
+#include <plib/sg.h>
 
-#include <Math/point3d.hxx>
 #include "FGWeatherDefs.h"
                
 /****************************************************************************/
@@ -74,16 +74,16 @@ class FGWeatherFeature
 {
 private:
 protected:
-    Point3D position;              //middle of the feature in lat/lon/alt
-    WeatherPrecition minSize;      //smalest size of the feature
+    sgVec3 position;               //middle of the feature in lat/lon/alt
+    WeatherPrecision minSize;      //smalest size of the feature
                                    //=> a disk is specifies
 
     LayerType FeatureType; 
 
 public:
-    LayerType getFeature(void) const { return FeatureType; }
-    bool isFeature(const LayerType& f) const {return (f == FeatureType);}
+    LayerType getFeature(void)         const { return FeatureType; }
+    bool isFeature(const LayerType& f) const { return (f == FeatureType); }
 };
 
 /****************************************************************************/
-#endif /*FGWeatherFeature_H*/
\ No newline at end of file
+#endif /*FGWeatherFeature_H*/