#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/math/SGMath.hxx>
-
-#include <Main/globals.hxx>
\f
////////////////////////////////////////////////////////////////////////
// Property management.
# include "config.h"
#endif
+#include "viewmgr.hxx"
+
#include <string.h> // strcmp
#include <simgear/compiler.h>
-
#include <Model/acmodel.hxx>
-
-#include "viewmgr.hxx"
-
+#include <Main/viewer.hxx>
+#include <Main/fg_props.hxx>
// Constructor
FGViewMgr::FGViewMgr( void ) :
get_current_view()->getInternal());
}
-
+void
+FGViewMgr::add_view( FGViewer * v )
+{
+ views.push_back(v);
+ v->init();
+}
+
double
FGViewMgr::getViewHeadingOffset_deg () const
{
#include <simgear/compiler.h>
#include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/math/SGMath.hxx>
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fg_props.hxx"
-#include "viewer.hxx"
-
-using std::vector;
-
+// forward decls
+class FGViewer;
+typedef SGSharedPtr<FGViewer> FGViewerPtr;
// Define a structure containing view information
class FGViewMgr : public SGSubsystem
// setters
inline void clear() { views.clear(); }
inline void set_view( const int v ) { current = v; }
- inline void add_view( FGViewer * v ) {
- views.push_back(v);
- v->init();
- }
+ void add_view( FGViewer * v );
+
// copies current offset settings to current-view path...
void copyToCurrent ();
SGPropertyNode_ptr view_number;
vector<SGPropertyNode_ptr> config_list;
- typedef vector<SGSharedPtr<FGViewer> > viewer_list;
+ typedef std::vector<FGViewerPtr> viewer_list;
viewer_list views;
SGVec3d abs_viewer_position;