void fgInitView() {
// force update of model so that viewer can get some data...
globals->get_aircraft_model()->update(0);
+ // run update for current view so that data is current...
globals->get_viewmgr()->update(0);
}
// model or control parameters are set
fgAircraftInit(); // In the future this might not be the case.
+ // copy viewer settings into current-view path
+ globals->get_viewmgr()->copyToCurrent();
+
fgInitView();
globals->get_controls()->reset_all();
views.push_back(v);
v->init();
}
+ // copies current offset settings to current-view path...
+ void copyToCurrent ();
private:
void setNear_m (double near_m);
void setViewAxisLong (double axis);
void setViewAxisLat (double axis);
- void copyToCurrent ();
typedef vector < FGViewer * > viewer_list;
viewer_list views;