Exemple #1
0
 public SaveTopologyTableForm(TopoPointSet nset, TopoPolylineSet lset, TopoPolygonSet pset)
 {
     InitializeComponent();
     Nset = nset;
     Lset = lset;
     Pset = pset;
 }
Exemple #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     GridLinePen.DashStyle    = System.Drawing.Drawing2D.DashStyle.Dash;
     GridSubLinePen.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
     mTopoPolygonSet          = new TopoPolygonSet();
     mTopoPolylineSet         = new TopoPolylineSet();
     mTopoPointSet            = new TopoPointSet();
 }
Exemple #3
0
 private void 生成拓扑关系ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (GridContourPolylineList == null)
     {
         return;
     }
     try
     {
         this.GenerateTopologyRelatation(this.GridContourPolylineList);
         this.ConvertLineEdgeToPolyline();
         this.mTopoPointSet   = new TopoPointSet(this.mTopoPolylineSet.TopoPolylineList.ToArray());
         this.mTopoPolygonSet = this.mTopoPointSet.GenerateTopoPolygonSet();
         this.mTopoPolygonSet.Recheck(this.agisControl.GetRegionArea());
         MessageBox.Show("拓扑关系生成成功!", "生成拓扑关系");
     }
     catch (Exception err) { MessageBox.Show(err.Message, "错误!"); }
     return;
 }