private void SetInitialValues() { _currentMode = _defaultZMode; _dtmMode = _defaultDtmMode; _multiTargetMode = _defaultMultiTargetMode; _dtmOffset = _defaultDtmOffset; _dtmSurface = null; _dtmDrapeTolerance = _defaultDrapeTolerance; _constantZ = _defaultConstantZ; _offset = _defaultOffset; _targetGeometries.Clear(); _sourceGeometry = null; }
private void GetDefaultValues() { Assert.NotNull(_zSettingsDefaults, "_zSettingsDefaults"); _constantZ = _zSettingsDefaults.DefaultConstantZ; _offset = _zSettingsDefaults.DefaultOffset; _dtmSurface = _zSettingsDefaults.DefaultSurface; _dtmDrapeTolerance = _zSettingsDefaults.DefaultDtmDrapeTolerance; _dtmOffset = _zSettingsDefaults.DefaultDtmOffset; ZMode newCurrentMode = _zSettingsDefaults.DefaultZMode; if (CanSelectMode(newCurrentMode)) { _currentMode = _zSettingsDefaults.DefaultZMode; } _dtmMode = _zSettingsDefaults.DefaultDtmSubMode; _multiTargetMode = _zSettingsDefaults.DefaultMultiTargetSubMode; }
public void SetMultiTargetsubModeSelectable(MultiTargetSubMode subMode, bool selectable) { _multiTargetSubModeSelectableStates[subMode] = selectable && CanSelectMode(ZMode.Targets); }
public bool CanSelectMultiTargetSubMode(MultiTargetSubMode subMode) { return(_multiTargetSubModeSelectableStates[subMode] && CanSelectMode(ZMode.Targets)); }