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
14 #include <simgear/structure/subsystem_mgr.hxx> // for SGSubsystem
17 // Don't pull in the headers, since we don't need them here.
18 class SGModelPlacement;
21 class FGAircraftModel : public SGSubsystem
26 virtual ~FGAircraftModel ();
29 virtual void shutdown ();
30 virtual void reinit ();
32 virtual void unbind ();
33 virtual void update (double dt);
34 virtual SGModelPlacement * get3DModel() { return _aircraft.get(); }
35 virtual SGVec3d& getVelocity() { return _velocity; }
40 std::auto_ptr<SGModelPlacement> _aircraft;
41 std::auto_ptr<SGModelPlacement> _interior;
44 SGSharedPtr<FGFX> _fx;
46 SGPropertyNode_ptr _speed_n;
47 SGPropertyNode_ptr _speed_e;
48 SGPropertyNode_ptr _speed_d;
51 #endif // __ACMODEL_HXX