1 // acmodel.hxx - manage a 3D aircraft model.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain, and comes with no warranty.
7 #define __ACMODEL_HXX 1
13 #include <simgear/structure/subsystem_mgr.hxx> // for SGSubsystem
16 // Don't pull in the headers, since we don't need them here.
17 class SGModelPlacement;
20 class FGAircraftModel : public SGSubsystem
25 virtual ~FGAircraftModel ();
28 virtual void reinit ();
30 virtual void unbind ();
31 virtual void update (double dt);
32 virtual SGModelPlacement * get3DModel() { return _aircraft; }
33 virtual SGVec3d& getVelocity() { return _velocity; }
38 SGModelPlacement * _aircraft;
40 SGSharedPtr<FGFX> _fx;
42 SGPropertyNode_ptr _lon;
43 SGPropertyNode_ptr _lat;
44 SGPropertyNode_ptr _alt;
45 SGPropertyNode_ptr _pitch;
46 SGPropertyNode_ptr _roll;
47 SGPropertyNode_ptr _heading;
48 SGPropertyNode_ptr _speed_n;
49 SGPropertyNode_ptr _speed_e;
50 SGPropertyNode_ptr _speed_d;
53 #endif // __ACMODEL_HXX