//****************************** PositionCompensationSpeed ****************************** //****************************** RotationCompensationSpeed ****************************** public void RotationCompensationSpeedSliderValueChanged(float value) { _rotationCompensationSpeedInputField.text = value.ToString(CultureInfo.CurrentCulture); _targetHeadViewAutoCenterSettings = GetTargetAutoCenterSettings(); _targetHeadViewAutoCenterSettings.RotationCompensationSpeed = value; UpdateExtendedViewSettingsWithHeadAutoCenterSettings(); }
//****************************** MaxAngularDistanceDegrees ****************************** //****************************** FasterNormalizationFactor ****************************** public void FasterNormalizationFactorSliderValueChanged(float value) { _fasterNormalizationFactorInputField.text = value.ToString(CultureInfo.CurrentCulture); _targetHeadViewAutoCenterSettings = GetTargetAutoCenterSettings(); _targetHeadViewAutoCenterSettings.FasterNormalizationFactor = value; UpdateExtendedViewSettingsWithHeadAutoCenterSettings(); }
//****************************** MaxDistanceFromMasterCm ****************************** //****************************** MaxAngularDistanceDegrees ****************************** public void MaxAngularDistanceDegreesSliderValueChanged(float value) { _maxAngularDistanceDegreesInputField.text = value.ToString(CultureInfo.CurrentCulture); _targetHeadViewAutoCenterSettings = GetTargetAutoCenterSettings(); _targetHeadViewAutoCenterSettings.MaxAngularDistanceDegrees = value; UpdateExtendedViewSettingsWithHeadAutoCenterSettings(); }
//****************************** NormalizeFasterGazeDeadZoneNormalized ****************************** //****************************** ExtendedViewAngleFasterDeadZoneDegrees ****************************** public void ExtendedViewAngleFasterDeadZoneDegreesSliderValueChanged(float value) { _extendedViewAngleFasterDeadZoneDegreesInputField.text = value.ToString(CultureInfo.CurrentCulture); _targetHeadViewAutoCenterSettings = GetTargetAutoCenterSettings(); _targetHeadViewAutoCenterSettings.ExtendedViewAngleFasterDeadZoneDegrees = value; UpdateExtendedViewSettingsWithHeadAutoCenterSettings(); }
//****************************** IsEnabled ****************************** //****************************** NormalizeFasterGazeDeadZoneNormalized ****************************** public void NormalizeFasterGazeDeadZoneNormalizedSliderValueChanged(float value) { _normalizeFasterGazeDeadZoneNormalizedInputField.text = value.ToString(CultureInfo.CurrentCulture); _targetHeadViewAutoCenterSettings = GetTargetAutoCenterSettings(); _targetHeadViewAutoCenterSettings.NormalizeFasterGazeDeadZoneNormalized = value; UpdateExtendedViewSettingsWithHeadAutoCenterSettings(); }
public ExtendedViewSettingsForInspector(ExtendedViewSettings source) { _headViewType = source.HeadViewType; _aspectRatioCorrectionFactor = source.AspectRatioCorrectionFactor; _headViewPitchCorrectionFactor = source.HeadViewPitchCorrectionFactor; _gazeViewSensitivityGradientSettings = new SensitivityGradientSettingsForInspector(source.GazeViewSensitivityGradientSettings); _gazeViewResponsiveness = source.GazeViewResponsiveness; _normalizedGazeViewMinimumExtensionAngle = source.NormalizedGazeViewMinimumExtensionAngle; _normalizedGazeViewExtensionAngle = source.NormalizedGazeViewExtensionAngle; _headViewSensitivityGradientSettings = new SensitivityGradientSettingsForInspector(source.HeadViewSensitivityGradientSettings); _headViewResponsiveness = source.HeadViewResponsiveness; _headViewAutoCenter = new HeadViewAutoCenterSettingsForInspector(source.HeadViewAutoCenter); }
//****************************** SensitivityGradientSettings ****************************** //****************************** HeadViewAutoCenterSettings ****************************** public void UpdateHeadAutoCenterSettings( HeadViewAutoCenterSettingsForInspector headViewAutoCenterSettings) { GetExtendedViewSettings().HeadViewAutoCenter = headViewAutoCenterSettings; ExtendedView.UpdateAllExtendedViewSettings(); }
//****************************** IsEnabled ****************************** public void IsEnabledToggleValueChanged(bool value) { _targetHeadViewAutoCenterSettings = GetTargetAutoCenterSettings(); _targetHeadViewAutoCenterSettings.IsEnabled = value; UpdateExtendedViewSettingsWithHeadAutoCenterSettings(); }