/// <summary>
        /// The parameters array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new FeatureSetParam(TextStrings.input1FeatureSet)
            {
                HelpText = TextStrings.InputFeatureSettodelete
            };

            _inputParam[1] = new IntParam(TextStrings.Index, 0)
            {
                HelpText = TextStrings.IndexNotoOverwrite
            };

            _inputParam[2] = new FeatureSetParam(TextStrings.input2FeatureSettoOverwrite)
            {
                HelpText = TextStrings.InputFeatureSettobeoverwrite
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet)
            {
                HelpText = TextStrings.SelectResultFeatureSetDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #2
0
        /// <summary>
        /// The parameters array should be populated with default values here.
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new FeatureSetParam(TextStrings.InputFeatureSet)
            {
                HelpText = TextStrings.InputFeatureSettoreproject
            };

            _inputParam[1] = new ProjectionParam(TextStrings.SourceProjection)
            {
                HelpText = TextStrings.sourceprojectiondifferent
            };

            _inputParam[2] = new ProjectionParam(TextStrings.DesiredOutputProjection)
            {
                HelpText = TextStrings.Thedestinationprojection
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet)
            {
                HelpText = TextStrings.SelectResultFeatureSetDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[4];
            _inputParam[0] = new FileParam(TextStrings.lasFilename, "LAS Files(*.las)|*.las")
            {
                HelpText = TextStrings.LasFullpath
            };
            _inputParam[1] = new ExtentParam(TextStrings.RasterExtent)
            {
                HelpText           = TextStrings.GeographicExtent,
                DefaultToMapExtent = true
            };
            _inputParam[2] = new IntParam(TextStrings.NumRows)
            {
                HelpText = TextStrings.numberofrows
            };
            _inputParam[3] = new IntParam(TextStrings.NumColumns)
            {
                HelpText = TextStrings.numberofcolums
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #4
0
 /// <summary>
 /// Inititalize input and output arrays with parameter types and default values.
 /// </summary>
 public override void Initialize()
 {
     _inputParam     = new Parameter[2];
     _inputParam[0]  = new FeatureSetParam(TextStrings.InputFeatureSet);
     _inputParam[1]  = new IntParam(TextStrings.RandomGeometryNumPoint, 10);
     _outputParam    = new Parameter[2];
     _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet);
     _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
 }
Exemple #5
0
        /// <summary>
        /// The Parameter array should be populated with default values here.
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[1];
            _inputParam[0] = new PolygonFeatureSetParam(TextStrings.PolygonFeatureSet);

            _outputParam    = new Parameter[2];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.PolygonFeatureSet);
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #6
0
 /// <summary>
 /// Inititalize input and output arrays with parameter types and default values.
 /// </summary>
 public override void Initialize()
 {
     _inputParam     = new Parameter[2];
     _inputParam[0]  = new FeatureSetParam(TextStrings.InputFeatureSet);
     _inputParam[1]  = new DoubleParam(TextStrings.BufferDistance, 10.0);
     _outputParam    = new Parameter[2];
     _outputParam[0] = new PolygonFeatureSetParam(TextStrings.OutputPolygonFeatureSet);
     _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
 }
Exemple #7
0
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 public override void Initialize()
 {
     _inputParam     = new Parameter[2];
     _inputParam[0]  = new FeatureSetParam(TextStrings.BaseFeatureSet);
     _inputParam[1]  = new FeatureSetParam(TextStrings.RemoveFeatureSet);
     _outputParam    = new Parameter[2];
     _outputParam[0] = new FeatureSetParam(TextStrings.ErasedResultFeatureSet);
     _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
 }
Exemple #8
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public BooleanElement(BooleanParam param)
        {
            //Needed by the designer
            InitializeComponent();

            Param          = param;
            checkBox1.Text = param.CheckBoxText;
            GroupBox.Text  = param.Name;

            DoRefresh();
        }
Exemple #9
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[2];
            _inputParam[0] = new LineFeatureSetParam(TextStrings.LineFeatureSet);
            _inputParam[1] = new DoubleParam(TextStrings.Tolerance)
            {
                Value = 10.0
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new LineFeatureSetParam(TextStrings.LineFeatureSet);
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #10
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[1];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster)
            {
                HelpText = TextStrings.inputrastetoconvert
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.Convertedfeatureset)
            {
                HelpText = TextStrings.featuresetcreated
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #11
0
        /// <summary>
        /// The parameters array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[1];
            _inputParam[0] = new FeatureSetParam(TextStrings.input1FeatureSet)
            {
                HelpText = TextStrings.InputFeatureSettogenerate
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet)
            {
                HelpText = TextStrings.SelectResultFeatureSetDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #12
0
 /// <summary>
 /// The Parameter array should be populated with default values here.
 /// </summary>
 public override void Initialize()
 {
     _inputParam    = new Parameter[2];
     _inputParam[0] = new FeatureSetParam(TextStrings.BaseFeatureSet)
     {
         HelpText = TextStrings.MainFeatureset
     };
     _inputParam[1] = new FeatureSetParam(TextStrings.ChildFeatureSet)
     {
         HelpText = TextStrings.SecondFeatureset
     };
     _outputParam    = new Parameter[2];
     _outputParam[0] = new FeatureSetParam(TextStrings.UnionFeatureSet);
     _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
 }
Exemple #13
0
        private static void AddBooleanParams(CrossMod.Rendering.GlTools.Material mat, Material material)
        {
            foreach (var param in mat.boolByParamId)
            {
                var boolParam = new BooleanParam
                {
                    Name  = param.Key.ToString(),
                    Value = param.Value
                };

                // Update the material for rendering.
                boolParam.PropertyChanged += (s, e) => mat.UpdateBoolean(param.Key, (s as BooleanParam).Value);

                material.BooleanParams.Add(boolParam);
            }
        }
Exemple #14
0
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 public override void Initialize()
 {
     _inputParam    = new Parameter[2];
     _inputParam[0] = new RasterParam(TextStrings.inputRaster)
     {
         HelpText = TextStrings.InputRastercontainingtargetcells
     };
     _inputParam[1] = new DoubleParam(TextStrings.Maximumdistance, 100.0)
     {
         HelpText = TextStrings.Maximumdistancetobecalculated
     };
     _outputParam    = new Parameter[2];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
     {
         HelpText = TextStrings.SelectresultrasterfileName
     };
     _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
 }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.input1Raster)
            {
                HelpText = TextStrings.InputFirstRaster
            };
            _inputParam[1] = new RasterParam(TextStrings.input2Raster)
            {
                HelpText = TextStrings.InputSecondRasterforSubtract
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.input1Raster)
            {
                HelpText = TextStrings.InputRasterforCliping
            };
            _inputParam[1] = new PolygonFeatureSetParam(TextStrings.input2PolygonforCliping)
            {
                HelpText = TextStrings.InputPolygonforclipingtoRaster
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[7];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
            {
                HelpText = TextStrings.InputRasterforaverageslopecalculation
            };
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0)
            {
                HelpText = TextStrings.InputZfactorforslopedisplay
            };
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false)
            {
                HelpText = TextStrings.slopeinpercentage
            };
            _inputParam[3] = new FeatureSetParam(TextStrings.input1polygonfeatureset)
            {
                HelpText = TextStrings.averageslopeinarribute
            };
            _inputParam[4] = new FeatureSetParam(TextStrings.inputtheareaofinterest)
            {
                HelpText = TextStrings.featuresetcontainareainterest
            };
            _inputParam[5] = new IntParam(TextStrings.Indexofareaofinterestfeature, 0)
            {
                HelpText = TextStrings.indexspecificarea
            };
            _inputParam[6] = new StringParam(TextStrings.Fieldnameforavrageslope, TextStrings.AveSlope)
            {
                HelpText = TextStrings.Fieldnamecolomavrageslope
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope)
            {
                HelpText = TextStrings.SelecttheResultofOutput
            };
            _outputParam[2] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #18
0
 /// <summary>
 /// The Parameter array should be populated with default values here.
 /// </summary>
 public override void Initialize()
 {
     _inputParam    = new Parameter[4];
     _inputParam[0] = new FeatureSetParam(TextStrings.input1polygontoRaster)
     {
         HelpText = TextStrings.InputPolygontochange
     };
     _inputParam[2] = new DoubleParam(TextStrings.DesiredCellSize)
     {
         HelpText = TextStrings.Themaximumnumber
     };
     _inputParam[1] = new ListParam(TextStrings.stringnameoffield)
     {
         HelpText = TextStrings.Thevalueofeachcell
     };
     _outputParam    = new Parameter[2];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
     {
         HelpText = TextStrings.Resultofaverageslope
     };
     _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
 }
Exemple #19
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
            {
                HelpText = TextStrings.InputRasterforaverageslopecalculation
            };
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0)
            {
                HelpText = TextStrings.InputZfactorforslopedisplay
            };
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false)
            {
                HelpText = TextStrings.slopeinpercentageindegree
            };

            _outputParam    = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster)
            {
                HelpText = TextStrings.Resultofaverageslope
            };
        }
Exemple #20
0
        /// <summary>
        /// The Parameter array should be populated with default values here.
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[7];
            _inputParam[0] = new PointFeatureSetParam(TextStrings.PointFeatureSet);
            _inputParam[1] = new ListParam(TextStrings.Zvalue)
            {
                HelpText = TextStrings.layercontainsvalues
            };
            _inputParam[2] = new DoubleParam(TextStrings.CellSize, 0, 0, double.MaxValue)
            {
                HelpText = TextStrings.Thecellsizeingeographicunits
            };
            _inputParam[3] = new DoubleParam(TextStrings.Power, 2, 1, double.MaxValue)
            {
                HelpText = TextStrings.Theinfluenceofdistance
            };
            _neighborhoodType = new List <string>
            {
                TextStrings.FixedDistance,
                TextStrings.FixedCount
            };
            _inputParam[4] = new ListParam(TextStrings.NeighborhoodType, _neighborhoodType, 0)
            {
                HelpText = TextStrings.Selectthetypeofneighborhood
            };
            _inputParam[5] = new IntParam(TextStrings.MinMaxnumberofpoints, 12, 0, int.MaxValue)
            {
                HelpText = TextStrings.FixedDistanceHelpText
            };
            _inputParam[6] = new DoubleParam(TextStrings.MinMaxdistance, 0, 0, double.MaxValue)
            {
                HelpText = TextStrings.FixedDistanceHelpText
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.Raster);
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster)
            {
                HelpText = TextStrings.InputRasternoValue
            };
            _inputParam[1] = new StringParam(TextStrings.Optional)
            {
                HelpText = TextStrings.Optionaltochange
            };
            _inputParam[2] = new StringParam(TextStrings.UserNewValues)
            {
                HelpText = TextStrings.UserinputNewValue
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.newrastername
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #22
0
        /// <summary>
        /// The Parameter array should be populated with default values here.
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster)
            {
                HelpText = TextStrings.InputtheRasterforCellsizeChange
            };
            _inputParam[1] = new DoubleParam(TextStrings.InputnewcellHight)
            {
                HelpText = TextStrings.DisplayingistheOldCellHight
            };
            _inputParam[2] = new DoubleParam(TextStrings.InputnewcellWidth)
            {
                HelpText = TextStrings.DisplayingistheOldCellHight
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.newrastername
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #23
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
            {
                HelpText = TextStrings.InputRasterforaverageslopecalculation
            };
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0)
            {
                HelpText = TextStrings.InputZfactorforslopedisplay
            };
            _inputParam[2] = new PolygonFeatureSetParam(TextStrings.input1polygonfeatureset)
            {
                HelpText = TextStrings.FindAverageSlopeDescription
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputfeaturesetwithaverageslope)
            {
                HelpText = TextStrings.Resultofaverageslope
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemple #24
0
        /// <summary>
        /// The Parameter array should be populated with default values here.
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
            {
                HelpText = TextStrings.InputRasterforaverageslopecalculation
            };
            _inputParam[1] = new DoubleParam("Base value", 0)
            {
                HelpText = TextStrings.RasterBinTool_Initialize_BaseValueHelText
            };
            _inputParam[2] = new DoubleParam("Bin size", 10)
            {
                HelpText = TextStrings.RasterBinTool_Initialize_BinSizeHelpText
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster)
            {
                HelpText = TextStrings.Resultofaverageslope
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }