Beispiel #1
0
        private void lstBookmarks_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            //Get a bookmark corresponding to list and apply it to the SceneViewer
            IBookmark3D bookmark = (IBookmark3D)m_Bookmarks.get_Element(lstBookmarks.SelectedIndex);

            //Switch to new bookmark location
            bookmark.Apply(axSceneControl1.SceneViewer, false, 0);
        }
Beispiel #2
0
        public void Move2Bookmark(string markName)
        {
            ISceneBookmarks2 sceneBookmarks = globe as ISceneBookmarks2;
            IBookmark3D      bookmark3D     = null;

            sceneBookmarks.FindBookmark(markName, out bookmark3D);
            if (bookmark3D != null)
            {
                bookmark3D.Apply(globe.GlobeDisplay.ActiveViewer, true, 0);
                globe.GlobeDisplay.RefreshViewers();
            }
        }