コード例 #1
0
        private void SetInitialValues()
        {
            _currentMode     = _defaultZMode;
            _dtmMode         = _defaultDtmMode;
            _multiTargetMode = _defaultMultiTargetMode;

            _dtmOffset         = _defaultDtmOffset;
            _dtmSurface        = null;
            _dtmDrapeTolerance = _defaultDrapeTolerance;

            _constantZ = _defaultConstantZ;
            _offset    = _defaultOffset;

            _targetGeometries.Clear();
            _sourceGeometry = null;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public void SetMultiTargetsubModeSelectable(MultiTargetSubMode subMode,
                                             bool selectable)
 {
     _multiTargetSubModeSelectableStates[subMode] = selectable &&
                                                    CanSelectMode(ZMode.Targets);
 }
コード例 #4
0
 public bool CanSelectMultiTargetSubMode(MultiTargetSubMode subMode)
 {
     return(_multiTargetSubModeSelectableStates[subMode] &&
            CanSelectMode(ZMode.Targets));
 }