Esempio n. 1
0
        /// <summary>
        /// 创建工具
        /// </summary>
        /// <param name="hook">程序实例</param>
        public override void OnCreate(object hook)
        {
            try
            {
                m_hookHelper      = new HookHelperClass();
                m_hookHelper.Hook = hook;
                if (m_hookHelper.ActiveView == null)
                {
                    m_hookHelper = null;
                }
            }
            catch
            {
                m_hookHelper = null;
            }

            if (m_hookHelper == null)
            {
                base.m_enabled = false;
            }
            else
            {
                base.m_enabled = true;
            }

            //IMapControl3 mapControl = hook as IMapControl3;
            m_mapControl    = DataEditCommon.g_pMyMapCtrl;
            m_rotateTracker = new EngineRotateTrackerClass();

            //m_engineEditor = DataEditCommon.g_engineEditor;
        }
Esempio n. 2
0
 /// <summary>
 /// 是否双击
 /// </summary>
 /// <params name="pRotateTracker"></params>
 /// <returns></returns>
 private bool DoubleCheck(IRotateTracker pRotateTracker)
 {
     if (pRotateTracker.Angle > -3.15 || pRotateTracker.Angle < 3.15)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// 创建工具
        /// </summary>
        /// <params name="hook">程序实例</params>
        public override void OnCreate(object hook)
        {
            try
            {
                m_hookHelper      = new HookHelperClass();
                m_hookHelper.Hook = hook;
                if (m_hookHelper.ActiveView == null)
                {
                    m_hookHelper = null;
                }
            }
            catch
            {
                m_hookHelper = null;
            }

            m_enabled       = m_hookHelper != null;
            m_mapControl    = DataEditCommon.g_pMyMapCtrl;
            m_rotateTracker = new EngineRotateTrackerClass();
        }
Esempio n. 4
0
 /// <summary>
 /// �Ƿ�˫��
 /// </summary>
 /// <params name="pRotateTracker"></params>
 /// <returns></returns>
 private bool DoubleCheck(IRotateTracker pRotateTracker)
 {
     if (pRotateTracker.Angle > -3.15 || pRotateTracker.Angle < 3.15)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Esempio n. 5
0
        /// <summary>
        /// ��������
        /// </summary>
        /// <params name="hook">����ʵ��</params>
        public override void OnCreate(object hook)
        {
            try
            {
                m_hookHelper = new HookHelperClass();
                m_hookHelper.Hook = hook;
                if (m_hookHelper.ActiveView == null)
                {
                    m_hookHelper = null;
                }
            }
            catch
            {
                m_hookHelper = null;
            }

            m_enabled = m_hookHelper != null;
            m_mapControl = DataEditCommon.g_pMyMapCtrl;
            m_rotateTracker = new EngineRotateTrackerClass();
        }