MainWindow.xaml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <Window x:Class="AILesionDescriptionGTGenerator.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:AILesionDescriptionGTGenerator"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="650" Width="1500">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="40"/>
  13. <RowDefinition Height="40"/>
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="*"/>
  17. <ColumnDefinition Width="150"/>
  18. <ColumnDefinition Width="*"/>
  19. <ColumnDefinition Width="200"/>
  20. </Grid.ColumnDefinitions>
  21. <Grid Grid.Row="0" Grid.Column="0" x:Name="GridOrigImg" SizeChanged="Canvas_SizeChanged">
  22. <Canvas x:Name="MyCanvas">
  23. <Image x:Name="OrigImage" Stretch="Fill">
  24. <Image.RenderTransform>
  25. <ScaleTransform x:Name="OrigImgScaleTramsform"/>
  26. </Image.RenderTransform>
  27. </Image>
  28. </Canvas>
  29. </Grid>
  30. <Grid Grid.Row="0" Grid.Column="1">
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="70"/>
  33. <RowDefinition Height="70"/>
  34. <RowDefinition Height="40"/>
  35. <RowDefinition Height="50"/>
  36. <RowDefinition Height="50"/>
  37. <RowDefinition Height="50"/>
  38. <RowDefinition Height="50"/>
  39. <RowDefinition Height="50"/>
  40. <RowDefinition Height="50"/>
  41. <RowDefinition Height="*"/>
  42. </Grid.RowDefinitions>
  43. <Grid Grid.Row="0">
  44. <ComboBox x:Name="ComboBoxOriLesions" FontSize="12" Margin="4,4,2,4" VerticalAlignment="Top" SelectionChanged="OnModelLesionSelectionChanged"/>
  45. </Grid>
  46. <Grid Grid.Row="1">
  47. <TextBlock x:Name="TextBlockLabel" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Top" Width="150"/>
  48. </Grid>
  49. <Grid Grid.Row="2" Height="40" VerticalAlignment="Top">
  50. <TextBlock x:Name="TextBlockShape" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Top" Width="150"/>
  51. </Grid>
  52. <Grid Grid.Row="3" Height="50" VerticalAlignment="Top">
  53. <TextBlock x:Name="TextBlockOrientation" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
  54. </Grid>
  55. <Grid Grid.Row="4" Height="50" VerticalAlignment="Top">
  56. <TextBlock x:Name="TextBlockEcho" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
  57. </Grid>
  58. <Grid Grid.Row="5" Height="50" VerticalAlignment="Top">
  59. <TextBlock x:Name="TextBlockBound" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
  60. </Grid>
  61. <Grid Grid.Row="6" Height="50" VerticalAlignment="Top">
  62. <TextBlock x:Name="TextBlockMargin" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
  63. </Grid>
  64. <Grid Grid.Row="7" Height="50" VerticalAlignment="Top">
  65. <TextBlock x:Name="TextBlockHorizontal" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
  66. </Grid>
  67. <Grid Grid.Row="8" Height="50" VerticalAlignment="Top">
  68. <TextBlock x:Name="TextBlockVertical" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="150"/>
  69. </Grid>
  70. </Grid>
  71. <Grid Grid.Row="0" Grid.Column="2" x:Name="GridDrawImg" SizeChanged="Canvas_SizeChanged">
  72. <Canvas x:Name="MyCanvasDraw" MouseLeftButtonDown="Canvas_MouseLeftBtnDown" MouseLeftButtonUp="Canvas_MouseLeftBtnUp" MouseMove="Canvas_MouseMove">
  73. <Image x:Name="DrawImage" Stretch="Fill">
  74. <Image.RenderTransform>
  75. <ScaleTransform x:Name="DrawImgScaleTramsform"/>
  76. </Image.RenderTransform>
  77. </Image>
  78. </Canvas>
  79. </Grid>
  80. <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
  81. <StackPanel Orientation="Horizontal">
  82. <CheckBox x:Name="CheckModelResult" IsChecked="True" Content="显示病灶轮廓" Margin="4,4,4,4"
  83. VerticalAlignment="Center" Unchecked="OnUncheckedCheckModelResult" Checked="OnCheckedCheckModelResult"/>
  84. </StackPanel>
  85. </Grid>
  86. <Grid Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2">
  87. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Width="775">
  88. <CheckBox x:Name="CheckDrawingResult" IsChecked="True" Content="显示病灶轮廓" Margin="4,4,4,4"
  89. VerticalAlignment="Center" Unchecked="OnUncheckedCheckDrawingResult" Checked="OnCheckedCheckDrawingResult"/>
  90. </StackPanel>
  91. </Grid>
  92. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
  93. <StackPanel Orientation="Horizontal">
  94. <Button Content="上一幅图" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnPreviousImageClicked"/>
  95. <Button Content="下一幅图" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnNextImageClicked"/>
  96. <TextBlock Text="当前序号:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" />
  97. <TextBlock x:Name="TextBlockCurrentIndex" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="50"/>
  98. <TextBlock Text="鼠标位置:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
  99. <TextBlock x:Name="TextBlockMousePosition" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="50"/>
  100. </StackPanel>
  101. </Grid>
  102. <Grid Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2">
  103. <StackPanel Orientation="Horizontal">
  104. <Button Content="复制模型数据" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnCopyModelResultClicked"/>
  105. <Button Content="保存结果数据" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnBtnSaveResultClicked"/>
  106. </StackPanel>
  107. </Grid>
  108. <Grid Grid.Row="0" Grid.Column="3">
  109. <Grid.RowDefinitions>
  110. <RowDefinition Height="36"/>
  111. <RowDefinition Height="40"/>
  112. <RowDefinition Height="40"/>
  113. <RowDefinition Height="*"/>
  114. </Grid.RowDefinitions>
  115. <Grid Grid.Row="0">
  116. <Grid.ColumnDefinitions>
  117. <ColumnDefinition Width="*"/>
  118. <ColumnDefinition Width="0.3*"/>
  119. <ColumnDefinition Width="0.3*"/>
  120. </Grid.ColumnDefinitions>
  121. <Grid Grid.Column="0">
  122. <ComboBox x:Name="ComboBoxLesions" FontSize="12" Margin="4,4,2,4" VerticalAlignment="Center" SelectionChanged="OnLesionSelectionChanged"/>
  123. </Grid>
  124. <Grid Grid.Column="1">
  125. <Button Content="新增" FontSize="12" Margin="2,4,2,4" Click="OnBtnAddNewROIClicked"/>
  126. </Grid>
  127. <Grid Grid.Column="2">
  128. <Button Content="删除" FontSize="12" Margin="2,4,4,4" Click="OnBtnDeleteSelROIClicked"/>
  129. </Grid>
  130. </Grid>
  131. <Grid Grid.Row="1">
  132. <Grid.ColumnDefinitions>
  133. <ColumnDefinition Width="0.2*"/>
  134. <ColumnDefinition Width="*"/>
  135. </Grid.ColumnDefinitions>
  136. <Grid Grid.Column="0">
  137. <TextBlock Text="分级:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" />
  138. </Grid>
  139. <Grid Grid.Column="1">
  140. <Grid.ColumnDefinitions>
  141. <ColumnDefinition/>
  142. </Grid.ColumnDefinitions>
  143. <ComboBox x:Name="ComboBoxLesionsLabel" FontSize="12" Margin="4,0,2,0" VerticalAlignment="Center" SelectionChanged="OnLesionSelectionLabelChanged"/>
  144. </Grid>
  145. </Grid>
  146. <Grid Grid.Row="2">
  147. <Grid.ColumnDefinitions>
  148. <ColumnDefinition Width="20*"/>
  149. <ColumnDefinition Width="17*"/>
  150. </Grid.ColumnDefinitions>
  151. <Grid Grid.Column="1">
  152. <Button Content="后退" FontSize="12" Margin="2,4,4,4" Click="OnBtnGoBackClicked"/>
  153. </Grid>
  154. </Grid>
  155. <Grid Grid.Row="3">
  156. <Grid.ColumnDefinitions>
  157. <ColumnDefinition Width="23*"/>
  158. <ColumnDefinition Width="17*"/>
  159. </Grid.ColumnDefinitions>
  160. <local:LesionInfoSelector x:Name="UserControlLesionSelected" Margin="4,4,4,4" Grid.ColumnSpan="2"/>
  161. </Grid>
  162. </Grid>
  163. </Grid>
  164. </Window>