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 <simgear/structure/subsystem_mgr.hxx> // for SGSubsystem
22 // Don't pull in the headers, since we don't need them here.
25 class SGModelPlacement;
28 class FGAircraftModel : public SGSubsystem
33 virtual ~FGAircraftModel ();
37 virtual void unbind ();
38 virtual void update (double dt);
40 virtual SGModelPlacement * get3DModel() { return _aircraft; }
41 void select( bool s ) { _selector->select( s ? 0xffffffff : 0 ); }
45 SGModelPlacement * _aircraft;
46 ssgSelector * _selector;
53 #endif // __ACMODEL_HXX