]> git.mxchange.org Git - flightgear.git/blob - src/Model/model_panel.hxx
Added a <solve-weight> subtag of the approach/cruise parameters that can
[flightgear.git] / src / Model / model_panel.hxx
1 // model.hxx - manage a 3D aircraft model.
2 // Written by David Megginson, started 2002.
3 //
4 // This file is in the Public Domain, and comes with no warranty.
5
6 #ifndef __MODEL_HXX
7 #define __MODEL_HXX 1
8
9 #ifndef __cplusplus
10 # error This library requires C++
11 #endif
12
13 #include <vector>
14
15 SG_USING_STD(vector);
16
17 #include <plib/sg.h>
18 #include <plib/ssg.h>
19
20 #include <simgear/math/point3d.hxx>
21 #include <simgear/props/props.hxx>
22
23
24 // Don't pull in the headers, since we don't need them here.
25 class ssgBranch;
26 class ssgEntity;
27 class ssgRangeSelector;
28 class ssgSelector;
29 class ssgTransform;
30
31 class SGInterpTable;
32 class FGCondition;
33 class FGLocation;
34
35
36 // Has anyone done anything *really* stupid, like making min and max macros?
37 #ifdef min
38 #undef min
39 #endif
40 #ifdef max
41 #undef max
42 #endif
43
44
45 /**
46  * Load a 3D model with or without XML wrapper.  This version supports
47  * also loading the instrument panel and is wired in with dependencies
48  * on panelnode.hxx, and thus files in src/Cockpit and also GUI/mouse
49  * input code to support the 3d clickable hotspots.
50  *
51  * If the path ends in ".xml", then it will be used as a property-
52  * list wrapper to add animations to the model.
53  *
54  * Subsystems should not normally invoke this function directly;
55  * instead, they should use the SGModelLoader declared in loader.hxx.
56  */
57 ssgBranch *fgLoad3DModelPanel( const string& fg_root, const string &path,
58                                SGPropertyNode *prop_root,
59                                double sim_time_sec );
60
61
62 #endif // __MODEL_HXX