public MoveToPreviousSegmentInfoPage ( ) : void | ||
Результат | void |
public EngineDataContext(Engine engine, TileManagerDataContext tileManagerDataContext) { Engine = engine; TileManagerDataContext = tileManagerDataContext; // // File menu commands // LoadDatasetCommand = new RelayCommand(param => LoadDataset()); LoadSegmentationCommand = new RelayCommand(param => LoadSegmentation(), param => Engine.TileManager.TiledDatasetLoaded); SaveSegmentationCommand = new RelayCommand(param => SaveSegmentation(), param => Engine.TileManager.SegmentationLoaded); SaveSegmentationAsCommand = new RelayCommand(param => SaveSegmentationAs(), param => Engine.TileManager.SegmentationLoaded); ExitCommand = new RelayCommand(param => Application.Current.MainWindow.Close()); // // Edit menu commands // UndoChangeCommand = new RelayCommand(param => Engine.TileManager.UndoChange(), param => Engine.TileManager.SegmentationLoaded); RedoChangeCommand = new RelayCommand(param => Engine.TileManager.RedoChange(), param => Engine.TileManager.SegmentationLoaded); SelectNewIdCommand = new RelayCommand(param => Engine.TileManager.SelectNewId(), param => Engine.TileManager.SegmentationLoaded); CommitChangeCommand = new RelayCommand(param => Engine.CommitChange(), param => Engine.TileManager.SegmentationLoaded); CancelChangeCommand = new RelayCommand(param => Engine.CancelChange(), param => Engine.TileManager.SegmentationLoaded); IncreaseBrushSizeCommand = new RelayCommand(param => Engine.TileManager.IncreaseBrushSize(), param => Engine.TileManager.SegmentationLoaded); DecreaseBrushSizeCommand = new RelayCommand(param => Engine.TileManager.DecreaseBrushSize(), param => Engine.TileManager.SegmentationLoaded); // // View menu commands // NextImageCommand = new RelayCommand(param => Engine.NextImage(), param => Engine.TileManager.TiledDatasetLoaded); PreviousImageCommand = new RelayCommand(param => Engine.PreviousImage(), param => Engine.TileManager.TiledDatasetLoaded); ZoomInCommand = new RelayCommand(param => Engine.ZoomIn(), param => Engine.TileManager.TiledDatasetLoaded); ZoomOutCommand = new RelayCommand(param => Engine.ZoomOut(), param => Engine.TileManager.TiledDatasetLoaded); UpdateLocationFromTextCommand = new RelayCommand(param => Engine.UpdateLocationFromText(param), param => Engine.TileManager.TiledDatasetLoaded); ToggleShowSegmentationCommand = new RelayCommand(param => Engine.TileManager.ToggleShowSegmentation(), param => Engine.TileManager.SegmentationLoaded); ToggleShowBoundaryLinesCommand = new RelayCommand(param => Engine.TileManager.ToggleShowBoundaryLines(), param => Engine.TileManager.SegmentationLoaded); ToggleJoinSplits3DCommand = new RelayCommand(param => Engine.TileManager.ToggleJoinSplits3D(), param => Engine.TileManager.SegmentationLoaded); IncreaseSegmentationVisibilityCommand = new RelayCommand(param => Engine.TileManager.IncreaseSegmentationVisibility(), param => Engine.TileManager.SegmentationLoaded); DecreaseSegmentationVisibilityCommand = new RelayCommand(param => Engine.TileManager.DecreaseSegmentationVisibility(), param => Engine.TileManager.SegmentationLoaded); // // Segment list commands // FirstSegmentPageCommand = new RelayCommand(param => TileManagerDataContext.MoveToFirstSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded); PreviousSegmentPageCommand = new RelayCommand(param => TileManagerDataContext.MoveToPreviousSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded); NextSegmentPageCommand = new RelayCommand(param => TileManagerDataContext.MoveToNextSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded); LastSegmentPageCommand = new RelayCommand(param => TileManagerDataContext.MoveToLastSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded); TileManagerDataContext.StateChanged += StateChangedHandler; MergeModes = new List <MergeModeItem> { new MergeModeItem() { MergeMode = MergeMode.GlobalReplace, DisplayName = "Global Replace" }, new MergeModeItem() { MergeMode = MergeMode.Fill2D, DisplayName = "2D Region Fill" }, new MergeModeItem() { MergeMode = MergeMode.Fill3D, DisplayName = "3D Region Fill (slow)" }, }; MergeControlModes = new List <MergeControlModeItem> { new MergeControlModeItem() { MergeControlMode = MergeControlMode.Draw, DisplayName = "Draw" }, new MergeControlModeItem() { MergeControlMode = MergeControlMode.Click, DisplayName = "Click" }, }; SplitModes = new List <SplitModeItem> { new SplitModeItem() { SplitMode = SplitMode.DrawSplit, DisplayName = "Draw Split Line" }, new SplitModeItem() { SplitMode = SplitMode.DrawRegions, DisplayName = "Draw Regions" }, new SplitModeItem() { SplitMode = SplitMode.JoinPoints, DisplayName = "Points" } }; OnPropertyChanged("MergeModes"); OnPropertyChanged("MergeControlModes"); OnPropertyChanged("SplitModes"); }
public EngineDataContext( Engine engine, TileManagerDataContext tileManagerDataContext ) { Engine = engine; TileManagerDataContext = tileManagerDataContext; // // File menu commands // LoadDatasetCommand = new RelayCommand( param => LoadDataset() ); LoadSegmentationCommand = new RelayCommand( param => LoadSegmentation(), param => Engine.TileManager.TiledDatasetLoaded ); SaveSegmentationCommand = new RelayCommand( param => SaveSegmentation(), param => Engine.TileManager.SegmentationLoaded ); SaveSegmentationAsCommand = new RelayCommand( param => SaveSegmentationAs(), param => Engine.TileManager.SegmentationLoaded ); ExitCommand = new RelayCommand( param => Application.Current.MainWindow.Close() ); // // Edit menu commands // UndoChangeCommand = new RelayCommand( param => Engine.TileManager.UndoChange(), param => Engine.TileManager.SegmentationLoaded ); RedoChangeCommand = new RelayCommand( param => Engine.TileManager.RedoChange(), param => Engine.TileManager.SegmentationLoaded ); SelectNewIdCommand = new RelayCommand( param => Engine.TileManager.SelectNewId(), param => Engine.TileManager.SegmentationLoaded ); CommitChangeCommand = new RelayCommand( param => Engine.CommitChange(), param => Engine.TileManager.SegmentationLoaded ); CancelChangeCommand = new RelayCommand( param => Engine.CancelChange(), param => Engine.TileManager.SegmentationLoaded ); IncreaseBrushSizeCommand = new RelayCommand( param => Engine.TileManager.IncreaseBrushSize(), param => Engine.TileManager.SegmentationLoaded ); DecreaseBrushSizeCommand = new RelayCommand( param => Engine.TileManager.DecreaseBrushSize(), param => Engine.TileManager.SegmentationLoaded ); // // View menu commands // NextImageCommand = new RelayCommand( param => Engine.NextImage(), param => Engine.TileManager.TiledDatasetLoaded ); PreviousImageCommand = new RelayCommand( param => Engine.PreviousImage(), param => Engine.TileManager.TiledDatasetLoaded ); ZoomInCommand = new RelayCommand( param => Engine.ZoomIn(), param => Engine.TileManager.TiledDatasetLoaded ); ZoomOutCommand = new RelayCommand( param => Engine.ZoomOut(), param => Engine.TileManager.TiledDatasetLoaded ); UpdateLocationFromTextCommand = new RelayCommand( param => Engine.UpdateLocationFromText(param), param => Engine.TileManager.TiledDatasetLoaded ); ToggleShowSegmentationCommand = new RelayCommand( param => Engine.TileManager.ToggleShowSegmentation(), param => Engine.TileManager.SegmentationLoaded ); ToggleShowBoundaryLinesCommand = new RelayCommand( param => Engine.TileManager.ToggleShowBoundaryLines(), param => Engine.TileManager.SegmentationLoaded ); ToggleJoinSplits3DCommand = new RelayCommand( param => Engine.TileManager.ToggleJoinSplits3D(), param => Engine.TileManager.SegmentationLoaded ); IncreaseSegmentationVisibilityCommand = new RelayCommand( param => Engine.TileManager.IncreaseSegmentationVisibility(), param => Engine.TileManager.SegmentationLoaded ); DecreaseSegmentationVisibilityCommand = new RelayCommand( param => Engine.TileManager.DecreaseSegmentationVisibility(), param => Engine.TileManager.SegmentationLoaded ); // // Segment list commands // FirstSegmentPageCommand = new RelayCommand( param => TileManagerDataContext.MoveToFirstSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded ); PreviousSegmentPageCommand = new RelayCommand( param => TileManagerDataContext.MoveToPreviousSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded ); NextSegmentPageCommand = new RelayCommand( param => TileManagerDataContext.MoveToNextSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded ); LastSegmentPageCommand = new RelayCommand( param => TileManagerDataContext.MoveToLastSegmentInfoPage(), param => Engine.TileManager.SegmentationLoaded ); TileManagerDataContext.StateChanged += StateChangedHandler; MergeModes = new List<MergeModeItem> { new MergeModeItem() {MergeMode = MergeMode.GlobalReplace, DisplayName = "Global Replace"}, new MergeModeItem() {MergeMode = MergeMode.Fill2D, DisplayName = "2D Region Fill"}, new MergeModeItem() {MergeMode = MergeMode.Fill3D, DisplayName = "3D Region Fill (slow)"}, }; MergeControlModes = new List<MergeControlModeItem> { new MergeControlModeItem() {MergeControlMode = MergeControlMode.Draw, DisplayName = "Draw"}, new MergeControlModeItem() {MergeControlMode = MergeControlMode.Click, DisplayName = "Click"}, }; SplitModes = new List<SplitModeItem> { new SplitModeItem() {SplitMode = SplitMode.DrawSplit, DisplayName = "Draw Split Line"}, new SplitModeItem() {SplitMode = SplitMode.DrawRegions, DisplayName = "Draw Regions"}, new SplitModeItem() {SplitMode = SplitMode.JoinPoints, DisplayName = "Points"} }; OnPropertyChanged( "MergeModes" ); OnPropertyChanged( "MergeControlModes" ); OnPropertyChanged( "SplitModes" ); }