public MouseOperationManager( ICalculateHelper calculateHelper, IOptions <OperationOptions> operationOptions, IServiceProvider serviceProvider, IMapSettingsController mapSettingsController, ICurrentPositionController currentPositionController, IManagerCursor managerCursor, ISelectableController selectableController, ISelectableObjects selectableObjects, ILogger <MouseOperationManager> logger ) { _calculateHelper = calculateHelper; _operationOptions = operationOptions; _mapSettingsController = mapSettingsController; _currentPositionController = currentPositionController; _managerCursor = managerCursor; _selectableController = selectableController; _selectableObjects = selectableObjects; _logger = logger; _mapZoomOperation = serviceProvider.GetService <IMapZoomOperation>(); _mapMoveOperation = serviceProvider.GetService <IMapMoveOperation>(); _selectOperation = serviceProvider.GetService <ISelectOperation>(); _moveOperation = serviceProvider.GetService <IMoveOperation>(); }
public MoveOperation( IManagerCursor managerCursor, IOperationLayer operationLayer, ISelectableController selectableController, ILogger <MoveOperation> logger = null ) : base(true, logger) { _managerCursor = managerCursor; _operationLayer = operationLayer; _selectableController = selectableController; }
public OperationLayer( ISelectableController selectableController, IMapSettingsController mapSettingsController, IManagedDrawSelectableObject drawSelectableObject ) { IsVisible = true; _selectableController = selectableController; _mapSettingsController = mapSettingsController; _drawSelectableObject = drawSelectableObject; _selectableController.Changed += SelectableControllerOnChanged; _drawActions = new List <IOperationLayer.DrawAction>(); }
public MouseOperationSelect( IOptions <OperationOptions> drawingOptions, IServiceProvider serviceProvider, IMapSettingsController mapSettingsController, ISelectableController selectableController, ISelectableObjects selectableObjects ) : base(MouseOperationType.Select, MouseEventType.Move | MouseEventType.Up | MouseEventType.Down) { _drawingOptions = drawingOptions; _serviceProvider = serviceProvider; _mapSettingsController = mapSettingsController; _selectableController = selectableController; _selectableObjects = selectableObjects; _mouseOperationMove = _serviceProvider.CreateInstance <MouseOperationMove>(); }
public SelectOperation( IManagerCursor managerCursor, IOperationLayer operationLayer, IOptions <OperationOptions> operationOptions, IMapSettingsController mapSettingsController, ISelectableController selectableController, ISelectableObjects selectableObjects, ILogger <SelectOperation> logger = null ) : base(true, logger) { _managerCursor = managerCursor; _operationLayer = operationLayer; _operationOptions = operationOptions; _mapSettingsController = mapSettingsController; _selectableController = selectableController; _selectableObjects = selectableObjects; }
public MainWindowViewModel( IServiceProvider serviceProvider, ICourseLayerManager layerManager, ICourseFile courseFile, SelectableObjects.IModelSelectableObjects selectableObjects, ISelectableController selectableController ) { ServiceProvider = serviceProvider; _layerManager = layerManager; _courseFile = courseFile; _selectableObjects = selectableObjects; _selectableController = selectableController; _selectableController.Changed += SelectableControllerOnChanged; OpenCommand = new RelayCommand(() => OpenCommandExecute()); OpenMapCommand = new RelayCommand(() => OpenMapCommandExecute()); AddMapSplinesCommand = new RelayCommand(() => AddMapSplinesCommandExecute()); // Manual serviceProvider.GetService <MouseController>(); }
public MouseOperationMove(ISelectableController selectableController) : base(MouseOperationType.Move, MouseEventType.Move | MouseEventType.Down) { _selectableController = selectableController; }