예제 #1
0
파일: MainFrm.cs 프로젝트: StarU/qkKL6Dgf12
        private void 选中节点添加模型ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if(globeControl1.Globe.HasSelNode)
            {
                GSOPoint3d pt3d = globeControl1.Globe.SelNodePos;

                WorldGIS.Forms.FrmAddPipeFitting frm = new WorldGIS.Forms.FrmAddPipeFitting(globeControl1, pt3d,globeControl1.Globe.DestLayerFeatureAdd);
                frm.Show(this);
            }
        }
예제 #2
0
파일: MainFrm.cs 프로젝트: StarU/qkKL6Dgf12
        void sceneControl1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                GSOPoint3d point;
                GSOLayer templayer;
                GSOFeature feature1 = globeControl1.Globe.HitTest(e.X, e.Y, out templayer, out point, false, true, 0);
                if (point.X == 0 && point.Y == 0 && point.Z == 0)
                {
                    point = globeControl1.Globe.ScreenToScene(e.X, e.Y);
                }
                GSOPoint3d pt = new GSOPoint3d();
                pt.X = point.X;
                pt.Y = point.Y;
                pt.Z = point.Z;

                if (addfitflag)
                {
                    WorldGIS.Forms.FrmAddPipeFitting frm = new WorldGIS.Forms.FrmAddPipeFitting(globeControl1, pt, globeControl1.Globe.DestLayerFeatureAdd);
                    frm.Show(this);
                    addfitflag = false;
                }
            }
        }