Esempio n. 1
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public IntElement(IntParam param)
        {
            //Needed by the designer
            InitializeComponent();
            GroupBox.Text = param.Name;
            
            //We save the parameters passed in 
            Param = param;

            HandleStatusLight();
        }
Esempio n. 2
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[4];
            _inputParam[0] = new FeatureSetParam("input1 polygon to Raster.");
            _inputParam[0].HelpText = "Input Polygon to change to Raster featureset";
            _inputParam[1] = new IntParam("Input No of Cell rows in the output raster.");
            _inputParam[1].HelpText = "Standard is 255 but you can input according to your requirement.";
            _inputParam[2] = new IntParam("Input No of Cell colums in the output raster.");
            _inputParam[2].HelpText = "Standard is 255 but you can input according to your requirement.";
            _selectionType = new List<string>();
            _selectionType.Add("Cover Center");
            _selectionType.Add("Cover Area");
            _inputParam[3] = new ListParam("SelectionType", _selectionType, 0);
            _inputParam[3].HelpText = "Select the type of selection when consider cell allocaton.\n\n Cover Center: " +
                                      "what ever the polygon cover the center of the cell will alocate to that polygon.\n\n Cover Area: " +
                                      "This will decide which polygon cover more area with that cell and allocate the more covering polygon"+
                                      " to that cell.";

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam("Output Raster.");
            _outputParam[0].HelpText = "Select the Result of Output feature set with average slope in the attribute.";
        }
        /// <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 parameters array should be populated with default values here
        /// </summary>
        /// <returns></returns>

        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new FeatureSetParam(TextStrings.input1FeatureSet);
            _inputParam[0].HelpText = TextStrings.InputFeatureSettodelete;

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

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

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet);
            _outputParam[0].HelpText = TextStrings.SelectResultFeatureSetDirectory;
        }