FlightGear next
Highlight.cxx File Reference
#include "Highlight.hxx"
#include "simgear/misc/strutils.hxx"
#include <Model/acmodel.hxx>
#include <Main/globals.hxx>
#include <FDM/fdm_shell.hxx>
#include <FDM/flight.hxx>
#include <simgear/scene/util/StateAttributeFactory.hxx>
#include <osg/Material>
#include <osg/PolygonMode>
#include <osg/PolygonOffset>
#include <osg/Texture2D>
#include <algorithm>
#include <map>
#include <string>
#include <iterator>

Go to the source code of this file.

Classes

struct  NameValue
 
struct  NodeHighlighting
 
struct  FdmInitialisedListener
 

Functions

static std::string s_getMenuName (SGPropertyNode *node)
 
static bool operator< (const HighlightMenu &a, const HighlightMenu &b)
 
static std::string canonical (const std::string property)
 
SGSubsystemMgr::Registrant< HighlightregistrantHighlight (SGSubsystemMgr::INIT)
 

Variables

static std::map< std::string, HighlightInfos_property_to_info
 
static std::map< osg::ref_ptr< osg::Node >, std::set< std::string > > s_node_to_properties
 
static std::map< std::string, std::set< std::string > > s_dialog_to_properties
 
static std::map< std::string, std::set< std::string > > s_keypress_to_properties
 
static std::map< HighlightMenu, std::set< std::string > > s_menu_to_properties
 
static std::map< HighlightMenu, std::string > s_menu_to_dialog
 
static std::map< std::string, std::set< HighlightMenu > > s_dialog_to_menus
 
static std::map< std::string, std::set< std::string > > s_property_to_properties
 
static std::map< std::string, std::set< std::string > > s_property_from_properties
 
static std::set< NameValues_property_tree_items
 
static SGPropertyNode_ptr s_prop_enabled = nullptr
 
static bool s_output_stats = false
 
static std::unique_ptr< struct NodeHighlightings_node_highlighting
 
std::unique_ptr< struct FdmInitialisedListeners_fdm_initialised_listener
 
static const HighlightInfo info_empty
 
static const std::set< std::string > set_string_empty
 
static const std::set< HighlightMenuset_menu_empty
 

Function Documentation

◆ canonical()

static std::string canonical ( const std::string property)
static

Definition at line 378 of file Highlight.cxx.

◆ operator<()

static bool operator< ( const HighlightMenu & a,
const HighlightMenu & b )
static

Definition at line 52 of file Highlight.cxx.

◆ registrantHighlight()

SGSubsystemMgr::Registrant< Highlight > registrantHighlight ( SGSubsystemMgr::INIT )

◆ s_getMenuName()

static std::string s_getMenuName ( SGPropertyNode * node)
static

Definition at line 23 of file Highlight.cxx.

Variable Documentation

◆ info_empty

const HighlightInfo info_empty
static

Definition at line 545 of file Highlight.cxx.

◆ s_dialog_to_menus

std::map<std::string, std::set<HighlightMenu> > s_dialog_to_menus
static

Definition at line 80 of file Highlight.cxx.

◆ s_dialog_to_properties

std::map<std::string, std::set<std::string> > s_dialog_to_properties
static

Definition at line 75 of file Highlight.cxx.

◆ s_fdm_initialised_listener

std::unique_ptr<struct FdmInitialisedListener> s_fdm_initialised_listener

Definition at line 92 of file Highlight.cxx.

◆ s_keypress_to_properties

std::map<std::string, std::set<std::string> > s_keypress_to_properties
static

Definition at line 76 of file Highlight.cxx.

◆ s_menu_to_dialog

std::map<HighlightMenu, std::string> s_menu_to_dialog
static

Definition at line 79 of file Highlight.cxx.

◆ s_menu_to_properties

std::map<HighlightMenu, std::set<std::string> > s_menu_to_properties
static

Definition at line 77 of file Highlight.cxx.

◆ s_node_highlighting

std::unique_ptr<struct NodeHighlighting> s_node_highlighting
static

Definition at line 90 of file Highlight.cxx.

◆ s_node_to_properties

std::map<osg::ref_ptr<osg::Node>, std::set<std::string> > s_node_to_properties
static

Definition at line 74 of file Highlight.cxx.

◆ s_output_stats

bool s_output_stats = false
static

Definition at line 88 of file Highlight.cxx.

◆ s_prop_enabled

SGPropertyNode_ptr s_prop_enabled = nullptr
static

Definition at line 87 of file Highlight.cxx.

◆ s_property_from_properties

std::map<std::string, std::set<std::string> > s_property_from_properties
static

Definition at line 83 of file Highlight.cxx.

◆ s_property_to_info

std::map<std::string, HighlightInfo> s_property_to_info
static

Definition at line 72 of file Highlight.cxx.

◆ s_property_to_properties

std::map<std::string, std::set<std::string> > s_property_to_properties
static

Definition at line 82 of file Highlight.cxx.

◆ s_property_tree_items

std::set<NameValue> s_property_tree_items
static

Definition at line 85 of file Highlight.cxx.

◆ set_menu_empty

const std::set<HighlightMenu> set_menu_empty
static

Definition at line 547 of file Highlight.cxx.

◆ set_string_empty

const std::set<std::string> set_string_empty
static

Definition at line 546 of file Highlight.cxx.