lixiaojun
2025-03-18 90c8d96d1c7f02dd10a114811a668915921b8834
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace Yw.WinFrmUI.Hydro
{
    /// <summary>
    /// 节点
    /// </summary>
    public abstract class NodeL3d : VisualL3d
    {
        /// <summary>
        /// 
        /// </summary>
        public NodeL3d() { }
 
        /// <summary>
        /// 
        /// </summary>
        public NodeL3d(NodeL3d rhs) : base(rhs)
        {
            this.Position = new PointL3d(rhs.Position);
        }
 
        /// <summary>
        /// 位置
        /// </summary>
        public PointL3d Position { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public override void Draw2d()
        {
            switch (this.State)
            {
                case eVisualState.Normal: DrawPoint2dHelper.Draw(5f, Color.Red, this.Position); break;
                case eVisualState.Hovered: DrawPoint2dHelper.Draw(6f, ColorTranslator.FromHtml("#00BFFF"), this.Position); break;
                case eVisualState.Selected: DrawPoint2dHelper.Draw(7f, ColorTranslator.FromHtml("#008000"), this.Position); break;
                default: break;
            }
        }
 
 
 
    }
}