示例#1
0
        public void glOnLeftMouseDown(object sender, MouseEventArgs e)
        {
            isLeftDrag = true;
            PO pt = Map_to_Space(e.X, e.Y);

            p_tags = pt;
            this.PlotGLKey();
            if (ADD_MODEL_vwell)
            {
                Clear();
                c.Create_Vertical_Well(pt);
                c.START_form(this);
                ADD_MODEL_vwell = false;
                Delaunay_2D de = new Delaunay_2D();
                de.GetOGL(this);
                de.Get_initialpl(c.initial_pl);
                de.Get_initial_center(c.center);
                de.GetPL(c.Get_p_l());
                de.Start();
                this.PlotGLKey();
            }
            else if (ADD_MODEL_fault)
            {
                ;
            }
            else if (ADD_MODEL_hwell)
            {
                ;
            }
            else
            {
                Seek_Special_PO(pt);
            }
        }
示例#2
0
 private void netcreateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ogl1.SHOW_TRIANGLE = true;
     de = new Delaunay_2D();
     de.GetOGL(ogl1);
     de.Get_initialpl(c1.initial_pl);
     de.Get_initial_center(c1.center);
     de.GetPL(c1.Get_p_l());
     //Thread de_thread = new Thread(de.Start);
     //de_thread.Start();
     de.Start();
     ogl1.SHOW_PEBI           = true;
     ogl1.SHOW_TRIANGLE       = false;
     ogl1.SHOW_ORDINARY_POINT = false;
     ogl1.PlotGLKey();
 }
示例#3
0
        private void Net_Analysis_Load(object sender, EventArgs e)
        {
            util u1 = new util();

            //清空相关文件内容
            u1.Initial_File();
            c.START_Inmodel(ogl1);
            ogl1.PlotGL();
            de = new Delaunay_2D();
            de.GetOGL(ogl1);
            de.Get_initialpl(c.initial_pl);
            de.Get_initial_center(c.center);
            de.GetPL(c.Get_p_l());
            de.Start_step(num);
            ogl1.PlotGL();
            list_box_add();
            //add_text();
            this.KeyPreview = true;
        }
示例#4
0
        public void glOnLeftMouseUp(object sender, MouseEventArgs e)
        {
            isLeftDrag = false;
            PO pt = Map_to_Space(e.X, e.Y);

            if (p_tags != null)
            {
                if (ADD_MODEL_vwell)
                {
                    Clear();
                    c.Create_Vertical_Well(pt);
                    c.START_form(this);
                    ADD_MODEL_vwell = false;
                    Delaunay_2D de = new Delaunay_2D();
                    de.GetOGL(this);
                    de.Get_initialpl(c.initial_pl);
                    de.Get_initial_center(c.center);
                    de.GetPL(c.Get_p_l());
                    de.Start();
                    this.PlotGLKey();
                    return;
                }
                else if (ADD_MODEL_fault)
                {
                    LINE l0 = new LINE(p_tags, pt);
                    Clear();
                    c.Create_fault(l0);
                    c.START_form(this);
                    p_tags          = null;
                    ADD_MODEL_fault = false;
                    l_tag           = null;
                    Delaunay_2D de = new Delaunay_2D();
                    de.GetOGL(this);
                    de.Get_initialpl(c.initial_pl);
                    de.Get_initial_center(c.center);
                    de.GetPL(c.Get_p_l());
                    de.Start();
                    this.PlotGLKey();
                    return;
                }
                else if (ADD_MODEL_hwell)
                {
                    LINE l0 = new LINE(p_tags, pt);
                    Clear();
                    c.Create_h_well2d(l0);
                    c.START_form(this);
                    p_tags          = null;
                    ADD_MODEL_hwell = false;
                    l_tag           = null;
                    Delaunay_2D de = new Delaunay_2D();
                    de.GetOGL(this);
                    de.Get_initialpl(c.initial_pl);
                    de.Get_initial_center(c.center);
                    de.GetPL(c.Get_p_l());
                    de.Start();
                    this.PlotGLKey();
                    return;
                }
                else if (p_tags.key == 1 || p_tags.key == 2)
                {
                    p_tags.x = pt.x;
                    p_tags.y = pt.y;
                    Clear();
                    c.START_form(this);
                    Delaunay_2D de = new Delaunay_2D();
                    de.GetOGL(this);
                    de.Get_initialpl(c.initial_pl);
                    de.Get_initial_center(c.center);
                    de.GetPL(c.Get_p_l());
                    de.Start();
                    this.PlotGLKey();
                }
            }
        }