| File was renamed from src/RichCreator.Editor/Tools/DijkstraTools.xaml.cs |
| | |
| | | /// <summary> |
| | | /// AStarTools.xaml 的交互逻辑 |
| | | /// </summary> |
| | | public partial class DijkstraTools : Window |
| | | public partial class MapEditor : Window |
| | | { |
| | | public DijkstraTools() |
| | | public MapEditor() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | |
| | | this.image = source.Bitmap; |
| | | SetImage(this.SourceImage); |
| | | } |
| | | |
| | | |
| | | private Polygon myPolygon = null; |
| | | |
| | | private void Window_Loaded(object sender, RoutedEventArgs e) |
| | | { |
| | | Polygon p = new Polygon(); |
| | | p.Stroke = Brushes.Black; |
| | | p.Fill = Brushes.LightBlue; |
| | | p.StrokeThickness = 5; |
| | | p.HorizontalAlignment = HorizontalAlignment.Left; |
| | | p.VerticalAlignment = VerticalAlignment.Center; |
| | | p.Points = new System.Windows.Media.PointCollection() { new Point(10, 10), new Point(100, 100), new Point(200, 200) }; |
| | | this.mainContainer.Children.Add(p); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置图像 |
| | | /// </summary> |
| | |
| | | { |
| | | AddLocationPoint(pi.Positions[i].X, pi.Positions[i].Y, pi.Positions[i].Parameter); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | } |