From 4a914ac1ad0e92d0b275397773424d99c27eba20 Mon Sep 17 00:00:00 2001 From: Han Qiang Qiang <1364346467@qq.com> Date: Wed, 28 Feb 2024 14:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BE=93=E5=85=A5=E7=82=B9?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mainframe/AtmRobotMultiLP.xaml.cs | 32 +++++++++++++++++++ SicUI/Controls/Mainframe/M2C4EFEMView2.xaml | 1 + .../Operations/Overviews/OverViewView.xaml | 32 +++++++++++++++++++ .../Operations/Overviews/OverViewViewModel.cs | 22 +++++++++++++ 4 files changed, 87 insertions(+) diff --git a/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs b/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs index 0dd9e1c5..23cb4640 100644 --- a/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs +++ b/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs @@ -174,6 +174,38 @@ namespace SicUI.Controls.M2C4Parts public static readonly DependencyProperty HasTrayProperty = DependencyProperty.Register("HasTray", typeof(Visibility), typeof(AtmRobotMultiLP), new PropertyMetadata(Visibility.Hidden)); + + public RobotPosition RobotPointIntsMove + { + get { return (RobotPosition)GetValue(RobotPointIntsMoveProperty); } + set { SetValue(RobotPointIntsMoveProperty, value); } + } + public static readonly DependencyProperty RobotPointIntsMoveProperty = + DependencyProperty.Register("RobotPointIntsMove", typeof(RobotPosition), typeof(AtmRobotMultiLP), new FrameworkPropertyMetadata(null, PointMoveTest)); + + + static void PointMoveTest(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + var self = (AtmRobotMultiLP)d; + var robotPosition = (RobotPosition)e.NewValue; + + + var storyboard = new Storyboard(); + + var needRotate = new List(); + + needRotate.Add(self.canvas1.Rotate(storyboard, robotPosition.Root, true, self.MoveTime)); + needRotate.Add(self.canvas2.Rotate(storyboard, robotPosition.Arm, true, self.MoveTime)); + needRotate.Add(self.canvas3.Rotate(storyboard, robotPosition.Hand, true, self.MoveTime)); + + + if (needRotate.Any(x => x)) + storyboard.Begin(); + + + } + + private List menu; public event PropertyChangedEventHandler PropertyChanged; diff --git a/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml b/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml index 7e86fd85..6dc7c026 100644 --- a/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml +++ b/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml @@ -202,6 +202,7 @@ Height="80" HasTray="{Binding TMRobotHaveTray}" HasWafer="{Binding IsArmWater}" + RobotPointIntsMove="{Binding TmRobotPointIntsMove}" RobotMoveInfo="{Binding TmRobotMoveInfo}" ShowDock="False" Wafer1="{Binding TMRobotWafer1}" HorizontalAlignment="Center" VerticalAlignment="Top" /> diff --git a/SicUI/Models/Operations/Overviews/OverViewView.xaml b/SicUI/Models/Operations/Overviews/OverViewView.xaml index 53aeee70..7f983b74 100644 --- a/SicUI/Models/Operations/Overviews/OverViewView.xaml +++ b/SicUI/Models/Operations/Overviews/OverViewView.xaml @@ -417,6 +417,38 @@ + + + + + + + + +