Package com.esri.core.geometry
Class OperatorCut
- java.lang.Object
-
- com.esri.core.geometry.Operator
-
- com.esri.core.geometry.OperatorCut
-
- Direct Known Subclasses:
OperatorCutLocal
public abstract class OperatorCut extends Operator
Splits the target polyline or polygon where it is crossed by the cutter polyline.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
-
Constructor Summary
Constructors Constructor Description OperatorCut()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract GeometryCursor
execute(boolean bConsiderTouch, Geometry cuttee, Polyline cutter, SpatialReference spatialReference, ProgressTracker progressTracker)
Performs the Cut operation on a geometry.Operator.Type
getType()
static OperatorCut
local()
-
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
-
-
-
Method Detail
-
getType
public Operator.Type getType()
-
execute
public abstract GeometryCursor execute(boolean bConsiderTouch, Geometry cuttee, Polyline cutter, SpatialReference spatialReference, ProgressTracker progressTracker)
Performs the Cut operation on a geometry.- Parameters:
bConsiderTouch
- Indicates whether we consider a touch event a cut. This only applies to polylines, but it's recommended to set this variable to True.cuttee
- The input geometry to be cut.cutter
- The polyline that will be used to divide the cuttee into pieces where it crosses the cutter.- Returns:
- Returns a GeometryCursor of cut geometries. All left cuts will be grouped together in the first geometry. Right cuts and coincident cuts are grouped in the second geometry, and each undefined cut along with any uncut parts are output as separate geometries. If there were no cuts the cursor will return no geometry. If the left or right cut does not exist, the returned geometry will be empty for this type of cut. An undefined cut will only be produced if a left cut or right cut was produced and there was a part left over after cutting or a cut is bounded to the left and right of the cutter.
-
local
public static OperatorCut local()
-
-