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;
|
}
|
}
|
|
|
|
}
|
}
|