From 1011251504a4cb060e783b79bfccd4db6a390dc5 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 23 Apr 2012 13:59:01 +0100 Subject: [PATCH] Feature request for Syd - expose the ND view heading --- src/Instrumentation/NavDisplay.cxx | 2 ++ src/Instrumentation/NavDisplay.hxx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Instrumentation/NavDisplay.cxx b/src/Instrumentation/NavDisplay.cxx index c45a705ef..5c6720ae1 100644 --- a/src/Instrumentation/NavDisplay.cxx +++ b/src/Instrumentation/NavDisplay.cxx @@ -540,6 +540,7 @@ NavDisplay::init () _testModeNode = _Instrument->getChild("test-mode", 0, true); _testModeNode->setBoolValue(false); + _viewHeadingNode = _Instrument->getChild("view-heading-deg", 0, true); // OSG geometry setup _radarGeode = new osg::Geode; @@ -647,6 +648,7 @@ NavDisplay::update (double delta_time_sec) } else { _view_heading = _Instrument->getFloatValue("heading-up-deg", 0.0); } + _viewHeadingNode->setDoubleValue(_view_heading); double xCenterFrac = _xCenterNode->getDoubleValue(); double yCenterFrac = _yCenterNode->getDoubleValue(); diff --git a/src/Instrumentation/NavDisplay.hxx b/src/Instrumentation/NavDisplay.hxx index 3e7adc7fa..daa4ae34d 100644 --- a/src/Instrumentation/NavDisplay.hxx +++ b/src/Instrumentation/NavDisplay.hxx @@ -146,7 +146,8 @@ private: SGPropertyNode_ptr _navRadio1Node; SGPropertyNode_ptr _navRadio2Node; SGPropertyNode_ptr _xCenterNode, _yCenterNode; - + SGPropertyNode_ptr _viewHeadingNode; + osg::ref_ptr _symbolTexture; osg::ref_ptr _radarGeode; osg::ref_ptr _textGeode; -- 2.39.5