X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fwxradar.hxx;h=7aff7771718b2be81c13b5b560f3de7d2b8a3223;hb=e59fabaf8276a0f49266e47ff2f59a93b0c7700c;hp=376410d1732e0d0bb638a17927eeb39212f3b46a;hpb=992b7ca8f4e58494b0bbc5ef7e228c65879ba0e8;p=flightgear.git diff --git a/src/Instrumentation/wxradar.hxx b/src/Instrumentation/wxradar.hxx index 376410d17..7aff77717 100644 --- a/src/Instrumentation/wxradar.hxx +++ b/src/Instrumentation/wxradar.hxx @@ -30,14 +30,10 @@ #include #include -#include #include #include -using std::vector; -using std::string; - class FGODGauge; class wxRadarBg : public SGSubsystem, public SGPropertyChangeListener { @@ -52,15 +48,15 @@ public: virtual void valueChanged(SGPropertyNode *); protected: - string _name; + std::string _name; int _num; double _time; double _interval; double _elapsed_time; double _persistance; - bool _sim_init_done; SGPropertyNode_ptr _serviceable_node; + SGPropertyNode_ptr _sceneryLoaded; SGPropertyNode_ptr _Instrument; SGPropertyNode_ptr _radar_mode_control_node; @@ -79,7 +75,7 @@ protected: double elapsed_time; }ground_echo; - typedef vector ground_echo_vector_type; + typedef std::vector ground_echo_vector_type; typedef ground_echo_vector_type::iterator ground_echo_vector_iterator; ground_echo_vector_type ground_echoes; @@ -91,13 +87,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; @@ -130,6 +124,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; @@ -144,10 +140,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(); @@ -155,6 +153,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();