Class CurveTrimLineOperation
java.lang.Object
org.gvsig.vectorediting.lib.prov.trimline.operation.CurveTrimLineOperation
- All Implemented Interfaces:
TrimLineOperation
Operation to trim curves.
- Author:
- llmarques
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.geom.aggregate.MultiCurvetrimLine(org.gvsig.fmap.geom.primitive.Curve curveToTrim, org.gvsig.fmap.geom.primitive.Point shearingPoint, org.gvsig.fmap.dal.feature.FeatureSelection shears) Trim line, taking as cutting edges the shears received as parameters.Inserted point is the point inserted by user.It is used to determinate what segment of curve it must trimmed.If curveToBeExtended does not intersect with any geometry, the geometry will not be modified.org.gvsig.fmap.geom.aggregate.MultiCurvetrimLine(org.gvsig.fmap.geom.primitive.Curve curveToTrim, org.gvsig.fmap.geom.primitive.Point shearingPoint, org.gvsig.fmap.geom.Geometry shears) Trim line, taking as cutting edges the boundary objects received as parameters.Inserted point is the point inserted by user.It is used to determinate what segment of curve it must trimmed.If curveToBeExtended does not intersect with any geometry, the geometry will not be modified.
-
Constructor Details
-
CurveTrimLineOperation
public CurveTrimLineOperation()
-
-
Method Details
-
trimLine
public org.gvsig.fmap.geom.aggregate.MultiCurve trimLine(org.gvsig.fmap.geom.primitive.Curve curveToTrim, org.gvsig.fmap.geom.primitive.Point shearingPoint, org.gvsig.fmap.dal.feature.FeatureSelection shears) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException, org.gvsig.fmap.dal.exception.DataException, org.gvsig.fmap.geom.exception.CreateGeometryException, org.gvsig.tools.locator.LocatorException Description copied from interface:TrimLineOperationTrim line, taking as cutting edges the shears received as parameters.Inserted point is the point inserted by user.It is used to determinate what segment of curve it must trimmed.If curveToBeExtended does not intersect with any geometry, the geometry will not be modified.- Specified by:
trimLinein interfaceTrimLineOperation- Parameters:
curveToTrim- Curve to trimshearingPoint- Point inserted by user to determinate what side of curve must be extended.shears- If curveToBeExtended intersects with some shears, it will be cutted to it. If there are several shears that intersects with curveToTrim, it will be cutted to nearest point.- Returns:
- Trimmed line
- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationExceptionorg.gvsig.fmap.dal.exception.DataExceptionorg.gvsig.fmap.geom.exception.CreateGeometryExceptionorg.gvsig.tools.locator.LocatorException
-
trimLine
public org.gvsig.fmap.geom.aggregate.MultiCurve trimLine(org.gvsig.fmap.geom.primitive.Curve curveToTrim, org.gvsig.fmap.geom.primitive.Point shearingPoint, org.gvsig.fmap.geom.Geometry shears) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException, org.gvsig.fmap.dal.exception.DataException, org.gvsig.fmap.geom.exception.CreateGeometryException, org.gvsig.tools.locator.LocatorException Description copied from interface:TrimLineOperationTrim line, taking as cutting edges the boundary objects received as parameters.Inserted point is the point inserted by user.It is used to determinate what segment of curve it must trimmed.If curveToBeExtended does not intersect with any geometry, the geometry will not be modified.- Specified by:
trimLinein interfaceTrimLineOperation- Parameters:
curveToTrim- Curve to trimshearingPoint- Point inserted by user to determinate what side of curve must be extended.shears- If curveToBeExtended intersects with some boundary object, it will be extend to it. If there are several boundary objects that intersects with curveToBeExtended, it will be extended to nearest point.- Returns:
- Trimmed line
- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationExceptionorg.gvsig.fmap.dal.exception.DataExceptionorg.gvsig.fmap.geom.exception.CreateGeometryExceptionorg.gvsig.tools.locator.LocatorException
-