|
From: Melchior F. <mf...@fl...> - 2007-06-30 08:56:43
|
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation
In directory baron:/tmp/cvs-serv16526
Modified Files:
Tag: PRE_OSG_PLIB_20061029
wxradar.cxx wxradar.hxx
Log Message:
Vivian MEAZZA: allow to turn off heading marker (symbol for own aircaft)
Index: wxradar.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation/wxradar.cxx,v
retrieving revision 1.9.2.16
retrieving revision 1.9.2.17
diff -C 2 -r1.9.2.16 -r1.9.2.17
*** wxradar.cxx 29 Jun 2007 14:37:51 -0000 1.9.2.16
--- wxradar.cxx 30 Jun 2007 08:53:07 -0000 1.9.2.17
***************
*** 135,138 ****
--- 135,139 ----
_radar_coverage_node = _Instrument->getNode("limit-deg", true);
_radar_ref_rng_node = _Instrument->getNode("reference-range-nm", true);
+ _radar_hdg_marker_node = _Instrument->getNode("heading-marker", true);
SGPropertyNode *n = _Instrument->getNode("display-controls", true);
***************
*** 147,150 ****
--- 148,153 ----
if (_radar_ref_rng_node->getType() == SGPropertyNode::NONE)
_radar_ref_rng_node->setDoubleValue(35);
+ if (_radar_hdg_marker_node->getType() == SGPropertyNode::NONE)
+ _radar_hdg_marker_node->setBoolValue(true);
_x_offset = 0;
***************
*** 632,635 ****
--- 635,641 ----
wxRadarBg::update_heading_marker()
{
+ if (!_radar_hdg_marker_node->getBoolValue())
+ return;
+
float col = 2 * UNIT;
float row = 3 * UNIT;
Index: wxradar.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Instrumentation/wxradar.hxx,v
retrieving revision 1.5.2.9
retrieving revision 1.5.2.10
diff -C 2 -r1.5.2.9 -r1.5.2.10
*** wxradar.hxx 28 Jun 2007 13:52:58 -0000 1.5.2.9
--- wxradar.hxx 30 Jun 2007 08:53:07 -0000 1.5.2.10
***************
*** 99,102 ****
--- 99,103 ----
SGPropertyNode_ptr _radar_coverage_node;
SGPropertyNode_ptr _radar_ref_rng_node;
+ SGPropertyNode_ptr _radar_hdg_marker_node;
SGPropertyNode_ptr _ai_enabled_node;
|