namespace Yw.WinFrmUI.Hydro
{
///
/// 节点
///
public abstract class NodeL3d : VisualL3d
{
///
///
///
public NodeL3d() { }
///
///
///
public NodeL3d(NodeL3d rhs) : base(rhs)
{
this.Position = new PointL3d(rhs.Position);
}
///
/// 位置
///
public PointL3d Position { get; set; }
///
///
///
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;
}
}
}
}