www.pudn.com > BackscatterMap.rar > calBackscatter.cs, change:2009-07-03,size:1446b


using System; 
using System.Drawing; 
using System.Drawing.Drawing2D; 
using System.Collections; 
using System.Collections.Generic; 
using System.Windows.Forms; 
using System.Text; 
using System.Data.SqlTypes; 
using System.IO; 
 
namespace WindowsApplication4 
{ 
    class calBackscatter 
    { 
        double[,] aveEle; 
        double[,] inciAngle; 
        bool[,] sign; 
        double[,] backscatter; 
        int rowNum; 
        int colNum; 
        calculate mycal = new calculate(); 
        getBackscatter mygb = new getBackscatter(); 
        shadowing myshadowing=new shadowing(); 
 
        public calBackscatter() 
        { 
            rowNum = shadowing.rowNum; 
            colNum = shadowing.colNum; 
            sign=myshadowing.shadow(); 
            aveEle = mycal.calAveEle(); 
            inciAngle = mycal.calIncidenceAngel(); 
            backscatter = new double[rowNum, colNum]; 
        } 
 
        public double[,] calScatter() 
        {  
            for (int i = 0; i < rowNum; i++) 
            { 
                for (int j = 0; j < colNum; j++) 
                { 
                    if (sign[i, j] == true) 
                        backscatter[i, j] = 0; 
                    else 
                    { 
                        backscatter[i, j] = mygb.judge(aveEle[i, j], inciAngle[i, j]); 
                    } 
                } 
            } 
            return backscatter; 
        } 
    } 
}