X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2Facmodel.hxx;h=b774874d233c39119ee4097d8244a0bda04ba586;hb=9bd00a62facf50830e4eeccfbf8ce57f4c1f444f;hp=0e6fe2235c54df27607fe985d9f0b240f548d7e6;hpb=3c7bdc31d9b0556430d75d75dffe780e5be96daa;p=flightgear.git diff --git a/src/Model/acmodel.hxx b/src/Model/acmodel.hxx index 0e6fe2235..b774874d2 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,25 +6,18 @@ #ifndef __ACMODEL_HXX #define __ACMODEL_HXX 1 -#ifndef __cplusplus -# error This library requires C++ -#endif +#include +#include +#include -#include - -SG_USING_STD(string); -SG_USING_STD(vector); - -#include
// for FGSubsystem +#include // for SGSubsystem // Don't pull in the headers, since we don't need them here. -class ssgRoot; -class ssgSelector; class SGModelPlacement; +class FGFX; - -class FGAircraftModel : public FGSubsystem +class FGAircraftModel : public SGSubsystem { public: @@ -32,20 +25,29 @@ public: virtual ~FGAircraftModel (); virtual void init (); + virtual void reinit (); virtual void bind (); virtual void unbind (); virtual void update (double dt); - virtual void draw (); virtual SGModelPlacement * get3DModel() { return _aircraft; } + virtual SGVec3d& getVelocity() { return _velocity; } private: - + void deinit (); + SGModelPlacement * _aircraft; - ssgSelector * _selector; - ssgRoot * _scene; - float _nearplane; - float _farplane; - + SGVec3d _velocity; + SGSharedPtr _fx; + + SGPropertyNode_ptr _lon; + SGPropertyNode_ptr _lat; + SGPropertyNode_ptr _alt; + SGPropertyNode_ptr _pitch; + SGPropertyNode_ptr _roll; + SGPropertyNode_ptr _heading; + SGPropertyNode_ptr _speed_n; + SGPropertyNode_ptr _speed_e; + SGPropertyNode_ptr _speed_d; }; #endif // __ACMODEL_HXX