X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2Facmodel.hxx;h=b774874d233c39119ee4097d8244a0bda04ba586;hb=9ab41ea15809c02ba46bf9e6911fbb1aa808b8b1;hp=1ef1f1b9927a2b1e411e65b8767c633e3aab2b4f;hpb=667e64e1ebc86a0c53112b92b53475898f315c36;p=flightgear.git diff --git a/src/Model/acmodel.hxx b/src/Model/acmodel.hxx index 1ef1f1b99..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,16 +6,6 @@ #ifndef __ACMODEL_HXX #define __ACMODEL_HXX 1 -#ifndef __cplusplus -# error This library requires C++ -#endif - -#include -#include - -using std::string; -using std::vector; - #include #include #include @@ -25,7 +15,7 @@ using std::vector; // Don't pull in the headers, since we don't need them here. class SGModelPlacement; - +class FGFX; class FGAircraftModel : public SGSubsystem { @@ -35,19 +25,29 @@ public: virtual ~FGAircraftModel (); virtual void init (); + virtual void reinit (); virtual void bind (); virtual void unbind (); virtual void update (double dt); virtual SGModelPlacement * get3DModel() { return _aircraft; } - void select( bool s ) { _selector->setValue( 0, s ); } + virtual SGVec3d& getVelocity() { return _velocity; } private: - + void deinit (); + SGModelPlacement * _aircraft; - osg::ref_ptr _selector; - 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