添加输入点移动
This commit is contained in:
parent
4f69f3ba27
commit
4a914ac1ad
|
@ -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<bool>();
|
||||
|
||||
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<MenuItem> menu;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -417,6 +417,38 @@
|
|||
</CheckBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel
|
||||
Canvas.Left="550"
|
||||
Canvas.Top="15"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBox
|
||||
Width="50"
|
||||
Margin="3"
|
||||
Text="{Binding r1, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
Width="50"
|
||||
Margin="3"
|
||||
Text="{Binding r2, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
Width="50"
|
||||
Margin="3"
|
||||
Text="{Binding r3, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</StackPanel>
|
||||
<Button
|
||||
Width="90"
|
||||
Margin="5,20"
|
||||
HorizontalAlignment="Left"
|
||||
Content="MovePoint">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="MovePoint" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
<Grid
|
||||
x:Name="PM1_Info"
|
||||
Canvas.Left="87"
|
||||
|
|
|
@ -20,6 +20,7 @@ using System.Xml.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using MECF.Framework.Common.SubstrateTrackings;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using SicUI.Controls.Common;
|
||||
|
||||
namespace SicUI.Models.Operations.Overviews
|
||||
{
|
||||
|
@ -736,6 +737,27 @@ namespace SicUI.Models.Operations.Overviews
|
|||
|
||||
#region 动画测试
|
||||
|
||||
|
||||
|
||||
public int r1 { get; set; }
|
||||
|
||||
public int r2 { get; set; }
|
||||
|
||||
public int r3 { get; set; }
|
||||
|
||||
public RobotPosition TmRobotPointIntsMove { get; set; }
|
||||
|
||||
public void MovePoint()
|
||||
{
|
||||
TmRobotPointIntsMove = new RobotPosition()
|
||||
{
|
||||
Z = 0,
|
||||
Root = r1,
|
||||
Arm = r2,
|
||||
Hand = r3
|
||||
};
|
||||
}
|
||||
|
||||
public bool IsPick { get; set; }
|
||||
|
||||
public void Storyboard(string toName)
|
||||
|
|
Loading…
Reference in New Issue