Add conveyor belt and augers
This commit is contained in:
@@ -11,6 +11,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
public double CenterY { get; set; }
|
||||
public double Width { get; set; }
|
||||
public double Height { get; set; }
|
||||
public double Angle { get; set; }
|
||||
|
||||
public bool IsActive {
|
||||
set {
|
||||
@@ -25,11 +26,12 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
private Polyline? _polyline;
|
||||
private Storyboard? _storyboard;
|
||||
|
||||
public Auger(double x, double y, double width, double height) {
|
||||
public Auger(double x, double y, double width, double height, double angle = 0) {
|
||||
CenterX = x;
|
||||
CenterY = y;
|
||||
Width = width;
|
||||
Height = height;
|
||||
Angle = angle;
|
||||
}
|
||||
|
||||
public void Draw(Canvas canvas) {
|
||||
@@ -60,6 +62,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
Width = Width,
|
||||
Height = Height,
|
||||
ClipToBounds = true,
|
||||
RenderTransform = new RotateTransform(Angle, Width / 2, Height / 2),
|
||||
};
|
||||
clipCanvas.SetValue(Canvas.TopProperty, CenterY - Height / 2);
|
||||
clipCanvas.SetValue(Canvas.LeftProperty, CenterX - Width / 2);
|
||||
|
||||
Reference in New Issue
Block a user