Ejemplo n.º 1
0
        public void DeleteBookmark(string markName)
        {
            ISceneBookmarks2 sceneBookmarks = globe as ISceneBookmarks2;
            IBookmark3D      bookmark3D     = null;

            sceneBookmarks.FindBookmark(markName, out bookmark3D);
            if (bookmark3D != null)
            {
                sceneBookmarks.RemoveBookmark(bookmark3D);
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 3
0
        public BookmarkManager(ESRI.ArcGIS.Controls.AxGlobeControl axGlobeControl1)
        {
            globe = axGlobeControl1.Globe;
            ISceneBookmarks2 sceneBookmarks = globe as ISceneBookmarks2;

            m_BookmarkArray = sceneBookmarks.Bookmarks;
            for (int i = 0; i < sceneBookmarks.BookmarkCount; i++)
            {
                IBookmark3D pBookmark = new Bookmark3DClass();
                pBookmark = m_BookmarkArray.get_Element(i) as IBookmark3D;
            }
        }