示例#1
0
    /// <summary>
    /// Triggered when the system calibrates = anchor is created (either when user clicks on calibration cube or when system loads the cloud anchor).
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="args"></param>
    private void OnARCalibrated(object sender, CalibrationEventArgs args)
    {
#if UNITY_ANDROID && AR_ON
        // Activate toggle to enable hiding/displaying calibration cube
        CalibrationElements.Interactable = args.Calibrated;
        CalibrationElementsTooltip.DisplayAlternativeDescription = !args.Calibrated;
#endif
    }
示例#2
0
        private void CalibrateRelay(object sender, CalibrationEventArgs e)
        {
            var handler = Calibrate;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
示例#3
0
 //Calls
 private void Calibration_Start(object sender, CalibrationEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
     {
         calibration_StackPanel.Visibility = Visibility.Visible;
         cap_StackPanel.Visibility         = Visibility.Collapsed;
     });
     calibration = true;
 }
 void compass_Calibrate(object sender, CalibrationEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
     {
         calibrating              = true;
         AppGrid.Visibility       = Visibility.Collapsed;
         CalibrateGrid.Visibility = Visibility.Visible;
     });
 }
示例#5
0
 private void OnCompassCalibrate(object sender, CalibrationEventArgs e)
 {
     // Relay the event.
     Deployment.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         if (CompassCalibrationRequested != null)
         {
             CompassCalibrationRequested(this, EventArgs.Empty);
         }
     }));
 }
示例#6
0
 void WrappedSubjectCalibrate(object sender, CalibrationEventArgs e)
 {
     CalibrateRelay(sender, e);
 }
示例#7
0
 void cmp_Calibrate(object sender, CalibrationEventArgs e)
 {
     //コンパスの方位精度が +/- 20°を超えていることがシステムによって検出された場合に発生
 }
示例#8
0
 private void OnARCalibrated(object sender, CalibrationEventArgs args)
 {
     anchorTrackingStatus = args.Calibrated ? anchorTrackingStatus : AnchorTrackingStatus.NotCalibrated;
 }
示例#9
0
        /// <summary>
        /// Hides the application bar and shows the calibration view.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnCalibrate(object sender, CalibrationEventArgs e)
        {
            Debug.WriteLine(DebugTag + "OnCalibrate(): Accuracy: "
                + ((_compass == null) ? "n/a" : _compass.CurrentValue.HeadingAccuracy.ToString()));

            if (_calibrationTimer == null)
            {
                _calibrationTimer = new Timer(OnCalibrationTimerTimeout, null,
                    TimeSpan.FromSeconds(ShowCalibrationViewDelay),
                    TimeSpan.FromSeconds(CalibrationTimerInterval));
            }
        }
 void compassSensor_Calibrate(object sender, CalibrationEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
                            MessageBox.Show("The compass sensor needs to be calibrated. Wave the phone around in the air until the heading accuracy value is less than 20 degrees")
                            );
 }
 private void compass_Calibrate(object sender, CalibrationEventArgs e)
 {
     Dispatcher.BeginInvoke(() => { CalibrationGrid.Visibility = Visibility.Visible; });
     calibrating = true;
 }
 void compass_Calibrate(object sender, CalibrationEventArgs e)
 {
     Dispatcher.BeginInvoke(() => { calibrationStackPanel.Visibility = Visibility.Visible; });
     calibrating = true;
 }
示例#13
0
 private void compass_Calibrate(object sender, CalibrationEventArgs e)
 {
     isCalibrating = true;
     Dispatcher.BeginInvoke(UpdateCalibrateUI);
 }
示例#14
0
 private void compass_Calibrate(object sender, CalibrationEventArgs e)
 {
     isNeedCalibration = true;
 }