X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fwxradar.hxx;h=639302bdc61ea94bb55dd06ec44ecd45e23658f9;hb=1df5347a06d5f38bc6d6267f242d5331b7c6f02b;hp=1bac75e8b54e7ef752453953328f878c45016425;hpb=3922c121631a159d911a96353aad06a3d8896769;p=flightgear.git diff --git a/src/Instrumentation/wxradar.hxx b/src/Instrumentation/wxradar.hxx index 1bac75e8b..639302bdc 100644 --- a/src/Instrumentation/wxradar.hxx +++ b/src/Instrumentation/wxradar.hxx @@ -30,14 +30,11 @@ #include #include -#include #include -#include #include using std::vector; -using std::queue; using std::string; class FGODGauge; @@ -54,7 +51,7 @@ public: virtual void valueChanged(SGPropertyNode *); protected: - string _name; + std::string _name; int _num; double _time; double _interval; @@ -93,13 +90,11 @@ protected: SGPropertyNode *getInstrumentNode(const char *name, DefaultType value); private: - string _texture_path; + std::string _texture_path; typedef enum { ARC, MAP, PLAN, ROSE, BSCAN} DisplayMode; DisplayMode _display_mode; - string _last_switchKnob; - float _range_nm; float _scale; // factor to convert nm to display units float _angle_offset; @@ -132,6 +127,8 @@ private: SGPropertyNode_ptr _radar_ref_rng_node; SGPropertyNode_ptr _radar_hdg_marker_node; SGPropertyNode_ptr _radar_rotate_node; + SGPropertyNode_ptr _radar_tcas_node; + SGPropertyNode_ptr _radar_absalt_node; SGPropertyNode_ptr _font_node; SGPropertyNode_ptr _ai_enabled_node; @@ -146,10 +143,12 @@ private: osg::Matrixf _centerTrans; osg::ref_ptr _font; osg::Vec4 _font_color; + osg::Vec4 _tcas_colors[4]; float _font_size; float _font_spacing; - list_of_SGWxRadarEcho _radarEchoBuffer; +// FIXME: implementation of radar echoes missing +// list_of_SGWxRadarEcho _radarEchoBuffer; void update_weather(); void update_aircraft(); @@ -157,6 +156,8 @@ private: void update_heading_marker(); void update_data(const SGPropertyNode *ac, double alt, double heading, double radius, double bearing, bool selected); + bool update_tcas(const SGPropertyNode *model,double range,double user_alt,double alt, + double bearing,double radius, bool absMode); void center_map(); void apply_map_offset(); void updateFont();