430 lines
36 KiB
XML
430 lines
36 KiB
XML
<UserControl x:Class="WeldingCommon.Views.UCManualRCCOperation"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:WeldingCommon.Views"
|
|
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
|
xmlns:aurorauicomponent="clr-namespace:AuroraUIComponent;assembly=AuroraUIComponent"
|
|
xmlns:usercontrols="clr-namespace:AuroraUIComponent.UserControls;assembly=AuroraUIComponent"
|
|
d:DataContext="{d:DesignInstance Type=local:UCManualRCCOperationViewModel}"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="900" d:DesignWidth="1400" x:Name="uc"
|
|
IsVisibleChanged="UserControl_IsVisibleChanged">
|
|
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<view:BoolConverter x:Key="convReverse" FalseValue="True" TrueValue="False"/>
|
|
<view:BoolConverter x:Key="convTrueVisible" TrueValue="Visible" FalseValue="Collapsed"/>
|
|
<view:BoolConverter x:Key="convFalseVisible" TrueValue="Collapsed" FalseValue="Visible"/>
|
|
<view:BoolConverter x:Key="LaserEnableColor" TrueValue="Green" FalseValue="Red"/>
|
|
<view:BoolConverter x:Key="convSeqStatusColor" TrueValue="ForestGreen" FalseValue="#3E3E42"/>
|
|
<view:BoolConverter x:Key="convLiveColor" TrueValue="#A50034" FalseValue="ForestGreen" />
|
|
<Style x:Key="styleRb" TargetType="RadioButton">
|
|
<Setter Property="MinWidth" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=ActualHeight}"/>
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
<Setter Property="Margin" Value="2 0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
|
<Border Name="border" BorderThickness="1" Background="#1A2242" BorderBrush="#1A2242">
|
|
<ContentPresenter Margin="0,0,0,4" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Opacity" Value="0.8" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#A50034" />
|
|
<Setter TargetName="border" Property="BorderThickness" Value="1" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<behavior:Interaction.Triggers>
|
|
<behavior:PropertyChangedTrigger Binding="{Binding IsVisible, ElementName=uc}">
|
|
<behavior:InvokeCommandAction Command="{Binding CMD_VisibleChanged}" CommandParameter="{Binding IsVisible, ElementName=uc}"/>
|
|
</behavior:PropertyChangedTrigger>
|
|
</behavior:Interaction.Triggers>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="6*"></ColumnDefinition>
|
|
<ColumnDefinition Width="2*"></ColumnDefinition>
|
|
<ColumnDefinition Width="4*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0" Margin="3 0 3 0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="5*"/>
|
|
<RowDefinition Height="10*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox Header="Load Image" Grid.Row="0" Margin="5 5 0 0" Style="{StaticResource StGroupBox2nd}" FontSize="10">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Margin="5" Width="50" Command="{Binding CMD_LoadImage}" Content="Load" HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Border Margin="5" Grid.Row="1" BorderBrush="Gray" BorderThickness="1">
|
|
<Image Source="{Binding OriginImage}" Margin="5"></Image>
|
|
</Border>
|
|
<!--<Border Margin="3" Grid.Row="0" Grid.Column="2" Grid.RowSpan="2" BorderBrush="Gray" BorderThickness="1">
|
|
<Image Source="{Binding MaskedImage}" Margin="5"></Image>
|
|
</Border>-->
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox Header="Cropped Image" Grid.Column="1" Margin="5 5 0 0" Style="{StaticResource StGroupBox2nd}" FontSize="10">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="38"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Margin="5" Grid.Row="1" BorderBrush="Gray" BorderThickness="1">
|
|
<Image Source="{Binding CroppedImageL}" Margin="5"></Image>
|
|
</Border>
|
|
<Border Margin="5" Grid.Row="1" Grid.Column="1" BorderBrush="Gray" BorderThickness="1">
|
|
<Image Source="{Binding CroppedImageR}" Margin="5"></Image>
|
|
</Border>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
<GroupBox Header="Result Image" Grid.Row="1" Margin="5 5 0 0" Style="{StaticResource StGroupBox2nd}" FontSize="10">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="8*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Margin="3" Command="{Binding CMD_SaveImage}" Content="Save Image" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Grid.Row="1" Command="{Binding CMD_SaveCSV}" Content="Save CSV" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Border Margin="3" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" BorderBrush="Gray" BorderThickness="1" ClipToBounds="True">
|
|
<Image x:Name="ImageControl" Source="{Binding ResultImage}" RenderTransformOrigin="0.5,0.5" Stretch="Uniform">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform x:Name="ImageScaleTransform" />
|
|
<TranslateTransform x:Name="ImageTranslateTransform" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
</Border>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="1" Margin="3 0 0 0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Grid.Row="0" Header="Manual RCC Control" Margin="0 3 3 0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0" MinHeight="30">
|
|
<TextBlock Margin="10 0" FontSize="12" Foreground="#FFBBBBBB" FontWeight="Bold" Text="Option Type" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
</Border>
|
|
<ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding OptionList}" SelectedItem="{Binding SelectedOption}" Height="30" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="12" Padding="2"/>
|
|
</Grid>
|
|
|
|
<!-- SelectedOption is SMW-->
|
|
<GroupBox Grid.Row="1" Header="Manual Operation" Margin="0 5 0 0" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsSelectedOptionSMW, Converter={StaticResource convTrueVisible}}">
|
|
<UniformGrid Rows="8">
|
|
<Button Margin="3" Command="{Binding CMD_CheckRadiusImage}" Content="Check Radius" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_DetectEdgeImage}" Content="Detect Edge" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_GenerateDrawingObject}" Content="Generate Object" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_UpdateRecipeObjectRCC}" Content="Update Recipe Object RCC" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_FindReferenceCenter}" Content="Find Refrence Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_SaveOffsetTable}" Content="Save Offset Table" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_UpdateOffsetTable }" Content="Update Offset Table" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_SaveCenterRadius }" Content="Save Center Radius" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<!-- SelectedOption is Inzi-->
|
|
<GroupBox Grid.Row="1" Header="Manual Operation" Margin="0 5 0 0" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsSelectedOptionInzi, Converter={StaticResource convTrueVisible}}">
|
|
<UniformGrid Rows="3">
|
|
<Button Margin="3" Command="{Binding CMD_FindReference}" Content="Find Reference" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_FindObjectOffset}" Content="Find Object Offset" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_UpdateRecipeObject }" Content="Update Recipe Object" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<!-- SelectedOption is LFW-->
|
|
<GroupBox Grid.Row="1" Header="Manual Operation" Margin="0 5 0 0" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsSelectedOptionLFW, Converter={StaticResource convTrueVisible}}">
|
|
<UniformGrid Rows="3">
|
|
<Button Margin="3" Command="{Binding CMD_FindReference}" Content="Find Reference" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_FindObjectOffset}" Content="Find Object Offset" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_UpdateRecipeObject }" Content="Update Recipe Object" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
<!-- SelectedOption is KS-->
|
|
<GroupBox Grid.Row="1" Header="Manual Operation" Margin="0 5 0 0" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsSelectedOptionKS, Converter={StaticResource convTrueVisible}}">
|
|
<UniformGrid Rows="3">
|
|
<Button Margin="3" Command="{Binding CMD_FindReference}" Content="Find Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_FindObjectOffset}" Content="Find Bead Size" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
<!-- SelectedOption is Flangeless-->
|
|
<GroupBox Grid.Row="1" Header="Manual Operation" Margin="0 5 0 0" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsSelectedOptionLFW, Converter={StaticResource convTrueVisible}}">
|
|
<UniformGrid Rows="3">
|
|
<Button Margin="3" Command="{Binding CMD_FindReference}" Content="Find Reference" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_FindObjectOffset}" Content="Find Object Offset" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_UpdateRecipeObject }" Content="Update Recipe Object" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="1" Header="Edge Detect Parameter" Margin="0 3 3 0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Grid.Row="0" Header="Edge Detect Offset Type" Style="{StaticResource StGroupBox4th}" Height="70">
|
|
<Border BorderBrush="Gray" BorderThickness="0.5">
|
|
<mah:ToggleSwitch Grid.Column="0" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold"
|
|
IsOn="{Binding IsOffsetTypeManual}"
|
|
OffContent="Table"
|
|
OnContent="Manual"/>
|
|
</Border>
|
|
</GroupBox>
|
|
<GroupBox Grid.Row="1" Header="MissAlign AutoCorrection" Style="{StaticResource StGroupBox4th}" Height="70">
|
|
<Border BorderBrush="Gray" BorderThickness="0.5">
|
|
<mah:ToggleSwitch Grid.Column="0" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold"
|
|
IsOn="{Binding EnableAutoMissAlign}"
|
|
OffContent="Disable"
|
|
OnContent="Enable"/>
|
|
</Border>
|
|
</GroupBox>
|
|
<GroupBox Grid.Row="2" Header="Param" Style="{StaticResource StGroupBox4th}">
|
|
<UniformGrid Rows="3">
|
|
<usercontrols:UCKeyValue KeyText="PageNo(0,1,2,3)" Value="{Binding CVThresholdCircle1}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="ThresholdSpiral1" Value="{Binding CVThresholdSpiral1}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="ThresholdSpiral2" Value="{Binding CVThresholdSpiral2}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<!--<usercontrols:UCKeyValue KeyText="ThresholdCircle4" Value="{Binding CVThresholdCircle4}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="ThresholdCircle5" Value="{Binding CVThresholdCircle5}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="ThresholdCircle6" Value="{Binding CVThresholdCircle6}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="ThresholdLine1" Value="{Binding CVThresholdLine1}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="ThresholdLine2" Value="{Binding CVThresholdLine2}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="RadiusMargin" Value="{Binding CVRadiusMargin}" DecimalPlaces="2" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="SearchSize" Value="{Binding CVSearchSize}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
|
|
<usercontrols:UCKeyValue KeyText="Threshold" Value="{Binding CVThreshold}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Radius" Value="{Binding Radius}" DecimalPlaces="2" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Margin" Value="{Binding Margin}" DecimalPlaces="0" Unit="pixel" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="DividePointNum" Value="{Binding PointNum}" DecimalPlaces="0" Unit="count" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="DetectPoint" Value="{Binding DetectPointPercent}" DecimalPlaces="2" Unit="%" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="JigSize" Value="{Binding CVJigSize}" DecimalPlaces="2" Unit="pixel" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>-->
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
<GroupBox Grid.Row="3" Header="4 Shrink Distance" Style="{StaticResource StGroupBox4th}">
|
|
<UniformGrid Rows="2" Columns="2">
|
|
<usercontrols:UCKeyValue KeyText="Quad2" Value="{Binding CVShrinkPixel2}" DecimalPlaces="0" Unit="px" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Quad1" Value="{Binding CVShrinkPixel}" DecimalPlaces="0" Unit="px" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Quad3" Value="{Binding CVShrinkPixel3}" DecimalPlaces="0" Unit="px" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Quad4" Value="{Binding CVShrinkPixel4}" DecimalPlaces="0" Unit="px" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="2" Header="Edge Detect Result Data" Margin="0 3 3 0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<UniformGrid Grid.Column="0" Rows="3">
|
|
<usercontrols:UCKeyValue KeyText="Ref X" Value="{Binding ReferenceX}" DecimalPlaces="1" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False" IsReadOnly="True"/>
|
|
<usercontrols:UCKeyValue KeyText="Ref Y" Value="{Binding ReferenceY}" DecimalPlaces="1" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False" IsReadOnly="True"/>
|
|
<usercontrols:UCKeyValue KeyText="Refe Theta" Value="{Binding ReferenceTheta}" DecimalPlaces="1" Unit="deg" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False" IsReadOnly="True"/>
|
|
</UniformGrid>
|
|
<UniformGrid Grid.Column="1" Rows="3">
|
|
<usercontrols:UCKeyValue KeyText="Offset X" Value="{Binding OffsetX}" DecimalPlaces="1" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False" IsReadOnly="True"/>
|
|
<usercontrols:UCKeyValue KeyText="Offset Y" Value="{Binding OffsetY}" DecimalPlaces="1" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False" IsReadOnly="True"/>
|
|
<usercontrols:UCKeyValue KeyText="Offset Theta" Value="{Binding OffsetTheta}" DecimalPlaces="1" Unit="deg" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False" IsReadOnly="True"/>
|
|
</UniformGrid>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="2" Margin="3 0 0 0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"></RowDefinition>
|
|
<RowDefinition Height="0.5*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid x:Name="gridRCCCameraView" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 5 0 0"/>
|
|
|
|
<GroupBox Header="Pattern List" Grid.Row="1" Grid.Column="0" Margin="0,5,0,0" Style="{StaticResource StGroupBox2nd}">
|
|
<Grid x:Name="gridPatternListView"></Grid>
|
|
</GroupBox>
|
|
<!--<GroupBox Grid.Row="0" Header="Object Generator Set" Margin="0 3 3 0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Grid.Row="0" Header="SMW Cell Type" Style="{StaticResource StGroupBox4th}" Height="70">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<RadioButton Grid.Column="0" Command="{Binding CMD_CellGenTypeChanged}" CommandParameter="Single"
|
|
Style="{StaticResource styleRb}" Content="Single" Margin="3" IsChecked="True"/>
|
|
<RadioButton Grid.Column="1" Command="{Binding CMD_CellGenTypeChanged}" CommandParameter="Multi"
|
|
Style="{StaticResource styleRb}" Content="Multi" Margin="3"/>
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox Grid.Row="1" Header="Object Generator Type" Style="{StaticResource StGroupBox4th}" Height="70">
|
|
<Border BorderBrush="Gray" BorderThickness="0.5">
|
|
<mah:ToggleSwitch Grid.Column="0" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold"
|
|
IsOn="{Binding IsArcByAngle}"
|
|
OffContent="FitArcsAndLines"
|
|
OnContent="ArcByAngle"/>
|
|
</Border>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="3" Header="ArcByAngle Param" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsArcByAngle, Converter={StaticResource convTrueVisible}}">
|
|
<UniformGrid Grid.Column="0" Rows="2">
|
|
<usercontrols:UCKeyValue KeyText="Object Number" Value="{Binding ObjectNumber}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Line Defualt Width" Value="{Binding LineDefualtWidth}" DecimalPlaces="2" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="3" Header="FitArcsAndLines Param" Style="{StaticResource StGroupBox4th}" Visibility="{Binding IsArcByAngle, Converter={StaticResource convFalseVisible}}">
|
|
<UniformGrid Grid.Column="0" Rows="5">
|
|
<usercontrols:UCKeyValue KeyText="Merge Dist" Value="{Binding MergeDist}" DecimalPlaces="1" Unit="pixel" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Max Arc Radius" Value="{Binding MaxArcRadius}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Line Tolerance" Value="{Binding LineTolerance}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Arc Tolerance" Value="{Binding ArcTolerance}" DecimalPlaces="0" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Line Defualt Width" Value="{Binding LineDefualtWidth}" DecimalPlaces="2" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="2" Header="DrawObject Interlock Param" Style="{StaticResource StGroupBox4th}">
|
|
<UniformGrid Grid.Column="0" Rows="4">
|
|
<usercontrols:UCKeyValue KeyText="Points Distance Range" Value="{Binding DrawObjectDistanceRange}" DecimalPlaces="2" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Path Length Diff Range" Value="{Binding DrawObjectLengthSumDiffRange}" DecimalPlaces="2" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="Arc Length Max" Value="{Binding DrawObjectArcLengthMax}" DecimalPlaces="0" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<usercontrols:UCKeyValue KeyText="CenterXY Diff Range" Value="{Binding DrawObjectCenterXYDiffRange}" DecimalPlaces="2" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox Header="Check Edge Param" Grid.Row="1" Margin="0 3 3 0">
|
|
<StackPanel Orientation="Vertical">
|
|
<usercontrols:UCKeyValue KeyText="Max-Min Diff High : " Value="{Binding MaxMinDiffHigh}" Unit="pixel" DecimalPlaces="0" ShowKeypad="False" />
|
|
<usercontrols:UCKeyValue KeyText="Max-Min Diff Low : " Value="{Binding MaxMinDiffLow}" Unit="pixel" DecimalPlaces="0" ShowKeypad="False" />
|
|
<usercontrols:UCKeyValue KeyText="Check Center Diff : " Value="{Binding CheckCenterDiff}" Unit="pixel" DecimalPlaces="0" ShowKeypad="False" />
|
|
<usercontrols:UCKeyValue KeyText="Distortion Center Diff : " Value="{Binding DistortionCenterDiff}" Unit="pixel" DecimalPlaces="0" ShowKeypad="False" />
|
|
</StackPanel>
|
|
</GroupBox>-->
|
|
</Grid>
|
|
|
|
<!--<Grid Grid.Column="3" Margin="3 0 0 0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Grid.Row="0" Header="RCC Sequence" Margin="0 3 3 0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.ColumnSpan="2" BorderBrush="Gray" BorderThickness="0.5">
|
|
<mah:ToggleSwitch HorizontalAlignment="Center" FontSize="12" FontWeight="Bold"
|
|
IsOn="{Binding IsRepeatEdgeDetectMode}"
|
|
OffContent="Normal"
|
|
OnContent="EdgeDetect Repeat"/>
|
|
</Border>
|
|
<usercontrols:UCKeyValue Grid.Row="1" Grid.ColumnSpan="2" KeyText="CellRadius Offset" Value="{Binding CellRadiusOffset}" DecimalPlaces="3" Unit="mm" KeyHorizontalAlignment="Right" KeyTextWidth="0.9*" ShowKeypad="False"/>
|
|
<Button Grid.Row="2" Margin="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" FontWeight="Bold" Style="{StaticResource StButtonAccentPurple}" Command="{Binding CMD_RunManualRunRCC}" Content="Run Manual RCC" IsEnabled="{Binding IsSequenceRunning_ManualRunRCC, Converter={StaticResource convReverse}}"/>
|
|
<Button Grid.Row="2" Grid.Column="1" Margin="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" FontWeight="Bold" Style="{StaticResource StButtonAccentPurple}" Command="{Binding CMD_StopManualRunRCC}" Content="Stop" IsEnabled="{Binding IsSequenceRunning_ManualRunRCC}"/>
|
|
</Grid>
|
|
</GroupBox>
|
|
-->
|
|
<!--<GroupBox Grid.Row="1" Header="Etc Operation" Margin="0 3 3 0">
|
|
<UniformGrid Grid.Column="0" Rows="3">
|
|
<Button Margin="3" Command="{Binding CMD_RecommendEdgeDetectParams}" Content="Recommend Edge Detect Params" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_CenterDetectTest}" Content="Center Detect Test" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
<Button Margin="3" Command="{Binding CMD_SaveSystemParameter}" Content="Save SystemParameter" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="auto" Style="{StaticResource StButtonAccentBlue}" />
|
|
</UniformGrid>
|
|
</GroupBox>-->
|
|
<!--<GroupBox Header="Result Contour Correction Info" Grid.Row="2" Grid.Column="0" Margin="0 7 0 0">
|
|
<DataGrid Name="GridEditorContourCorrectionInfoList" Margin="0 0 0 0" ItemsSource="{Binding ContourCorrectionInfoList}" SelectionUnit="FullRow"
|
|
AutoGenerateColumns="False" HeadersVisibility="Column" CanUserAddRows="False"
|
|
RowHeight="30" MinRowHeight="30" MinColumnWidth="50" ColumnWidth="*"
|
|
KeyDown="GridEditorContourCorrectionInfoList_KeyDown"
|
|
SelectedCellsChanged="GridEditorContourCorrectionInfoList_SelectedCellsChanged" IsVisibleChanged="GridEditorContourCorrectionInfoList_IsVisibleChanged"
|
|
SelectionMode="Single"
|
|
ScrollViewer.CanContentScroll="True"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" IsReadOnly="True">
|
|
<behavior:Interaction.Behaviors>
|
|
<aurorauicomponent:DataGridBehavior ShowRowNumber="True" />
|
|
</behavior:Interaction.Behaviors>
|
|
<DataGrid.InputBindings>
|
|
<KeyBinding Key="V" Modifiers="Control" Command="Paste" />
|
|
</DataGrid.InputBindings>
|
|
<DataGrid.CommandBindings>
|
|
<CommandBinding Command="Paste" Executed="PasteCommand_Executed_ContourCorrectionInfoList"/>
|
|
</DataGrid.CommandBindings>
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="Index" Binding="{Binding Index}"/>
|
|
<DataGridTextColumn Header="Vision X" Binding="{Binding VisionX}"/>
|
|
<DataGridTextColumn Header="Vision Y" Binding="{Binding VisionY}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</GroupBox>-->
|
|
<!--
|
|
</Grid>
|
|
</Grid>-->
|
|
</Grid>
|
|
</UserControl>
|