]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/groundradar.hxx
Bugfix: ensure GPS WP1 Mag-bearing is normalised to [0..360]
[flightgear.git] / src / Instrumentation / groundradar.hxx
index 8839143faf32e8d679ae78237844af29e0ae565c..dc653f2c4d3666b47ec88b9db375bf0d707b1de9 100644 (file)
@@ -25,6 +25,9 @@
 #include <simgear/props/props.hxx>
 #include "od_gauge.hxx"
 
+// forward decls
+class FGRunwayBase;
+
 ////////////////////////////////////////////////////////////////////////
 // Built-in layer for the atc radar.
 ////////////////////////////////////////////////////////////////////////
@@ -32,6 +35,7 @@
 class GroundRadar : public SGPropertyChangeListener, public FGODGauge
 {
 public:
+    static const int TextureHalfSize = 256;
     GroundRadar(SGPropertyNode* node);
     virtual ~GroundRadar();
     void updateTexture();
@@ -39,8 +43,11 @@ public:
 
 protected:
     void createTexture(const char* texture_name);
-
-    osg::ref_ptr<osg::Geometry> _geom;
+    
+    void addRunwayVertices(const FGRunwayBase* aRunway, double aTowerLat, double aTowerLon, double aScale, osg::Vec3Array* aVertices);
+    osg::Geometry *addPavementGeometry(const FGPavement* aPavement, double aTowerLat, double aTowerLon, double aScale);
+    
+    osg::ref_ptr<osg::Geode> _geode;
     SGPropertyNode_ptr _airport_node;
     SGPropertyNode_ptr _range_node;
 };