Пример #1
0
        public static void OnLastSequenceEnd()
        {
            if (string.IsNullOrEmpty(lastSequenceFile))
            {
                return;
            }

            CParameterSetter.SetParameter(ESettings.forestFileFullName, lastSequenceFile);
        }
Пример #2
0
        private void SetRangeY()
        {
            CParameterSetter.SetParameter(ESettings.rangeYmin, form.trackBarRangeYmin.Value);
            CParameterSetter.SetParameter(ESettings.rangeYmax, form.trackBarRangeYmax.Value);

            SSplitRange range = CParameterSetter.GetSplitRange();

            form.textRangeYmin.Text = range.ToStringYmin();
            form.textRangeYmax.Text = range.ToStringYmax();

            form.labelRangeYval.Text = range.RangeY.ToString("0.0") + " m";
        }
Пример #3
0
        private void SetSplitMode(ESplitMode pMode)
        {
            CParameterSetter.SetParameter(ESettings.currentSplitMode, (int)pMode);

            bool isManual = pMode == ESplitMode.Manual;

            form.trackBarRangeXmin.Enabled = isManual;
            form.trackBarRangeXmax.Enabled = isManual;
            form.trackBarRangeYmin.Enabled = isManual;
            form.trackBarRangeYmax.Enabled = isManual;

            form.textRangeXmin.Enabled = isManual;
            form.textRangeXmax.Enabled = isManual;
            form.textRangeYmin.Enabled = isManual;
            form.textRangeYmax.Enabled = isManual;

            bool isShapefile = pMode == ESplitMode.Shapefile;

            form.textShapefile.Enabled = isShapefile;
            form.btnShapefile.Enabled  = isShapefile;
        }
Пример #4
0
        public static void SetValues()
        {
            if (configs.Count == 0)
            {
                return;
            }

            CDebug.WriteLine("SetValues from config");

            SSequenceConfig currentConfig = configs[currentConfigIndex];

            CParameterSetter.SetParameter(ESettings.forestFileFullName, currentConfig.path);
            int treeHeight = currentConfig.treeHeight;

            CParameterSetter.SetParameter(ESettings.autoAverageTreeHeight, treeHeight <= 0);
            if (treeHeight > 0)
            {
                CParameterSetter.SetParameter(ESettings.avgTreeHeigh, treeHeight);
            }
            CParameterSetter.SetParameter(ESettings.treeExtent, currentConfig.treeExtent);
            CParameterSetter.SetParameter(ESettings.treeExtentMultiply, currentConfig.treeExtentMultiply);
        }