1 // model.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
10 # error This library requires C++
19 #include <osg/ref_ptr>
23 #include <simgear/structure/subsystem_mgr.hxx> // for SGSubsystem
26 // Don't pull in the headers, since we don't need them here.
27 class SGModelPlacement;
30 class FGAircraftModel : public SGSubsystem
35 virtual ~FGAircraftModel ();
39 virtual void unbind ();
40 virtual void update (double dt);
41 virtual SGModelPlacement * get3DModel() { return _aircraft; }
42 virtual SGVec3f& getVelocity() { return _velocity; }
46 SGModelPlacement * _aircraft;
48 SGSharedPtr<FGFX> _fx;
50 SGPropertyNode_ptr _lon;
51 SGPropertyNode_ptr _lat;
52 SGPropertyNode_ptr _alt;
53 SGPropertyNode_ptr _pitch;
54 SGPropertyNode_ptr _roll;
55 SGPropertyNode_ptr _heading;
56 SGPropertyNode_ptr _speed_n;
57 SGPropertyNode_ptr _speed_e;
58 SGPropertyNode_ptr _speed_d;
61 #endif // __ACMODEL_HXX