This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > ArcScan > ESRI.ArcGIS.ArcScan > Interfaces > IR > IRasterSnappingProperties Interface (ArcObjects .NET 10.4 SDK) |
Provides access to members that control the behavior of the raster snapping environment.
The properties on this interface relate to the raster snapping agents in the Edtitor Snapping dialog and settings on the Raster Snapping options dialog.
Description | ||
---|---|---|
Centerline | Indicates whether to snap to centerlines. | |
Corner | Indicates whether to snap to corners. | |
Ends | Indicates whether to snap to ends. | |
Intersections | Indicates whether to snap to intersections. | |
MaxSolidWidth | Maximum length of solids, measured in raster pixels. | |
MinSolidWidth | Minimum length of solids, measured in raster pixels. | |
Solid | Indicates whether to snap to solid. |
CoClasses and Classes | Description |
---|---|
Vectorization | The Vectorization ArcMap Extension. |
Note that other properties used in raster snapping are obtained through additional interfaces. eg. MaxLineWidth from IVectorizationBatchProperties::MaxLineWidth etc
The following code excerpt shows the method of obtaining an IRasterSnappingProperties reference and set the Centerlines state.
public void SetCenterlineState()
{
//You can get app from ICommand :: OnCreate() hook parameter
IRasterSnappingProperties rasterSnappingProp=
app.FindExtensionByName("ESRI ArcScan Tools") as IRasterSnappingProperties;
rasterSnappingProp.Centerline=true;
}