예제 #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();
        }
예제 #2
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();
        }
        /// <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[1];
            _outputParam[0] = new RasterParam(TextStrings.Raster);
        }
예제 #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[1];
     _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet);
 }
예제 #5
0
        /// <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
                                 };
            ExtentParam p = new ExtentParam(TextStrings.RasterExtent);
            p.HelpText = TextStrings.GeographicExtent;
            p.DefaultToMapExtent = true;

            _inputParam[1] = p;

            _inputParam[2] = new IntParam(TextStrings.NumRows) { HelpText = TextStrings.numberofrows };

            _inputParam[3] = new IntParam(TextStrings.NumColumns) { HelpText = TextStrings.numberofcolums };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.ResultRasterDirectory };
        }
        /// <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[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope)
                                  {
                                      HelpText = TextStrings.SelecttheResultofOutput
                                  };
        }
예제 #7
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.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[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet)
                                  {
                                      HelpText = TextStrings.SelectResultFeatureSetDirectory
                                  };
        }