Exemplo n.º 1
0
        /// <summary>
        /// 重置
        /// </summary>
        public override void Reset()
        {
            base.Reset();

            _AxRenderControl.RcObjectEditFinish -= new _IRenderControlEvents_RcObjectEditFinishEventHandler(_AxRenderControl_RcObjectEditFinish);
            _rcObjectEditFinish = null;

            _AxRenderControl.InteractMode          = gviInteractMode.gviInteractNormal;
            _AxRenderControl.MouseSelectObjectMask = gviMouseSelectObjectMask.gviSelectNone;
            _AxRenderControl.MouseSelectMode       = gviMouseSelectMode.gviMouseSelectClick;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 计算最高点
        /// </summary>
        public override void CalculateTop()
        {
            _AxRenderControl.RcObjectEditFinish -= new _IRenderControlEvents_RcObjectEditFinishEventHandler(_AxRenderControl_RcObjectEditFinish);
            _rcObjectEditFinish = null;
            _AxRenderControl.RcObjectEditFinish += new _IRenderControlEvents_RcObjectEditFinishEventHandler(_AxRenderControl_RcObjectEditFinish);
            _rcObjectEditFinish = new _IRenderControlEvents_RcObjectEditFinishEventHandler(_AxRenderControl_RcObjectEditFinish);

            _AxRenderControl.InteractMode          = gviInteractMode.gviInteractEdit;
            _AxRenderControl.MouseSelectObjectMask = gviMouseSelectObjectMask.gviSelectTerrain;
            _AxRenderControl.MouseSelectMode       = gviMouseSelectMode.gviMouseSelectClick;

            StartDraw();
        }