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() {
// setters
inline void clear() { views.clear(); }
inline void set_view( const int v ) { current = v; }
- inline void add_view( FGViewer * v, int type ) {
+ inline void add_view( FGViewer * v ) {
views.push_back(v);
- v->setType(type);
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);
#endif // _VIEWMGR_HXX
-
-
-
-