Beispiel #1
0
 private void RefreshGlobe(GSOArrowStyle m_Style)
 {
     ((GSOLineStyle3D)mfeature.Geometry.Style).ArrowVisible = true;
     ((GSOLineStyle3D)mfeature.Geometry.Style).ArrowStyle   = m_Style;
     if (m_GlobeControl != null)
     {
         m_GlobeControl.Refresh();
     }
 }
Beispiel #2
0
 public FrmSetArrowStyle(GSOArrowStyle style, GSOGlobeControl globeControl)
 {
     InitializeComponent();
     m_GlobeControl = globeControl;
     // 如果m_OldStyle不存在,先备份一个
     if (style != null)
     {
         m_OldStyle = style.Clone();
     }
     m_Style = style;
 }
Beispiel #3
0
 public FrmSetArrowStyle(GSOArrowStyle style, GSOGlobeControl globeControl)
 {
     InitializeComponent();
     m_GlobeControl = globeControl;
     // 如果m_OldStyle不存在,先备份一个
     if (style != null)
     {
         m_OldStyle = style.Clone();
     }
     m_Style = style;
 }
Beispiel #4
0
        public FrmSetArrowStyle(GSOArrowStyle style, GSOFeature feature, GSOLayer layer, GSOGlobeControl globeControl)
        {
            InitializeComponent();
            m_GlobeControl = globeControl;
            mlayer = layer;
            mfeature = feature;

            // 如果m_OldStyle不存在,先备份一个
            if (style != null)
            {
                m_OldStyle = style.Clone();
            }
            m_Style = style;
        }
Beispiel #5
0
        public FrmSetArrowStyle(GSOArrowStyle style, GSOFeature feature, GSOLayer layer, GSOGlobeControl globeControl)
        {
            InitializeComponent();
            m_GlobeControl = globeControl;
            mlayer         = layer;
            mfeature       = feature;

            // 如果m_OldStyle不存在,先备份一个
            if (style != null)
            {
                m_OldStyle = style.Clone();
            }
            m_Style = style;
        }
Beispiel #6
0
        private void SetControlsByStyle(GSOArrowStyle style)
        {
            if (style != null)
            {
                pboxArrowColor.BackColor = Color.FromArgb(255, style.ArrowColor);
                nudArrowOpaque.Value = style.ArrowColor.A;

                pboxOutlineColor.BackColor = Color.FromArgb(255, style.OutlineColor);
                nudOutlineOpaque.Value = style.OutlineColor.A;

                tboxArrowGap.Text = style.ArrowGap.ToString();
                tboxBodyLen.Text = style.BodyLen.ToString();
                tboxBodyWidth.Text = style.BodyWidth.ToString();
                tboxHeadLen.Text = style.HeadLen.ToString();
                tboxHeadWidth.Text = style.HeadWidth.ToString();
                tboxOutlineWidth.Text = style.OutlineWidth.ToString();

                cboxAlongCenter.Checked = style.IsAlongCenter;
                cboxPixelLen.Checked = style.UsingPixelLen;
                cboxAlwaysSee.Checked = !style.UsingDepthTest;
                cboxNegDir.Checked = style.IsNegtiveDir;
                cbxOutlineVisible.Checked = style.OutlineVisible;

                CheckOutlineControlsEnable(cbxOutlineVisible.Checked);

                switch (style.OutlineType)
                {
                    case EnumLineType.Solid:
                        comboxOutlineType.SelectedIndex = 0;
                        break;
                    case EnumLineType.Dash:
                        comboxOutlineType.SelectedIndex = 1;
                        break;
                    case EnumLineType.Dot:
                        comboxOutlineType.SelectedIndex = 2;
                        break;
                    case EnumLineType.DashDot:
                        comboxOutlineType.SelectedIndex = 3;
                        break;
                    case EnumLineType.DashDotDot:
                        comboxOutlineType.SelectedIndex = 4;
                        break;
                }

                switch (style.ArrowShape)
                {
                    case EnumArrowShape.Shape2D0:
                        comboxArrowShape.SelectedIndex = 0;
                        break;
                    case EnumArrowShape.Shape2D1:
                        comboxArrowShape.SelectedIndex = 1;
                        break;
                    case EnumArrowShape.Shape2D2:
                        comboxArrowShape.SelectedIndex = 2;
                        break;
                    case EnumArrowShape.Shape2D3:
                        comboxArrowShape.SelectedIndex = 3;
                        break;
                    case EnumArrowShape.Shape3D:
                        comboxArrowShape.SelectedIndex = 4;
                        break;

                }
            }
        }
Beispiel #7
0
 private void RefreshGlobe(GSOArrowStyle m_Style)
 {
     ((GSOLineStyle3D)mfeature.Geometry.Style).ArrowVisible = true;
     ((GSOLineStyle3D)mfeature.Geometry.Style).ArrowStyle = m_Style;
     if (m_GlobeControl != null)
     {
         m_GlobeControl.Refresh();
     }
 }
Beispiel #8
0
        private void SetControlsByStyle(GSOArrowStyle style)
        {
            if (style != null)
            {
                pboxArrowColor.BackColor = Color.FromArgb(255, style.ArrowColor);
                nudArrowOpaque.Value     = style.ArrowColor.A;

                pboxOutlineColor.BackColor = Color.FromArgb(255, style.OutlineColor);
                nudOutlineOpaque.Value     = style.OutlineColor.A;

                tboxArrowGap.Text     = style.ArrowGap.ToString();
                tboxBodyLen.Text      = style.BodyLen.ToString();
                tboxBodyWidth.Text    = style.BodyWidth.ToString();
                tboxHeadLen.Text      = style.HeadLen.ToString();
                tboxHeadWidth.Text    = style.HeadWidth.ToString();
                tboxOutlineWidth.Text = style.OutlineWidth.ToString();

                cboxAlongCenter.Checked   = style.IsAlongCenter;
                cboxPixelLen.Checked      = style.UsingPixelLen;
                cboxAlwaysSee.Checked     = !style.UsingDepthTest;
                cboxNegDir.Checked        = style.IsNegtiveDir;
                cbxOutlineVisible.Checked = style.OutlineVisible;

                CheckOutlineControlsEnable(cbxOutlineVisible.Checked);

                switch (style.OutlineType)
                {
                case EnumLineType.Solid:
                    comboxOutlineType.SelectedIndex = 0;
                    break;

                case EnumLineType.Dash:
                    comboxOutlineType.SelectedIndex = 1;
                    break;

                case EnumLineType.Dot:
                    comboxOutlineType.SelectedIndex = 2;
                    break;

                case EnumLineType.DashDot:
                    comboxOutlineType.SelectedIndex = 3;
                    break;

                case EnumLineType.DashDotDot:
                    comboxOutlineType.SelectedIndex = 4;
                    break;
                }

                switch (style.ArrowShape)
                {
                case EnumArrowShape.Shape2D0:
                    comboxArrowShape.SelectedIndex = 0;
                    break;

                case EnumArrowShape.Shape2D1:
                    comboxArrowShape.SelectedIndex = 1;
                    break;

                case EnumArrowShape.Shape2D2:
                    comboxArrowShape.SelectedIndex = 2;
                    break;

                case EnumArrowShape.Shape2D3:
                    comboxArrowShape.SelectedIndex = 3;
                    break;

                case EnumArrowShape.Shape3D:
                    comboxArrowShape.SelectedIndex = 4;
                    break;
                }
            }
        }