Exemple #1
0
 public void Escape(ISpatialDisplayTool tool)
 {
     if (Object.ReferenceEquals(tool, m_Tool))
     {
         this.Cursor = Cursors.Default;
         m_Tool      = null;
     }
 }
Exemple #2
0
 void EscapeCurrentTool()
 {
     if (m_Tool != null)
     {
         m_Tool.Escape();
         m_Tool = null;
     }
 }
Exemple #3
0
        bool ZoomRectangle()
        {
            //	If we are currently auto-highlighting, temporarily disable
            //	for the duration of the zoom, and ensure that any currently
            //	highlighted features are drawn normally.
            //if ( m_AutoHighlight>0 ) m_AutoHighlight = -m_AutoHighlight;
            //m_Sel.RemoveSel();


            m_Tool = new ZoomRectangleTool(this);
            return(m_Tool.Start());
        }
 bool Magnify()
 {
     mapPanel.Focus();
     m_Tool = new MagnifyTool(this);
     return m_Tool.Start();
 }
 void EscapeCurrentTool()
 {
     if (m_Tool!=null)
     {
         m_Tool.Escape();
         m_Tool = null;
     }
 }
 public void Finish(ISpatialDisplayTool tool)
 {
     Debug.Assert(Object.ReferenceEquals(tool, m_Tool));
     m_Tool = null;
     this.Cursor = Cursors.Default;
 }
 public void Escape(ISpatialDisplayTool tool)
 {
     if (Object.ReferenceEquals(tool, m_Tool))
     {
         this.Cursor = Cursors.Default;
         m_Tool = null;
     }
 }
        bool ZoomRectangle()
        {
            //	If we are currently auto-highlighting, temporarily disable
            //	for the duration of the zoom, and ensure that any currently
            //	highlighted features are drawn normally.
            //if ( m_AutoHighlight>0 ) m_AutoHighlight = -m_AutoHighlight;
            //m_Sel.RemoveSel();

            m_Tool = new ZoomRectangleTool(this);
            return m_Tool.Start();
        }
 bool Pan()
 {
     m_Tool = new PanTool(this);
     return m_Tool.Start();
 }
Exemple #10
0
 bool NewCenter()
 {
     m_Tool = new NewCenterTool(this);
     return m_Tool.Start();
 }
Exemple #11
0
 public void Finish(ISpatialDisplayTool tool)
 {
     Debug.Assert(Object.ReferenceEquals(tool, m_Tool));
     m_Tool      = null;
     this.Cursor = Cursors.Default;
 }
Exemple #12
0
 bool Pan()
 {
     m_Tool = new PanTool(this);
     return(m_Tool.Start());
 }
Exemple #13
0
 bool Magnify()
 {
     mapPanel.Focus();
     m_Tool = new MagnifyTool(this);
     return(m_Tool.Start());
 }
Exemple #14
0
 bool NewCenter()
 {
     m_Tool = new NewCenterTool(this);
     return(m_Tool.Start());
 }