Beispiel #1
0
        //台柱
        private void btn_Frustum_Click(object sender, EventArgs e)
        {
            GSOGeoFrustumEntity frustumEntity = new GSOGeoFrustumEntity();

            frustumEntity.Position     = GetCurrentViewPoint();
            frustumEntity.Length       = 300; //高度,单位:米
            frustumEntity.BottomRadius = 100; //底面半径
            frustumEntity.TopRadius    = 100; //顶面半径
            AddNewGeoToLayer(frustumEntity, "台柱");
        }
Beispiel #2
0
 private void CtrlFrustumEntityParamPage_Load(object sender, EventArgs e)
 {
     geoFrustumEntity = m_Geometry as GSOGeoFrustumEntity;
     if (geoFrustumEntity != null)
     {
         textBoxTopRadius.Text    = geoFrustumEntity.TopRadius.ToString();
         textBoxBottomRadius.Text = geoFrustumEntity.BottomRadius.ToString();
         textBoxLength.Text       = geoFrustumEntity.Length.ToString();
         textBoxSlices.Text       = geoFrustumEntity.Slices.ToString();
     }
 }
        private void CtrlFrustumEntityParamPage_Load(object sender, EventArgs e)
        {
            geoFrustumEntity = m_Geometry as GSOGeoFrustumEntity;
            if (geoFrustumEntity != null)
            {
                textBoxTopRadius.Text = geoFrustumEntity.TopRadius.ToString();
                textBoxBottomRadius.Text = geoFrustumEntity.BottomRadius.ToString();
                textBoxLength.Text = geoFrustumEntity.Length.ToString();
                textBoxSlices.Text = geoFrustumEntity.Slices.ToString();

            }
        }
Beispiel #4
0
 private void ParamChanged()
 {
     geoFrustumEntity = m_Geometry as GSOGeoFrustumEntity;
     if (geoFrustumEntity != null)
     {
         try
         {
             geoFrustumEntity.TopRadius    = Convert.ToDouble(textBoxTopRadius.Text);
             geoFrustumEntity.BottomRadius = Convert.ToDouble(textBoxBottomRadius.Text);
             geoFrustumEntity.Length       = Convert.ToDouble(textBoxLength.Text);
             geoFrustumEntity.Slices       = Convert.ToInt32(textBoxSlices.Text);
             if (m_GlobeControl != null)
             {
                 m_GlobeControl.Refresh();
             }
         }
         catch (System.Exception exp)
         {
             Log.PublishTxt(exp);
         }
     }
 }
        private void ParamChanged()
        {
            geoFrustumEntity = m_Geometry as GSOGeoFrustumEntity;
            if (geoFrustumEntity != null)
            {
                try
                {
                    geoFrustumEntity.TopRadius = Convert.ToDouble(textBoxTopRadius.Text);
                    geoFrustumEntity.BottomRadius = Convert.ToDouble(textBoxBottomRadius.Text);
                    geoFrustumEntity.Length = Convert.ToDouble(textBoxLength.Text);
                    geoFrustumEntity.Slices = Convert.ToInt32(textBoxSlices.Text);
                    if (m_GlobeControl != null)
                    {
                        m_GlobeControl.Refresh();
                    }

                }
                catch (System.Exception exp)
                {
                    Log.PublishTxt(exp);
                }

            }
        }