public override void Execute() { PluginGeoVisWnd viewer = _smartSession.SmartWindowManager.ActiveViewer as PluginGeoVisWnd; if (viewer == null) { return; } else { UCGeoVIS vis = viewer.Controls[0] as UCGeoVIS; vis.Viewer.Terrain.TerrainMapped = false; } }
public override void Execute() { PluginGeoVisWnd viewer = _smartSession.SmartWindowManager.ActiveViewer as PluginGeoVisWnd; if (viewer == null) { return; } else { UCGeoVIS vis = viewer.Controls[0] as UCGeoVIS; vis.Viewer.CurrentTool = vis.Viewer.CreateMeasureTool(GeoVisSDK.Measure.MeasureType.Area); } }
public override void Execute() { PluginGeoVisWnd viewer = _smartSession.SmartWindowManager.ActiveViewer as PluginGeoVisWnd; if (viewer == null) { return; } else { UCGeoVIS vis = viewer.Controls[0] as UCGeoVIS; vis.Viewer.Pose = new CameraPose(Angle.FromDegrees(40), Angle.FromDegrees(105), GeoVisViewer.Radius * 1); } }
public override void Execute() { PluginGeoVisWnd viewer = _smartSession.SmartWindowManager.ActiveViewer as PluginGeoVisWnd; if (viewer == null) { return; } else { UCGeoVIS vis = viewer.Controls[0] as UCGeoVIS; vis.LonLat.SetStatus(NodeStatus.Visible, !vis.LonLat.GetStatus(NodeStatus.Visible)); vis.Viewer.UpdateView(false); } }
public override void Execute(string argument) { PluginGeoVisWnd viewer = _smartSession.SmartWindowManager.ActiveViewer as PluginGeoVisWnd; if (viewer == null) { return; } else { float result; UCGeoVIS vis = viewer.Controls[0] as UCGeoVIS; float.TryParse(argument, out result); vis.Viewer.Terrain.VerticalExaggration = result; vis.Viewer.Terrain.TerrainMapped = true; viewer.Refresh(); } }
public override void Execute() { try { ISmartWindow[] wnds = _smartSession.SmartWindowManager.GetSmartWindows((wnd) => { return(wnd.GetType().Equals(typeof(PluginGeoVisWnd))); }); if (wnds == null || wnds.Length == 0) { PluginGeoVisWnd wnd = new PluginGeoVisWnd(); wnd.Session = _smartSession; _smartSession.SmartWindowManager.DisplayWindow(wnd); } else { _smartSession.SmartWindowManager.DisplayWindow(wnds[0]); } } catch (Exception) { } }
public override void Execute() { try { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "LDF File(*.ldf)|*.ldf|Image File (*.rst)|*.rst|(*.img)|*.img|(*.tif)|*.tif|(*.*)|*.*"; if (dlg.ShowDialog() == DialogResult.OK) { PluginGeoVisWnd viewer = _smartSession.SmartWindowManager.ActiveViewer as PluginGeoVisWnd; if (viewer == null) { return; } else { vis = viewer.Controls[0] as UCGeoVIS; vis.Img = IGeoImage.GeoOpen(dlg.FileName); if (vis.Img == null) { return; } vis.Img.SetPara(3, new int[] { 6, 2, 1 }, new float[] { 0, 0, 0 }, new float[] { 1000, 1000, 1000 }); OViewNode node = vis.Viewer.CreateViewNode(ViewNodeType.GeoQuadTileSet); node.Name = Path.GetFileNameWithoutExtension(dlg.FileName); node.Tag = vis.Img; vis.Viewer.Root.InsertNode(vis.Viewer.Root.ChildrenCount, node); double alt = GeoVisViewer.Radius * Math.Abs(Math.Sin(Angle.DegreeToRadians * ((vis.Img.CurGeoRegion.MaxLon - vis.Img.CurGeoRegion.MinLon)))); EarthGoto(vis.Img.CurGeoRegion.CenterLatitude, vis.Img.CurGeoRegion.CenterLongitude, alt); } } } catch (Exception ex) { MsgBox.ShowInfo(ex.Message); } }