private void ParamChanged() { geoRangeEllipCylinderEntity = m_Geometry as GSOGeoRangeEllipCylinderEntity; if (geoRangeEllipCylinderEntity != null) { try { geoRangeEllipCylinderEntity.XRadius = Convert.ToDouble(textBoxXRadius.Text); geoRangeEllipCylinderEntity.YRadius = Convert.ToDouble(textBoxYRadius.Text); geoRangeEllipCylinderEntity.Length = Convert.ToDouble(textBoxLength.Text); geoRangeEllipCylinderEntity.Slices = Convert.ToInt32(textBoxSlices.Text); geoRangeEllipCylinderEntity.StartAngle = Convert.ToDouble(textBoxStartAngle.Text); geoRangeEllipCylinderEntity.EndAngle = Convert.ToDouble(textBoxEndAngle.Text); GSOEntityStyle3D style = new GSOEntityStyle3D(); style.UsingSingleColor = true; geoRangeEllipCylinderEntity.Style = style; if (m_GlobeControl != null) { m_GlobeControl.Refresh(); } } catch (System.Exception exp) { Log.PublishTxt(exp); } } }
private void CtrlRangeEllipCylinderEntityParamPage_Load(object sender, EventArgs e) { geoRangeEllipCylinderEntity = m_Geometry as GSOGeoRangeEllipCylinderEntity; if (geoRangeEllipCylinderEntity != null) { textBoxXRadius.Text = geoRangeEllipCylinderEntity.XRadius.ToString(); textBoxYRadius.Text = geoRangeEllipCylinderEntity.YRadius.ToString(); textBoxLength.Text = geoRangeEllipCylinderEntity.Length.ToString(); textBoxSlices.Text = geoRangeEllipCylinderEntity.Slices.ToString(); textBoxStartAngle.Text = geoRangeEllipCylinderEntity.StartAngle.ToString(); textBoxEndAngle.Text = geoRangeEllipCylinderEntity.EndAngle.ToString(); } }