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
20 #include <simgear/structure/ssgSharedPtr.hxx>
23 // Don't pull in the headers, since we don't need them here.
26 class SGModelPlacement;
29 class FGAircraftModel : public SGSubsystem
34 virtual ~FGAircraftModel ();
38 virtual void unbind ();
39 virtual void update (double dt);
41 virtual SGModelPlacement * get3DModel() { return _aircraft; }
42 void select( bool s ) { _selector->select( s ? 0xffffffff : 0 ); }
46 SGModelPlacement * _aircraft;
47 ssgSharedPtr<ssgSelector> _selector;
48 ssgSharedPtr<ssgRoot> _scene;
54 #endif // __ACMODEL_HXX