Started in | 01/2015 |
---|---|
Description | Canvas and MapStructure based Flight deck Framework (see: Canvas Animation Framework/Canvas MFD Framework) |
Maintainer(s) | www2 |
Contributor(s) | www2 |
Status | Early Prototyping for the FG1000 PFD |
Folders | $FG_ROOT/Aircraft/Instruments-3d/Farmin |
Topic branches: | |
fgdata | [1] |
Background
Development
Components
MFD
Top level helper class managing all related components.
ImageSource
An ImageSource will be an invisible Canvas representing the video/graphics output of a display.
var ImageSource = {
new: func(x,y) {
var m = {parents:[ImageSource]};
m.canvas = canvas.new({
"name": "ImageSource-"~name,
"size": [x, y],
"view": [x, y],
"mipmapping": 1
});
return m;
},
del: func() {
},
};
Screen
A Screen will merely be a placeholder for another Canvas referenced via canvas:// - so that arbitrary placements can be used to display a MFD screen.
var Screen = {
new: func() {
},
attach: func(source) {
},
del: func() {
},
};
ImageSourceSelector
A helper class to manage multiple image sources and hook them up to screens - i.e. for allowing MFDs to be shown on different screens.