Howto:Start core development: Difference between revisions

Jump to navigation Jump to search
m (Fix internal wiki links)
Line 112: Line 112:


Finally you will want to familiarize yourself with the data that is exposed in the property tree.  This is an excellent learning tool.  When running
Finally you will want to familiarize yourself with the data that is exposed in the property tree.  This is an excellent learning tool.  When running
FlightGear, bring up the Property browser from the file menu.  This property tree is essential for much of the way in which configuration and data output
FlightGear, bring up the Property browser from the Debug menu.  This property tree is essential for much of the way in which configuration and data output
are handled in FlightGear.  For example the flight instruments are all configured using xml defined references to values in the property tree in
are handled in FlightGear.  For example the flight instruments are all configured using XML defined references to values in the property tree in
order to position needles, etc. Changing property values can be used to alter the configured behavior of FlightGear at startup using parameters and/or xml declarations, or on the fly using C++ property class functions in the code or from several other interfaces including the property browser (for example: try adjusting the cloud layer settings in the property browser under environment/clouds, you will see the effect right away).
order to position needles, etc. Changing property values can be used to alter the configured behavior of FlightGear at startup using parameters and/or XML declarations, or on the fly using C++ property class functions in the code or from several other interfaces including the property browser (for example: try adjusting the cloud layer settings in the property browser under environment/clouds, you will see the effect right away).


Speaking of instruments, you might want to take a look at how some of the instrumentation configuration (Aircraft/Instrumentation/*.xml files in the
Speaking of instruments, you might want to take a look at how some of the instrumentation configuration (Aircraft/Instrumentation/*.xml files in the
base package) in order to get an idea of how different parts of flightgear can be configured to communicate with other parts in a certain way through the
base package) in order to get an idea of how different parts of FlightGear can be configured to communicate with other parts in a certain way through the
property tree.  You can also look at the preferences.xml file to see an example of how startup configuration for various subsystems is handled through
property tree.  You can also look at the preferences.xml file to see an example of how startup configuration for various subsystems is handled through
the property tree.
the property tree.
1,089

edits

Navigation menu