本文整理汇总了C#中ICancelProgressHandler类的典型用法代码示例。如果您正苦于以下问题:C# ICancelProgressHandler类的具体用法?C# ICancelProgressHandler怎么用?C# ICancelProgressHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICancelProgressHandler类属于命名空间,在下文中一共展示了ICancelProgressHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Execute
/// <summary>
/// Once the parameters have been configured the Execute command can be called, it returns true if successful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet input1 = _inputParam[0].Value as IFeatureSet;
if (input1 != null)
{
input1.FillAttributes();
}
ProjectionParam source = _inputParam[1] as ProjectionParam;
ProjectionParam dest = _inputParam[2] as ProjectionParam;
ProjectionInfo pSource = null;
if (source != null)
{
pSource = source.Value;
}
if (dest == null)
{
return false;
}
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(input1, pSource, dest.Value, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:28,代码来源:ReprojectFeatures.cs
示例2: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster input1 = _inputParam[0].Value as IRaster;
IRaster input2 = _inputParam[1].Value as IRaster;
IRaster output = _outputParam[0].Value as IRaster;
return Execute(input1, input2, output, cancelProgressHandler);
}
开发者ID:hanchao,项目名称:DotSpatial,代码行数:10,代码来源:RasterSubract.cs
示例3: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet self = _inputParam[0].Value as IFeatureSet;
if (self != null)
{
self.FillAttributes();
}
IFeatureSet other = _inputParam[1].Value as IFeatureSet;
if (other != null)
{
other.FillAttributes();
}
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
if (self == null)
{
return false;
}
if (other == null)
{
return false;
}
return self.Features.Count < other.Features.Count
? Execute(self, other, output, cancelProgressHandler)
: Execute(other, self, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:33,代码来源:Union.cs
示例4: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet self = _inputParam[0].Value as IFeatureSet;
IFeatureSet other = _inputParam[1].Value as IFeatureSet;
if (self != null && other != null)
{
self.FillAttributes();
other.FillAttributes();
}
IFeatureSet result = Overlay.EraseFeatures(self, other, cancelProgressHandler);
if (cancelProgressHandler.Cancel)
{
_outputParam = null;
return false;
}
else
{
result.Filename = ((IFeatureSet)_outputParam[0].Value).Filename;
result.Save();
_outputParam[0].Value = result;
return true;
}
}
开发者ID:hanchao,项目名称:DotSpatial,代码行数:28,代码来源:Erase.cs
示例5: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster input = _inputParam[0].Value as IRaster;
Double threshold = Convert.ToDouble(_inputParam[1].Value);
IRaster output = _outputParam[0].Value as IRaster;
return Execute(input, threshold, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:10,代码来源:mwRasterThreshold.cs
示例6: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster input1 = _inputParam[0].Value as IRaster;
double baseValue = (double)_inputParam[1].Value;
double binSize = (double)_inputParam[2].Value;
IRaster output = _outputParam[0].Value as IRaster;
return Execute(input1, baseValue, binSize, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:11,代码来源:RasterBinTool.cs
示例7: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
MapWindow.Data.IRaster gridIn = _inputParam[0].Value as MapWindow.Data.IRaster;
IFeatureSet polyOut = _outputParam[0].Value as IFeatureSet;
return Execute(gridIn, polyOut, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:11,代码来源:mwSimpleRasterToPolygon.cs
示例8: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster inputRaster = _inputParam[0].Value as IRaster;
IRaster outputRaster = _outputParam[0].Value as IRaster;
double maximumDistance = (double)_inputParam[1].Value;
return Execute(inputRaster, outputRaster, maximumDistance, cancelProgressHandler);
}
开发者ID:hanchao,项目名称:DotSpatial,代码行数:12,代码来源:RasterDistance.cs
示例9: Execute
/// <summary>
/// Once the Parameters have been configured, the Execute command can be called, it returns true if succesful.
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet self = _inputParam[0].Value as IFeatureSet;
// self.FillAttributes();
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(self, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:12,代码来源:Aggregate.cs
示例10: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet input = _inputParam[0].Value as IFeatureSet;
DoubleParam dp = _inputParam[1] as DoubleParam;
double bufferDistance = 1;
if(dp != null)bufferDistance = dp.Value;
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(input, bufferDistance, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:13,代码来源:Buffer.cs
示例11: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if successful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
string input1 = _inputParam[0].Value as string;
Extent input2 = _inputParam[1].Value as Extent;
int numRows = (int)_inputParam[2].Value;
int numCols = (int)_inputParam[3].Value;
IRaster output = _outputParam[0].Value as IRaster;
return Execute(input1, input2, numRows, numCols, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:13,代码来源:RasterFromLAS.cs
示例12: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster grid = _inputParam[0].Value as IRaster;
double inZFactor = (double)_inputParam[1].Value;
IFeatureSet poly = _inputParam[2].Value as IFeatureSet;
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(grid, inZFactor, poly, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:13,代码来源:FindAverageSlope.cs
示例13: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster input1 = _inputParam[0].Value as IRaster;
double value1 = Convert.ToDouble(_inputParam[1].Value);
double value2 = Convert.ToDouble(_inputParam[2].Value);
IRaster output = _outputParam[0].Value as IRaster;
return Execute(input1, value1, value2, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:13,代码来源:NoDataValueChange.cs
示例14: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
MapWindow.Data.IRaster input1 = _inputParam[0].Value as MapWindow.Data.IRaster;
MapWindow.Data.IFeatureSet input2 = _inputParam[1].Value as MapWindow.Data.IFeatureSet;
MapWindow.Data.IRaster output = _outputParam[0].Value as MapWindow.Data.IRaster;
return Execute(input1, input2, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:13,代码来源:mwClipWithPolygon.cs
示例15: Execute
/// <summary>
/// Once the parameters have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet input1 = _inputParam[0].Value as IFeatureSet;
if (input1 != null) input1.FillAttributes();
var input2 = _inputParam[1].Value as IFeatureSet;
if (input2 != null) input2.FillAttributes();
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(input1, input2, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:13,代码来源:ClipPolygonWithLine.cs
示例16: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IRaster input1 = _inputParam[0].Value as IRaster;
double inZFactor = (double)_inputParam[1].Value;
bool slopeInPercent = (bool)_inputParam[2].Value;
IRaster output = _outputParam[0].Value as IRaster;
return Execute(input1, inZFactor, slopeInPercent, output, cancelProgressHandler);
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:14,代码来源:RasterSlope.cs
示例17: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
MapWindow.Data.IRaster input1 = _inputParam[0].Value as MapWindow.Data.IRaster;
double inZFactor = (double)_inputParam[1].Value;
bool slopeInPercent =(bool) _inputParam[2].Value;
MapWindow.Data.IRaster output = _outputParam[0].Value as MapWindow.Data.IRaster;
return Execute(input1, inZFactor,slopeInPercent, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:14,代码来源:RasterSlope.cs
示例18: Execute
/// <summary>
/// Once the parameters have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public override bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet input1 = _inputParam[0].Value as IFeatureSet;
if (input1 != null)
{
input1.FillAttributes();
}
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(input1, output, cancelProgressHandler);
}
开发者ID:joelmuzz,项目名称:DotSpatial,代码行数:15,代码来源:GenerateCentroid.cs
示例19: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet self = _inputParam[0].Value as IFeatureSet;
if (self != null) self.FillAttributes();
IFeatureSet other = _inputParam[1].Value as IFeatureSet;
if (other != null) other.FillAttributes();
IFeatureSet output = _outputParam[0].Value as IFeatureSet;
return Execute(self, other, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:15,代码来源:Erase.cs
示例20: Execute
/// <summary>
/// Once the Parameter have been configured the Execute command can be called, it returns true if succesful
/// </summary>
public bool Execute(ICancelProgressHandler cancelProgressHandler)
{
IFeatureSet poly = _inputParam[0].Value as IFeatureSet;
double cellSize = (double)_inputParam[2].Value;
if (poly == null) return false;
int indx = (int)_inputParam[1].Value - 1;
string field = indx < 0 ? "FID" : poly.DataTable.Columns[indx].ColumnName;
IRaster output = _outputParam[0].Value as IRaster;
return Execute(poly, cellSize, field, output, cancelProgressHandler);
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:15,代码来源:FeatureToRaster.cs
注:本文中的ICancelProgressHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论