]> git.mxchange.org Git - flightgear.git/blob - src/Model/acmodel.hxx
16fc4552789325c3a46e405c989a01ff90bb1f18
[flightgear.git] / src / Model / acmodel.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 __ACMODEL_HXX
7 #define __ACMODEL_HXX 1
8
9 #ifndef __cplusplus
10 # error This library requires C++
11 #endif
12
13 #include <vector>
14 #include <string>
15
16 using std::string;
17 using std::vector;
18
19 #include <osg/ref_ptr>
20 #include <osg/Group>
21 #include <osg/Switch>
22
23 #include <simgear/structure/subsystem_mgr.hxx>  // for SGSubsystem
24
25
26 // Don't pull in the headers, since we don't need them here.
27 class SGModelPlacement;
28
29
30 class FGAircraftModel : public SGSubsystem
31 {
32 public:
33
34   FGAircraftModel ();
35   virtual ~FGAircraftModel ();
36
37   virtual void init ();
38   virtual void bind ();
39   virtual void unbind ();
40   virtual void update (double dt);
41   virtual SGModelPlacement * get3DModel() { return _aircraft; }
42
43 private:
44
45   SGModelPlacement * _aircraft;
46 };
47
48 #endif // __ACMODEL_HXX