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;
 }
Exemple #3
0
        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>();
        }
Exemple #5
0
 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;
 }
Exemple #6
0
        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>();
        }
Exemple #7
0
 public MouseOperationMove(ISelectableController selectableController)
     : base(MouseOperationType.Move, MouseEventType.Move | MouseEventType.Down)
 {
     _selectableController = selectableController;
 }