123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <Window x:Class="AILesionDescriptionGTGenerator.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:AILesionDescriptionGTGenerator"
- mc:Ignorable="d"
- Title="MainWindow" Height="650" Width="1500">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="150"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="200"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0" x:Name="GridOrigImg" SizeChanged="Canvas_SizeChanged">
- <Canvas x:Name="MyCanvas">
- <Image x:Name="OrigImage" Stretch="Fill">
- <Image.RenderTransform>
- <ScaleTransform x:Name="OrigImgScaleTramsform"/>
- </Image.RenderTransform>
- </Image>
- </Canvas>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="70"/>
- <RowDefinition Height="70"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <ComboBox x:Name="ComboBoxOriLesions" FontSize="12" Margin="4,4,2,4" VerticalAlignment="Top" SelectionChanged="OnModelLesionSelectionChanged"/>
- </Grid>
- <Grid Grid.Row="1">
- <TextBlock x:Name="TextBlockLabel" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Top" Width="150"/>
- </Grid>
- <Grid Grid.Row="2" Height="40" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockShape" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Top" Width="150"/>
- </Grid>
- <Grid Grid.Row="3" Height="50" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockOrientation" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
- </Grid>
- <Grid Grid.Row="4" Height="50" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockEcho" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
- </Grid>
- <Grid Grid.Row="5" Height="50" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockBound" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
- </Grid>
- <Grid Grid.Row="6" Height="50" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockMargin" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
- </Grid>
- <Grid Grid.Row="7" Height="50" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockHorizontal" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
- </Grid>
- <Grid Grid.Row="8" Height="50" VerticalAlignment="Top">
- <TextBlock x:Name="TextBlockVertical" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
- </Grid>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="2" x:Name="GridDrawImg" SizeChanged="Canvas_SizeChanged">
- <Canvas x:Name="MyCanvasDraw" MouseLeftButtonDown="Canvas_MouseLeftBtnDown" MouseLeftButtonUp="Canvas_MouseLeftBtnUp" MouseMove="Canvas_MouseMove">
- <Image x:Name="DrawImage" Stretch="Fill">
- <Image.RenderTransform>
- <ScaleTransform x:Name="DrawImgScaleTramsform"/>
- </Image.RenderTransform>
- </Image>
- </Canvas>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <CheckBox x:Name="CheckModelResult" IsChecked="True" Content="显示病灶轮廓" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUncheckedCheckModelResult" Checked="OnCheckedCheckModelResult"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Width="775">
- <CheckBox x:Name="CheckDrawingResult" IsChecked="True" Content="显示病灶轮廓" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUncheckedCheckDrawingResult" Checked="OnCheckedCheckDrawingResult"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <Button Content="上一幅图" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnPreviousImageClicked"/>
- <Button Content="下一幅图" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnNextImageClicked"/>
- <TextBlock Text="当前序号:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" />
- <TextBlock x:Name="TextBlockCurrentIndex" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="50"/>
- <TextBlock Text="鼠标位置:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
- <TextBlock x:Name="TextBlockMousePosition" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="50"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <Button Content="复制模型数据" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnCopyModelResultClicked"/>
- <Button Content="保存结果数据" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnSaveResultClicked"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="3">
- <Grid.RowDefinitions>
- <RowDefinition Height="36"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="0.3*"/>
- <ColumnDefinition Width="0.3*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <ComboBox x:Name="ComboBoxLesions" FontSize="12" Margin="4,4,2,4" VerticalAlignment="Center" SelectionChanged="OnLesionSelectionChanged"/>
- </Grid>
- <Grid Grid.Column="1">
- <Button Content="新增" FontSize="12" Margin="2,4,2,4" Click="OnBtnAddNewROIClicked"/>
- </Grid>
- <Grid Grid.Column="2">
- <Button Content="删除" FontSize="12" Margin="2,4,4,4" Click="OnBtnDeleteSelROIClicked"/>
- </Grid>
- </Grid>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.2*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <TextBlock Text="分级:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" />
- </Grid>
- <Grid Grid.Column="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <ComboBox x:Name="ComboBoxLesionsLabel" FontSize="12" Margin="4,0,2,0" VerticalAlignment="Center" SelectionChanged="OnLesionSelectionLabelChanged"/>
- </Grid>
- </Grid>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20*"/>
- <ColumnDefinition Width="17*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="1">
- <Button Content="后退" FontSize="12" Margin="2,4,4,4" Click="OnBtnGoBackClicked"/>
- </Grid>
- </Grid>
- <Grid Grid.Row="3">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="23*"/>
- <ColumnDefinition Width="17*"/>
- </Grid.ColumnDefinitions>
- <local:LesionInfoSelector x:Name="UserControlLesionSelected" Margin="4,4,4,4" Grid.ColumnSpan="2"/>
- </Grid>
- </Grid>
- </Grid>
- </Window>
|