Example #1
0
 public MeasureActionBuilder(IUiModeChanges uiModeService,
                             IRigidNPR rigidNPRService,
                             Func <MeasureActionViewModel> measureFactory,
                             Func <DeleteOverlayActionViewModel> deleteFactory)
 {
     _uiModeService   = uiModeService;
     _rigidNPRService = rigidNPRService;
     _measureFactory  = measureFactory;
     _deleteFactory   = deleteFactory;
 }
Example #2
0
        public MainViewModel(
            Dispatcher dispatcher,
            IEventAggregator eventAggregator,
            ISeriesSelectorController seriesSelectorController,
            IUiModeChanges uiModeModel,
            ITargetLocation targetModel,
            ITransformation transformationInterface,
            IStripsViewerLayoutController viewerLayoutController,
            ICalibration calibrationInterface,
            IMovementDetection movementDetectionModel,
            ILocateXD locateXDModel,
            IStripsManager stripsManager,
            IACPC acpcInterface,
            IRigidNPR rigidNPRInterface)
        {
            _dispatcher               = dispatcher;
            _eventAggregator          = eventAggregator;
            _seriesSelectorController = seriesSelectorController;

            _uiModeModel                        = uiModeModel;
            _uiModeModel.ModeChanged           += (s, a) => UiModeChanged?.Invoke(s, a);
            _uiModeModel.LayerVisiblityChanged += (s, a) => LayerVisibilityChanged?.Invoke(s, a);

            _viewerLayoutController = viewerLayoutController;
            _stripsManager          = stripsManager;
            _rigidNPR = rigidNPRInterface;

            ACPC = new TargetViewModel(targetModel, transformationInterface, calibrationInterface, acpcInterface);

            MD      = new MDViewModel(movementDetectionModel);
            XDCalib = new XDCalibViewModel(locateXDModel);

            SwitchLayoutCommand      = new DelegateCommand <StripsViewerLayout>(SwitchLayout);
            AppWorkingOcurredCommand = new DelegateCommand(() => _eventAggregator.GetEvent <AppWorkingEvent>().Publish());

            StripsViewerLayouts = new ObservableCollection <StripsViewerLayout>(_viewerLayoutController.Layouts);

            _seriesSelectorController.SeriesSelected += OnSeriesSelected;
            _stripsManager.Changed += OnStripsManagerChanged;
        }
 public DeleteOverlayActionViewModel(IUiModeChanges uiModeService,
                                     Func <DeleteOverlayActionViewModel> factory)
     : base(factory)
 {
     _uiModeService = uiModeService;
 }
Example #4
0
 public MeasureActionViewModel(IUiModeChanges uiModeService,
                               Func <MeasureActionViewModel> factory) : base(factory)
 {
     _uiModeService    = uiModeService;
     CanEnterSubUiMode = true;
 }
Example #5
0
 public GuiModeButtonViewModel(IUiModeChanges uiModeChanges)
 {
     UiModeChanges = uiModeChanges;
 }