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

            _outputParam = new Parameter[1];
            _outputParam[0] = new LineFeatureSetParam(TextStrings.LineFeatureSet);
        }
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public DoubleElement(DoubleParam param)
        {
            //Needed by the designer
            InitializeializeializeComponent();
            this.GroupBox.Text = param.Name;
            
            //We save the Parameter passed in 
            this.Param = param;

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

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
            _outputParam[0].HelpText = TextStrings.newrastername;


        }
Example #5
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new FeatureSetParam(TextStrings.InputFeatureSet);
            _inputParam[1] = new DoubleParam(TextStrings.BufferDistance, 10.0);
            //_inputParam[1].Value = 10.0;

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

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope);
            _outputParam[0].HelpText = TextStrings.SelecttheResultofOutput;
        }
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 /// <returns></returns>
 public void Initialize()
 {
     _inputParam = new Parameter[4];
     _inputParam[0] = new FeatureSetParam(TextStrings.input1polygontoRaster);
     _inputParam[0].HelpText = TextStrings.InputPolygontochange;
     _inputParam[2] = new DoubleParam(TextStrings.DesiredCellSize);
     _inputParam[2].HelpText = TextStrings.Themaximumnumber;
     _inputParam[1] = new ListParam(TextStrings.stringnameoffield);
     _inputParam[1].HelpText = TextStrings.Thevalueofeachcell;
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
     _outputParam[0].HelpText = TextStrings.Resultofaverageslope;
 }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new PolygonFeatureSetParam(TextStrings.input1polygonfeatureset);
            //_inputParam[2] = new FeatureSetParam(TextStrings."input1 polygon feature set");
            _inputParam[2].HelpText = TextStrings.FindAveregeSlopeDescription;

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputfeaturesetwithaverageslope);
            _outputParam[0].HelpText = TextStrings.Resultofaverageslope;
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false);
            _inputParam[2].HelpText = TextStrings.slopeinpercentageindegree;

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster);
            _outputParam[0].HelpText = TextStrings.Resultofaverageslope;
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster);
            _inputParam[0].HelpText = TextStrings.InputRastercontainingtargetcells;
            _inputParam[1] = new DoubleParam(TextStrings.Maximumdistance,100.0);
            _inputParam[1].HelpText = TextStrings.Maximumdistancetobecalculated;
            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
            _outputParam[0].HelpText = TextStrings.Selectresultrasterfilename;

        }
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 /// <returns></returns>
 public void Initialize()
 {
     _inputParam = new Parameter[2];
     _inputParam[0] = new RasterParam("input Raster");
     _inputParam[0].HelpText = "Input to create the boolean mask from.";
     _inputParam[1] = new DoubleParam("Threshold value");
     _inputParam[1].HelpText = "The threshold value to use to create the raster mask.";
                
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam("Raster Mask");
     _outputParam[0].HelpText = "The mask raster created.";
 }