Exemplo n.º 1
0
        /// <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 PolygonElement(PolygonFeatureSetParam inputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

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

            _dataSets = dataSets;

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

            DoRefresh();
        }
Exemplo n.º 2
0
        /// <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 PolygonElement(PolygonFeatureSetParam inputParam, List <DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

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

            _dataSets = dataSets;

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

            DoRefresh();
        }
Exemplo n.º 3
0
        /// <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 PolygonElementOut(PolygonFeatureSetParam outputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

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

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

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

            //Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified)
            {
                textBox1.Text = outputParam.ModelName;
                base.Status = ToolStatus.Ok;
                LightTipText = ModelingMessageStrings.FeaturesetValid;
            }
        }
Exemplo n.º 4
0
        /// <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 PolygonElementOut(PolygonFeatureSetParam outputParam, List <DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

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

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

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

            //Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified)
            {
                textBox1.Text = outputParam.ModelName;
                base.Status   = ToolStatus.Ok;
                LightTipText  = ModelingMessageStrings.FeaturesetValid;
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// The parameters array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new PolygonFeatureSetParam(TextStrings.input1PolygonShapefile)
                                 {
                                     HelpText = TextStrings.InputPolygonforCliping
                                 };
            _inputParam[1] = new LineFeatureSetParam(TextStrings.input2LineforCliping)
                                 {
                                     HelpText = TextStrings.Inputlineforcliping
                                 };

            _outputParam = new Parameter[1];

            // _outputParam[0] = new PolygonFeatureSetParam(TextStrings.OutputShapefile);
            _outputParam[0] = new FeatureSetParam(TextStrings.ResultShapefile)
                                  {
                                      HelpText = TextStrings.SelectResultShapefileDirectory
                                  };
        }
Exemplo n.º 6
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.Featuresettoclip);
            _inputParam[1] = new PolygonFeatureSetParam(TextStrings.Clipbounds);

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Clippedfeatureset);
        }
Exemplo n.º 7
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
                                 };

            // _inputParam[2] = new FeatureSetParam(TextStrings."input1 polygon feature set");
            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputfeaturesetwithaverageslope)
                                  {
                                      HelpText = TextStrings.Resultofaverageslope
                                  };
        }
Exemplo n.º 8
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[1];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.Convertedfeatureset)
                                  {
                                      HelpText = TextStrings.featuresetcreated
                                  };
        }
Exemplo n.º 9
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[1];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.PolygonFeatureSet);
        }
Exemplo n.º 10
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[1];
     _outputParam[0] = new PolygonFeatureSetParam(TextStrings.OutputPolygonFeatureSet);
 }
Exemplo n.º 11
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.input1Raster) { HelpText = TextStrings.InputRasterforCliping };
            _inputParam[1] = new PolygonFeatureSetParam(TextStrings.input2PolygonforCliping)
                                 {
                                     HelpText = TextStrings.InputPolygonforclipingtoRaster
                                 };

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