/// <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(); }
/// <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(); }
/// <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; } }
/// <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; } }
/// <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 }; }
/// <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); }
/// <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 }; }
/// <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 }; }
/// <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); }
/// <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); }
/// <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 }; }