X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2Facmodel.hxx;h=edaaad77cbda801aa658aa43ac96a959fbafadb4;hb=2beb0f29afba98c49606a4b929a49bda4f6db91a;hp=743f162ea6a87a6f36ae672e60d6066ed21005b7;hpb=f1c03ed9579de0b0f70fb237e63e0cf59f3202ce;p=flightgear.git diff --git a/src/Model/acmodel.hxx b/src/Model/acmodel.hxx index 743f162ea..edaaad77c 100644 --- a/src/Model/acmodel.hxx +++ b/src/Model/acmodel.hxx @@ -1,4 +1,4 @@ -// model.hxx - manage a 3D aircraft model. +// acmodel.hxx - manage a 3D aircraft model. // Written by David Megginson, started 2002. // // This file is in the Public Domain, and comes with no warranty. @@ -6,23 +6,19 @@ #ifndef __ACMODEL_HXX #define __ACMODEL_HXX 1 -#ifndef __cplusplus -# error This library requires C++ -#endif +#include +#include +#include -#include +#include +#include // for SGSubsystem -SG_USING_STD(string); -SG_USING_STD(vector); -#include +// Don't pull in the headers, since we don't need them here. +class SGModelPlacement; +class FGFX; -#include
- -#include "model.hxx" - - -class FGAircraftModel : public FGSubsystem +class FGAircraftModel : public SGSubsystem { public: @@ -30,21 +26,26 @@ public: virtual ~FGAircraftModel (); virtual void init (); + virtual void shutdown (); + virtual void reinit (); virtual void bind (); virtual void unbind (); - virtual void update (int dt); - virtual void draw (); - virtual FG3DModel * get3DModel() { return _aircraft; } + virtual void update (double dt); + virtual SGModelPlacement * get3DModel() { return _aircraft.get(); } + virtual SGVec3d& getVelocity() { return _velocity; } private: - - FG3DModel * _aircraft; - ssgRoot * _scene; - float _nearplane; - float _farplane; - + void deinit (); + + std::auto_ptr _aircraft; + std::auto_ptr _interior; + + SGVec3d _velocity; + SGSharedPtr _fx; + + SGPropertyNode_ptr _speed_n; + SGPropertyNode_ptr _speed_e; + SGPropertyNode_ptr _speed_d; }; #endif // __ACMODEL_HXX - -