/// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        void ITool.Initialize()
        {
            _inputParam = new Parameter[1];
            _inputParam[0] = new PointFeatureSetParam(TextStrings.PointFeatureSet);

            _outputParam = new Parameter[1];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.PolygonFeatureSet);
          
        }
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="inputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public PointElement(PointFeatureSetParam inputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in 
            base.Param = inputParam;

            _dataSets = dataSets;

            //Saves the label
            this.GroupBox.Text = Param.Name;

            Refresh();
        }
Exemple #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>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="outputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public PointElementOut(PointFeatureSetParam outputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in 
            base.Param = outputParam;

            //Saves the label
            base.GroupBox.Text = Param.Name;

            //Sets up the initial status light indicator
            base.Status = ToolStatus.Empty;
            base.LightTipText = MapWindow.MessageStrings.FeaturesetMissing;

            //Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified == true)
            {
                textBox1.Text = outputParam.ModelName;
                base.Status = ToolStatus.Ok;
                base.LightTipText = MapWindow.MessageStrings.FeaturesetValid;
           }
        }