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;
50 SGPropertyNode * _lon;
51 SGPropertyNode * _lat;
52 SGPropertyNode * _alt;
53 SGPropertyNode * _pitch;
54 SGPropertyNode * _roll;
55 SGPropertyNode * _heading;
56 SGPropertyNode * _speed;
60 #endif // __ACMODEL_HXX