private void demo1ToolStripMenuItem_Click(object sender, EventArgs e) { aveHForm aveh = new aveHForm(); aveh.ShowDialog(); if (aveh.DialogResult == DialogResult.OK) { double[] n_b = new double[5000]; double[] n_l = new double[5000]; //线敷点 airlinedesign1(aveh.f, aveh.ave_H, aveh.H, aveh.yy, aveh.Px, aveh.b1, aveh.b2, aveh.l1, aveh.l2, n_b, n_l, n_n); for (int i = 0; i < n_n[0]; i++) { richTextBox1.AppendText(i.ToString() + " " + n_b[i].ToString() + " " + n_l[i].ToString() + "\n"); } } MessageBox.Show("基于平均高程敷点完毕!"); n[0] = 1; }
private void demo2ToolStripMenuItem_Click(object sender, EventArgs e) { aveHForm aveh = new aveHForm(); aveh.ShowDialog(); if (aveh.DialogResult == DialogResult.OK) { double[] n_b = new double[5000]; double[] n_l = new double[5000]; //增加相片高度yy。xx(宽度)对应旁向,yy(高度)对应航向 //矩形敷点 airlinedesign(aveh.f, aveh.ave_H, aveh.H, aveh.xx, aveh.yy,aveh.Px, aveh.Py, aveh.b1, aveh.b2, aveh.l1, aveh.l2, n_b, n_l, n, n_n); for (int i = 0; i < n[0]; i++) for (int j = 0; j < n_n[0]; j++) { richTextBox1.AppendText(i.ToString() + " " + j.ToString() + " " + n_b[i * n_n[0] + j].ToString() + " " + n_l[i * n_n[0] + j].ToString() + "\n"); } } }
private void demo平行四边形ToolStripMenuItem_Click(object sender, EventArgs e) { aveHForm aveh = new aveHForm(); aveh.ShowDialog(); if (aveh.DialogResult == DialogResult.OK) { double[] n_b = new double[5000]; double[] n_l = new double[5000]; //增加相片高度yy。xx(宽度)对应旁向,yy(高度)对应航向 // 平行四边形敷点 double b1 = 30.52382; double b2 = 30.52380; double b3 = 30.53403; double l1 = 114.35394; double l2 = 114.36595; double l3 = 114.35394; //输入参数增加b3,l3,其中b1,l1是起始点,b2,l2,b3,l3是平行四边形靠近这点的两个顶点,b1,l1指向b2,l2是沿旁向,指向b3,l3是沿航线。 airlinedesign2(aveh.f, aveh.ave_H, aveh.H, aveh.xx, aveh.yy, aveh.Px, aveh.Py, b1, b2,b3, l1, l2,l3, n_b, n_l, n, n_n); for (int i = 0; i < n[0]; i++) for (int j = 0; j < n_n[0]; j++) { richTextBox1.AppendText(i.ToString() + " " + j.ToString() + " " + n_b[i * n_n[0] + j].ToString() + " " + n_l[i * n_n[0] + j].ToString() + "\n"); } } }