/// <summary>
        /// Resolve dependencies method
        /// </summary>
        protected override void ResolveDependencies()
        {
            base.ResolveDependencies();

            this.spatialMappingService = WaveServices.GetService <SpatialMappingService>();
            if (this.spatialMappingService != null)
            {
                Debug.WriteLine("GazeCollision component require the SpatialMappingService");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Resolve dependencies method
        /// </summary>
        protected override void ResolveDependencies()
        {
            base.ResolveDependencies();

            this.spatialMappingService = WaveServices.GetService<SpatialMappingService>();
            if (this.spatialMappingService != null)
            {
                Debug.WriteLine("GazeCollision component require the SpatialMappingService");
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize the component
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            this.spatialMappingService = WaveServices.GetService<SpatialMappingService>();

            if (this.IsConnected)
            {
                // Do a first update
                this.spatialMappingService.UpdateSurfaces(this.OnSurfaceChanged, true);

                // start the timer
                this.RefreshTimer();
            }
        }