lixiaojun
2025-04-18 28ba54f194f1301c45aa30b44cd7b612855b8963
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
namespace Yw.WpfUI.Hydro
{
    /// <summary>
    /// 抽象3D节点
    /// </summary>
    internal abstract class LogicalNode3D : LogicalVisual3D
    {
        /// <summary>
        /// 
        /// </summary>
        public LogicalNode3D() { }
 
        /// <summary>
        /// 
        /// </summary>
        public LogicalNode3D
            (
                NodeL3d vmo,
                LogicalStateHelper stateHelper,
                LogicalMaterialHelper materialHelper,
                LogicalOverrideColorHelper overrideColorHelper,
                LogicalOverrideOpacityHelper overrideOpacityHelper,
                LogicalOverrideVisibleHelper overrideVisibleHelper
            ) : base(vmo, stateHelper, materialHelper, overrideColorHelper, overrideOpacityHelper, overrideVisibleHelper)
        {
 
        }
 
        /// <summary>
        /// Vmo
        /// </summary>
        public new NodeL3d Vmo
        {
            get { return _vmo as NodeL3d; }
            set { _vmo = value; }
        }
 
        /// <summary>
        /// 位置
        /// </summary>
        public Point3D Position { get; set; }
 
        /// <summary>
        /// 更新位置
        /// </summary>
        public override void UpdatePositions()
        {
            if (this.Vmo != null)
            {
                if (this.Vmo.Position != null)
                {
                    this.Position = this.Vmo.Position.ToPoint3D();
                }
            }
        }
 
        /// <summary>
        /// 验证
        /// </summary>
        public override bool Verify()
        {
            if (this.Vmo == null)
            {
                return false;
            }
            if (this.Vmo.Position == null)
            {
                return false;
            }
            return base.Verify();
        }
 
 
    }
}