Esempio n. 1
0
        //todo this stuff below is too tightly coupled to implementtion for winforms
        public static void GotoLookAt(KmlFeature feature)
        {
            //todo add sky support
            CameraParameters camera = new CameraParameters();

            camera.Lat      = feature.LookAt.latitude;
            camera.Lng      = feature.LookAt.longitude;
            camera.Rotation = feature.LookAt.heading / 180 * Math.PI;
            camera.Angle    = -feature.LookAt.tilt / 180 * Math.PI;
            camera.Zoom     = UiTools.MetersToZoom(feature.LookAt.range);
            TourPlace p = new TourPlace(feature.Name, camera, Classification.Unidentified, "", ImageSetType.Earth, SolarSystemObjects.Earth);

            Earth3d.MainWindow.GotoTarget(p, false, false, true);
        }