public void OnMouseMove(int button, int shift, int x, int y) { try { IPoint pMovePt = null; pMovePt = m_activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(x, y); if (m_moveGeoFeedBack == null) { return; } m_moveGeoFeedBack.MoveTo(pMovePt); } catch (Exception ex) { throw; } }
public void OnMouseMove(int button, int shift, int x, int y) { try { IPoint pMovePt = null; pMovePt = m_activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(x, y); if (m_moveGeoFeedBack == null) { return; } m_moveGeoFeedBack.MoveTo(pMovePt); } catch (Exception ex) { //SysLogHelper.WriteOperationLog("移动要素错误", ex.Source, "数据编辑"); } }
public override void OnMouseUp(int Button, int Shift, int X, int Y) { if (Button != 1) { return; } if (m_MapControl.Map.SelectionCount == 0 || m_pMoveGeometryFeedback == null || m_pNewLineFeedback == null || m_pPtStart == null) { return; } IPoint pPtFinal = m_hookHelper.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y); m_pNewLineFeedback.Stop(); m_pMoveGeometryFeedback.MoveTo(pPtFinal); //发生移动则移动所有要素 if (m_pPtStart.X != pPtFinal.X || m_pPtStart.Y != pPtFinal.Y) { MoveAllFeature(m_pMoveSet, m_pPtStart, pPtFinal, MoData.v_CurWorkspaceEdit, m_MapControl.Map); m_MapControl.ActiveView.Refresh(); } m_bMouseDown = false; }