namespace Yw.WpfUI.Hydro
|
{
|
/// <summary>
|
/// 管段
|
/// </summary>
|
public abstract class LinkL3d : VisualL3d
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public LinkL3d()
|
{
|
this.SimpleStyle = new SimpleLinkL3dStyle("#0000FF", 0.5d);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public LinkL3d(LinkL3d rhs) : base(rhs)
|
{
|
this.StartPosition = new PointL3d(rhs.StartPosition);
|
this.EndPosition = new PointL3d(rhs.EndPosition);
|
}
|
|
/// <summary>
|
/// 上游位置
|
/// </summary>
|
public PointL3d StartPosition { get; set; }
|
|
/// <summary>
|
/// 下游位置
|
/// </summary>
|
public PointL3d EndPosition { get; set; }
|
|
/// <summary>
|
/// 简单样式
|
/// </summary>
|
public new SimpleLinkL3dStyle SimpleStyle
|
{
|
get { return _simpleStyle as SimpleLinkL3dStyle; }
|
set { _simpleStyle = value; }
|
}
|
|
/// <summary>
|
/// 获取位置
|
/// </summary>
|
public override List<PointL3d> GetPositions()
|
{
|
return new List<PointL3d>() { this.StartPosition, this.EndPosition };
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
}
|