Add clearance logic to PamhagenPlant
This commit is contained in:
@@ -15,7 +15,9 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
public ISet<IEdge> Inputs { get; init; }
|
||||
public ISet<IEdge> Outputs { get; init; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
public bool IsActive => CallbackActive();
|
||||
|
||||
protected Func<bool> CallbackActive;
|
||||
|
||||
private TextBlock? _text;
|
||||
private Shape? _rect;
|
||||
@@ -24,10 +26,11 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
private Shape? _bottomInner;
|
||||
private Shape? _bottomOuter;
|
||||
|
||||
public Rebler(string label, double x, double y) {
|
||||
public Rebler(string label, double x, double y, Func<bool> cbActive) {
|
||||
CenterX = x;
|
||||
CenterY = y;
|
||||
Label = label;
|
||||
CallbackActive = cbActive;
|
||||
Inputs = new HashSet<IEdge>();
|
||||
Outputs = new HashSet<IEdge>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user