]> git.mxchange.org Git - flightgear.git/blob - src/Main/model.hxx
If the model path specified ends with .xml, then read properties from
[flightgear.git] / src / Main / model.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 "fgfs.hxx"
14 #include <simgear/misc/props.hxx>
15 #include <simgear/timing/timestamp.hxx>
16
17 class FGAircraftModel : public FGSubsystem
18 {
19 public:
20
21   FGAircraftModel ();
22   virtual ~FGAircraftModel ();
23
24   virtual void init ();
25   virtual void bind ();
26   virtual void unbind ();
27   virtual void update (int dt);
28
29 private:
30
31   SGPropertyNode * _props;
32   ssgEntity * _object;
33   ssgSelector * _selector;
34   ssgTransform * _position;
35
36   SGTimeStamp _last_timestamp;
37   SGTimeStamp _current_timestamp;
38
39   ssgTransform * _prop_position;
40
41 };
42
43 extern FGAircraftModel current_model;
44
45 #endif // __MODEL_HXX
46