- SGGeod geodEyePoint = SGGeod::fromCart(_absolute_view_pos);
- geodEyePoint.setElevationM(0);
- _zero_elev = SGVec3d::fromGeod(geodEyePoint);
-
- SGQuatd hlOr = SGQuatd::fromLonLat(geodEyePoint);
- _surface_south = toVec3f(hlOr.backTransform(-SGVec3d::e1()));
- _surface_east = toVec3f(hlOr.backTransform(SGVec3d::e2()));
- _world_up = toVec3f(hlOr.backTransform(-SGVec3d::e3()));
-
- // Update viewer's postion data for the eye location...
- _lon_deg = _location->getLongitude_deg();
- _lat_deg = _location->getLatitude_deg();
- _alt_ft = _location->getAltitudeASL_ft();
- _roll_deg = _location->getRoll_deg();
- _pitch_deg = _location->getPitch_deg();
- _heading_deg = _location->getHeading_deg();
-
- // Update viewer's postion data for the target (at object) location
- if (_type == FG_LOOKAT) {
- _target_lon_deg = _target_location->getLongitude_deg();
- _target_lat_deg = _target_location->getLatitude_deg();
- _target_alt_ft = _target_location->getAltitudeASL_ft();
- _target_roll_deg = _target_location->getRoll_deg();
- _target_pitch_deg = _target_location->getPitch_deg();
- _target_heading_deg = _target_location->getHeading_deg();
- }
-