#include <vector>
#include "fgfs.hxx"
-#include "viewer_lookat.hxx"
-#include "viewer_rph.hxx"
+#include "viewer.hxx"
SG_USING_STD(vector);
virtual void init ();
virtual void bind ();
virtual void unbind ();
- virtual void update (int dt);
+ virtual void update (double dt);
// getters
inline int size() const { return views.size(); }
if ( current >= (int)views.size() ) {
current = 0;
}
+ copyToCurrent();
return views[current];
}
inline FGViewer *prev_view() {
inline void set_view( const int v ) { current = v; }
inline void add_view( FGViewer * v ) {
views.push_back(v);
+ v->init();
}
+ // copies current offset settings to current-view path...
+ void copyToCurrent ();
private:
void setPilotZOffset_m (double z);
double getFOV_deg () const;
void setFOV_deg (double fov);
+ double getNear_m () const;
+ void setNear_m (double near_m);
void setViewAxisLong (double axis);
void setViewAxisLat (double axis);