コード例 #1
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
 public void Escape(ISpatialDisplayTool tool)
 {
     if (Object.ReferenceEquals(tool, m_Tool))
     {
         this.Cursor = Cursors.Default;
         m_Tool      = null;
     }
 }
コード例 #2
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
 void EscapeCurrentTool()
 {
     if (m_Tool != null)
     {
         m_Tool.Escape();
         m_Tool = null;
     }
 }
コード例 #3
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
        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());
        }
コード例 #4
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
 bool Magnify()
 {
     mapPanel.Focus();
     m_Tool = new MagnifyTool(this);
     return m_Tool.Start();
 }
コード例 #5
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
 void EscapeCurrentTool()
 {
     if (m_Tool!=null)
     {
         m_Tool.Escape();
         m_Tool = null;
     }
 }
コード例 #6
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
 public void Finish(ISpatialDisplayTool tool)
 {
     Debug.Assert(Object.ReferenceEquals(tool, m_Tool));
     m_Tool = null;
     this.Cursor = Cursors.Default;
 }
コード例 #7
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
 public void Escape(ISpatialDisplayTool tool)
 {
     if (Object.ReferenceEquals(tool, m_Tool))
     {
         this.Cursor = Cursors.Default;
         m_Tool = null;
     }
 }
コード例 #8
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
        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();
        }
コード例 #9
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
 bool Pan()
 {
     m_Tool = new PanTool(this);
     return m_Tool.Start();
 }
コード例 #10
0
ファイル: MapControl.cs プロジェクト: steve-stanton/backsight
 bool NewCenter()
 {
     m_Tool = new NewCenterTool(this);
     return m_Tool.Start();
 }
コード例 #11
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
 public void Finish(ISpatialDisplayTool tool)
 {
     Debug.Assert(Object.ReferenceEquals(tool, m_Tool));
     m_Tool      = null;
     this.Cursor = Cursors.Default;
 }
コード例 #12
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
 bool Pan()
 {
     m_Tool = new PanTool(this);
     return(m_Tool.Start());
 }
コード例 #13
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
 bool Magnify()
 {
     mapPanel.Focus();
     m_Tool = new MagnifyTool(this);
     return(m_Tool.Start());
 }
コード例 #14
0
ファイル: MapControl.cs プロジェクト: 15831944/backsight
 bool NewCenter()
 {
     m_Tool = new NewCenterTool(this);
     return(m_Tool.Start());
 }