/// <summary> /// Creates an instance of <see cref="DefaultEnvironmentCleanerStep"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> public DefaultEnvironmentCleanerStep(IEnvironmentProfileRepository environmentProfileRepository) { if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; }
/// <summary> /// Creates an instance of <see cref="EnvironmentProfileSaverStep"/> class. /// </summary> /// <param name="async">Whether to perform an asynchronous save process or not.</param> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> public EnvironmentProfileSaverStep(bool async, IEnvironmentProfileRepository environmentProfileRepository) { if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _async = async; }
/// <summary> /// Creates an instance of <see cref="DefaultEnvironmentInitializationFactory"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="slamLocalizer">Slam type localizer. If null, means that other localizer was selected.</param> public DefaultEnvironmentInitializationFactory(IEnvironmentProfileRepository environmentProfileRepository, ISlamLocalizer slamLocalizer) { if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _slamLocalizer = slamLocalizer; }
private void Start() { _environmentProfileRepository = metaContext.Get <IEnvironmentProfileRepository>(); Validate(); _meshGenerator = metaContext.Get <IMeshGenerator>(); _meshGenerator.Material = _scanningMaterial; _modelFileManipulator = metaContext.Get <IModelFileManipulator>(); SetState(ReconstructionState.Initializing); }
/// <summary> /// Creates an instance of <see cref="EnvironmentInitializerFactory"/> class. /// </summary> /// <param name="metaContext">The Context to acces to the required services.</param> /// <param name="environmentScanControllerPrefab">The scan selector prefab used to control the environment reconstruction.</param> internal EnvironmentInitializerFactory(IMetaContextInternal metaContext, BaseEnvironmentScanController environmentScanControllerPrefab) { if (metaContext == null) { throw new ArgumentNullException("metaContext"); } _metaContext = metaContext; _environmentScanControllerPrefab = environmentScanControllerPrefab; _metaLocalization = _metaContext.Get <MetaLocalization>(); _environmentProfileRepository = _metaContext.Get <IEnvironmentProfileRepository>(); _slamLocalizer = GameObject.FindObjectOfType <SlamLocalizer>(); }
/// <summary> /// Creates an instance of <see cref="EnvironmentSlamSaverStep"/> class. /// </summary> /// <param name="slamLocalizer">Slam type localizer.</param> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> public EnvironmentSlamSaverStep(ISlamLocalizer slamLocalizer, IEnvironmentProfileRepository environmentProfileRepository) { if (slamLocalizer == null) { throw new ArgumentNullException("slamLocalizer"); } if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _slamLocalizer = slamLocalizer; }
/// <summary> /// Creates an instance of <see cref="EnvironmentReconstructionSaverStep"/> class. /// </summary> /// <param name="metaReconstruction">Object that manages the environment reconstruction.</param> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> public EnvironmentReconstructionSaverStep(IMetaReconstruction metaReconstruction, IEnvironmentProfileRepository environmentProfileRepository) { if (metaReconstruction == null) { throw new ArgumentNullException("metaReconstruction"); } if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _metaReconstruction = metaReconstruction; }
/// <summary> /// Creates an instance of <see cref="SelectedEnvironmentWithReconstructionInitialization"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="slamLocalizer">Slam type localizer.</param> public SelectedEnvironmentInitialization(IEnvironmentProfileRepository environmentProfileRepository, ISlamLocalizer slamLocalizer) { if (slamLocalizer == null) { throw new ArgumentNullException("slamLocalizer"); } if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _slamLocalizer = slamLocalizer; }
/// <summary> /// Creates an instance of <see cref="NewDefaultEnvironmentInitialization"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="slamEventProvider">Slam type localizer.</param> public NewDefaultEnvironmentInitialization(IEnvironmentProfileRepository environmentProfileRepository, ISlamEventProvider slamEventProvider) { if (slamEventProvider == null) { throw new ArgumentNullException("slamEventProvider"); } if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _slamEventProvider = slamEventProvider; }
/// <summary> /// Creates an instance of <see cref="DefaultEnvironmentProfileSelector"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="slamChecker">Object to check if an slam map can be localized.</param> public DefaultEnvironmentProfileSelector(IEnvironmentProfileRepository environmentProfileRepository, ISlamChecker slamChecker) { if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } if (slamChecker == null) { throw new ArgumentNullException("slamChecker"); } _environmentProfileRepository = environmentProfileRepository; _slamChecker = slamChecker; }
/// <summary> /// Creates an instance of <see cref="DefaultEnvironmentReset"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="metaReconstruction">Object that manages the environment reconstruction.</param> public DefaultEnvironmentReset(IEnvironmentProfileRepository environmentProfileRepository, IMetaReconstruction metaReconstruction) { if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } if (metaReconstruction == null) { throw new ArgumentNullException("metaReconstruction"); } _environmentProfileRepository = environmentProfileRepository; _metaReconstruction = metaReconstruction; }
/// <summary> /// Creates an instance of <see cref="SelectedEnvironmentWithReconstructionInitialization"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="slamLocalizer">Slam type localizer.</param> /// <param name="metaReconstruction">Object that manages the environment reconstruction.</param> public SelectedEnvironmentWithReconstructionInitialization(IEnvironmentProfileRepository environmentProfileRepository, ISlamLocalizer slamLocalizer, IMetaReconstruction metaMetaReconstruction) { if (metaMetaReconstruction == null) { throw new ArgumentNullException("metaMetaReconstruction"); } if (slamLocalizer == null) { throw new ArgumentNullException("slamLocalizer"); } if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } _environmentProfileRepository = environmentProfileRepository; _slamLocalizer = slamLocalizer; _metaReconstruction = metaMetaReconstruction; }
/// <summary> /// Creates an instance of <see cref="DefaultEnvironmentWithReconstructionInitializationFactory"/> class. /// </summary> /// <param name="environmentProfileRepository">Repository to access to the environment profiles.</param> /// <param name="slamLocalizer">Slam type localizer. If null, means that other localizer was selected.</param> /// <param name="metaReconstruction">Object that manages the environment reconstruction.</param> /// <param name="scanControllerPrefab">Triggerer of the the environment reconstruction scanning process.</param> public DefaultEnvironmentWithReconstructionInitializationFactory(IEnvironmentProfileRepository environmentProfileRepository, ISlamLocalizer slamLocalizer, IMetaReconstruction metaReconstruction, BaseEnvironmentScanController scanControllerPrefab) { if (environmentProfileRepository == null) { throw new ArgumentNullException("environmentProfileRepository"); } if (scanControllerPrefab == null) { throw new ArgumentNullException("scanControllerPrefab"); } if (metaReconstruction == null) { throw new ArgumentNullException("metaReconstruction"); } _environmentProfileRepository = environmentProfileRepository; _slamLocalizer = slamLocalizer; _scanControllerPrefab = scanControllerPrefab; _metaReconstruction = metaReconstruction; }