34 lines
950 B
C#
34 lines
950 B
C#
using System.Windows.Controls;
|
|
|
|
namespace PamhagenSysCtrl.Helpers.Pipeline {
|
|
public class Trough : INode, ISource {
|
|
|
|
public double CenterX { get; set; }
|
|
public double CenterY { get; set; }
|
|
public double BottomY => CenterY;
|
|
public string Label { get; set; }
|
|
public bool IsFilled => CallbackIsFilled();
|
|
public ISet<IEdge> Inputs { get; init; }
|
|
public ISet<IEdge> Outputs { get; init; }
|
|
|
|
protected Func<bool> CallbackIsFilled;
|
|
|
|
public Trough(string label, double x, double y, Func<bool> cbFilled) {
|
|
CenterX = x;
|
|
CenterY = y;
|
|
Label = label;
|
|
CallbackIsFilled = cbFilled;
|
|
Inputs = new HashSet<IEdge>();
|
|
Outputs = new HashSet<IEdge>();
|
|
}
|
|
|
|
public void Draw(Canvas canvas) {
|
|
|
|
}
|
|
|
|
public bool Update(double x, double y) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|