Esempio n. 1
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     if (strUnion == false)
     {
         return;
     }
     repGeoMap();
 }
Esempio n. 2
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     //IActiveView pAcv = exportmap.axPageLayoutControl1.ActiveView.FocusMap as IActiveView;
     //IDisplayTransformation displayTransformation = pAcv.ScreenDisplay.DisplayTransformation;
     //displayTransformation.VisibleBounds = axMapControl1.Extent;//设置焦点地图的可视范围
     //exportmap.axPageLayoutControl1.ActiveView.Refresh();
     //CopyAndOverwriteMap(axMapControl1, exportmap.axPageLayoutControl1);
 }
Esempio n. 3
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     //IActiveView pActiveView = (IActiveView)axPageLayoutControl1.ActiveView.FocusMap;
     //IDisplayTransformation displayTransformation = pActiveView.ScreenDisplay.DisplayTransformation;
     //displayTransformation.VisibleBounds = axMapControl1.Extent;
     //axPageLayoutControl1.ActiveView.Refresh();
     //   CopyAndOverwriteMap();
 }
Esempio n. 4
0
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            pActiveview           = (IActiveView)axPageLayoutControl1.ActiveView.FocusMap;
            IDisplayTransformation displayTransformation = pActiveview.ScreenDisplay.DisplayTransformation;

            displayTransformation.VisibleBounds = axMapControl1.Extent;
            axPageLayoutControl1.ActiveView.Refresh();
            CopyToPageLayout();//拷贝到布局视图方法
        }
Esempio n. 5
0
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            pActiveView           = axPageLayoutControl1.ActiveView.FocusMap as IActiveView;
            IDisplayTransformation displayTransformation = pActiveView.ScreenDisplay.DisplayTransformation;

            displayTransformation.VisibleBounds = axMapControl1.Extent;
            axPageLayoutControl1.ActiveView.Refresh();
            BasicMethod.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
        }
Esempio n. 6
0
        private void mapControl_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            activeView            = (IActiveView)pagelayoutcontrol.ActiveView.FocusMap; //axPageLayoutControl1的活动视图的地图
            IDisplayTransformation displayTransformation = activeView.ScreenDisplay.DisplayTransformation;     //活动视图的屏幕显示的显示信息

            displayTransformation.VisibleBounds = mapControl.Extent;                                           //将axMapControl1的范围赋值给axPageLayoutControl1的范围
            pagelayoutcontrol.ActiveView.Refresh();                                                            //刷新axPageLayoutControl1的活动视图
            copyToPageLayout();                                                                                //将axMapControl1的地图拷贝到axPageLayoutControl1中
        }
Esempio n. 7
0
        /// <summary>
        /// 地图绘制完毕
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainMapControl_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            pActiveView           = (IActiveView)MainPageLayoutControl.ActiveView.FocusMap;
            IDisplayTransformation displayTransformation = pActiveView.ScreenDisplay.DisplayTransformation;

            displayTransformation.VisibleBounds = MainMapControl.Extent;
            MainPageLayoutControl.ActiveView.Refresh();
            CopyToPageLayout();
        }
Esempio n. 8
0
 //主地图:屏幕更新完毕
 private void axMapControlMainMap_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     #region 布局控件:主地图屏幕更新完毕,布局控件与之关联
     IActiveView            pActiveView            = axPageLayoutControl.ActiveView.FocusMap as IActiveView;
     IDisplayTransformation pDisplayTransformation = pActiveView.ScreenDisplay.DisplayTransformation;
     pDisplayTransformation.VisibleBounds = axMapControlMainMap.Extent;
     axPageLayoutControl.ActiveView.Refresh();
     //copyMapToPageLayout();
     #endregion
 }
Esempio n. 9
0
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            activeView            = (IActiveView)axPageLayoutControl1.ActiveView.FocusMap;
            IDisplayTransformation displayTransformation = activeView.ScreenDisplay.DisplayTransformation;

            //根据MapControl的视图范围,确定PageLayoutControl的视图范围
            displayTransformation.VisibleBounds = axMapControl1.Extent;
            axPageLayoutControl1.ActiveView.Refresh();
            copyToPageLayout();
        }
Esempio n. 10
0
        //当MapControl中的地图数据发生重绘时,PageLayoutControl视图也发生相应变化
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            //获得axPageLayoutControl1当前视图
            IActiveView pPageLayoutView = (IActiveView)axPageLayoutControl1.ActiveView.FocusMap;
            //获得显示转换
            IDisplayTransformation pDisplayTransformation = pPageLayoutView.ScreenDisplay.DisplayTransformation;

            pDisplayTransformation.VisibleBounds = axMapControl1.Extent;//设置范围
            axPageLayoutControl1.ActiveView.Refresh();
            //根据MapControl的视图范围,确定PageLayoutControl的视图范围
            CopyMapFromMapControlToPageLayoutControl();
        }
Esempio n. 11
0
        void axMapControl_main_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            // 范围同步
            IActiveView pActiveView = axPageLayoutControl_main.ActiveView.FocusMap as IActiveView;

            pActiveView.ScreenDisplay.DisplayTransformation.VisibleBounds = m_pMapC2.Extent;
            pActiveView.Refresh();
            // 内容同步
            IObjectCopy pObjectCopy  = new ObjectCopyClass();
            object      copyMap      = pObjectCopy.Copy(m_pMapC2.Map);
            object      overwriteMap = pActiveView;

            pObjectCopy.Overwrite(copyMap, overwriteMap);
        }
Esempio n. 12
0
 //加载数据没有新建文档时使用
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     //// 当主地图显示控件的地图更换时,鹰眼中的地图也跟随更换
     //this.axMapControl2.Map = new MapClass();
     //// 添加主地图控件中的所有图层到鹰眼控件中
     //for (int i = 1; i <= this.axMapControl1.LayerCount; i++)
     //{
     //    this.axMapControl2.AddLayer(this.axMapControl1.get_Layer(this.axMapControl1.LayerCount - i));
     //}
     //// 设置 MapControl 显示范围至数据的全局范围
     //this.axMapControl2.Extent = this.axMapControl1.FullExtent;
     //// 刷新鹰眼控件地图
     //this.axMapControl2.Refresh();
 }
Esempio n. 13
0
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            //Report to the user the number of Ink Sketches that are present

            IElement           pElement;
            IGraphicsContainer pContainer;
            int i = 0;

            m_pMap     = axMapControl1.Map;
            pContainer = (IGraphicsContainer)m_pMap;
            pContainer.Reset();
            pElement = pContainer.Next();

            while (pElement != null)
            {
                if (pElement is InkGraphic)
                {
                    i = i + 1;
                }
                pElement = pContainer.Next();
            }
            tbxNumber.Text = i.ToString();
        }
Esempio n. 14
0
        private void ArcGisMapControl_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            //判断节点编辑中的选择节点,用于刷新画节点
            if (MoData.v_bVertexSelectionTracker == false)
            {
                return;
            }

            IEnumFeature pEnumFeature = m_Hook.MapControl.Map.FeatureSelection as IEnumFeature;

            if (pEnumFeature == null || m_Hook.MapControl.Map.SelectionCount != 1)
            {
                return;
            }
            pEnumFeature.Reset();
            IFeature pFeature = pEnumFeature.Next();

            if (pFeature == null)
            {
                return;
            }

            ModPublic.DrawEditSymbol(pFeature.Shape, m_Hook.MapControl.ActiveView);
        }
Esempio n. 15
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     //IActiveView pAcv = exportmap.axPageLayoutControl1.ActiveView.FocusMap as IActiveView;
     //IDisplayTransformation displayTransformation = pAcv.ScreenDisplay.DisplayTransformation;
     //displayTransformation.VisibleBounds = axMapControl1.Extent;//设置焦点地图的可视范围
     //exportmap.axPageLayoutControl1.ActiveView.Refresh();
     //CopyAndOverwriteMap(axMapControl1, exportmap.axPageLayoutControl1);
 }
Esempio n. 16
0
 private void axMapControl3_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     axPageLayoutControl1.MousePointer = esriControlsMousePointer.esriPointerDefault;
     axMapControl2.MousePointer = esriControlsMousePointer.esriPointerDefault;
     axMapControl3.MousePointer = esriControlsMousePointer.esriPointerDefault;
     SetExtent2();
 }
Esempio n. 17
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     OperateFile.Use_OnAfterScreenDraw(axMapControl1, axPageLayoutControl1);
 }
Esempio n. 18
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     //m_HookHelp.ActiveView.Refresh();
     //m_Hook.MapControl.ActiveView.Refresh();
 }
Esempio n. 19
0
 private void axMapControl_Main_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     MyUtils.AE.CopyMapToLayoutView();
 }
Esempio n. 20
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
 }
Esempio n. 21
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     IActiveView pActiveView = axPageLayoutControl1.ActiveView.FocusMap as IActiveView;
     IDisplayTransformation displayTransformation = pActiveView.ScreenDisplay.DisplayTransformation;
     displayTransformation.VisibleBounds = axMapControl1.Extent;
     axPageLayoutControl1.ActiveView.Refresh();
     BasicMethod.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
 }
Esempio n. 22
0
 private void axMapControl_Main_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
     AeUtils.CopyMap();
 }
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            //Report to the user the number of Ink Sketches that are present

            IElement pElement;
            IGraphicsContainer pContainer;
            int i = 0;

            m_pMap = axMapControl1.Map;
            pContainer = (IGraphicsContainer)m_pMap;
            pContainer.Reset();
            pElement = pContainer.Next();

            while (pElement != null)
            {
                if (pElement is InkGraphic)
                    i = i + 1;
                pElement = pContainer.Next();
            }
            tbxNumber.Text = i.ToString();	
        }
Esempio n. 24
0
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IObjectCopy pOCopy = new ObjectCopyClass();
            System.Object pToCopyMap = axMapControl1.Map;
            System.Object pCopiedMap = pOCopy.Copy(pToCopyMap);
            System.Object pToOverMap = axPageLayoutControl1.ActiveView.FocusMap;

            pOCopy.Overwrite(pCopiedMap, ref pToOverMap);
            axPageLayoutControl1.ActiveView.Refresh();
        }
Esempio n. 25
0
 private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
 {
 }