Exemplo n.º 1
0
 private Point3Ds ConvertPoint2DsToPoint3Ds(Point2Ds point2Ds)
 {
     m_point3DsAll.Clear();
     for (int i = 0; i < point2Ds.Count; i++)
     {
         m_point3DsAll.Add(new Point3D(point2Ds[i].X, point2Ds[i].Y,
                                       scontrol.Scene.GetAltitude(point2Ds[i].X, point2Ds[i].Y) + 30));
     }
     return(m_point3DsAll);
 }
Exemplo n.º 2
0
        //关闭窗体
        private void DlgProfileAnalysis_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.pictureBox.Image = null;
            this.pictureBox.Controls.Clear();

            m_sceneControl.Scene.TrackingLayer.Clear();

            if (m_profile != null)
            {
                m_profile.Clear();
                m_profile.Dispose();
                m_profile = null;
            }
            if (m_point3Ds != null)
            {
                m_point3Ds.Clear();
                m_point3Ds = null;
            }
            if (m_bitmap != null)
            {
                m_bitmap = null;
            }

            this.RegisterEvents(false);

            m_bHasDrawn     = false;
            m_bShownPicture = false;

            m_timer.Stop();
            m_timer.Enabled = false;
        }
Exemplo n.º 3
0
 // 量算结束
 private void EndOneMeasure()
 {
     try
     {
         m_curLength = 0.0;
         m_curAltitude = 0.0;
         m_curArea = 0.0;
         m_point3Ds.Clear();
         m_tempPoint = Point3D.Empty;
         m_strResult = String.Empty;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.StackTrace);
     }
 }
 /// <summary>
 /// 结束测量
 /// </summary>
 private void EndOneMeasure()
 {
     try
     {
         mCurLength   = 0.0;
         mCurAltitude = 0.0;
         mCurArea     = 0.0;
         mIndex       = 0;
         mPoint3Ds.Clear();
         mTempPoint           = Point3D.Empty;
         mStrResult           = String.Empty;
         mSceneControl.Action = Action3D.Pan2;
         if (mSceneControl.Scene.Layers.Contains("[email protected]_UnderPipeLine"))
         {
             mSceneControl.Scene.Layers["[email protected]_UnderPipeLine"].IsVisible = false;
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
     }
 }
Exemplo n.º 5
0
        public void ResumeDefault()
        {
            m_point3Ds.Clear();
            m_point3DsAll.Clear();
            //m_treeView.Nodes[0].Nodes.Clear();
            //m_index = -1;

            if (m_geoLine3D.Length > 0)
            {
                m_geoLine3D.SetEmpty();
            }

            if (m_flyManager.Routes.Count > 0)
            {
                m_flyManager.Routes.Clear();
            }

            scontrol.Scene.TrackingLayer.Clear();
        }