Files
pamhagen-sysctrl/PamhagenSysCtrl/Helpers/Pipeline/Trough.cs
T
2026-07-13 17:11:21 +02:00

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