Exemple #1
0
 /// <summary>
 /// 可视域分析
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button1_Click(object sender, EventArgs e)
 {
     //如果第一个分析为空,则为第一个分析
     if (curViewshed3DAnalysis == null)
     {
         curViewshed3DAnalysis = new GSOViewshed3DAnalysis(globeControl1.Globe);
     }
     //否则为其他分析
     else
     {
         curViewshed3DAnalysisOther = new GSOViewshed3DAnalysis(globeControl1.Globe);
     }
     bViewshed3DAnalysisCheck = true;
     globeControl1.Refresh();
 }
Exemple #2
0
 /// <summary>
 /// 清除分析
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button3_Click(object sender, EventArgs e)
 {
     globeControl1.Globe.ClearAnalysis();
     //清空可视域分析
     curViewshed3DAnalysis = curViewshed3DAnalysisOther = null;
 }