Howto:Creating a Canvas graph widget: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (cat: Canvas; Moving stub template to top)
Line 1: Line 1:
{{Stub}}
{{Template:Canvas Navigation}}
{{Template:Canvas Navigation}}
{{Stub}}


Also see: http://flightgear.org/forums/viewtopic.php?f=71&t=20024
Also see: http://flightgear.org/forums/viewtopic.php?f=71&t=20024
Line 15: Line 15:


== Classes ==
== Classes ==
* Axis
* Axis
** Range
** Range
Line 25: Line 24:
* Graph2D
* Graph2D
* PropertyPlotter
* PropertyPlotter
[[Category:Canvas]]

Revision as of 16:17, 12 March 2014

This article is a stub. You can help the wiki by expanding it.

Also see: http://flightgear.org/forums/viewtopic.php?f=71&t=20024

We want to develop a generic graph widget using the Canvas system. The widget shall be usable in all major placement modes, i.e. 1) dialogs, 2) standalone GUI windows, 3) aircraft instruments.

Such a widget would be useful for a whole number of purposes, including:

  • FDM/Autopilot tuning
  • Plotting internal statistics (system monitor)
  • Flight path evaluation (instructor station)

So the graph widget needs to be customizable for different plotting needs. In addition, we want to provide a PropertyPlotter implementation to directly plot properties from the property tree (altitude, speed, FDM/autopilot properties).

Classes

  • Axis
    • Range
    • Legend
  • VerticalAxis
  • HorizontalAxis
  • Style (Color, thickness)
  • Plottable
  • Graph2D
  • PropertyPlotter