Class CurveTrimLineOperation

java.lang.Object
org.gvsig.vectorediting.lib.prov.trimline.operation.CurveTrimLineOperation
All Implemented Interfaces:
TrimLineOperation

public class CurveTrimLineOperation extends Object implements TrimLineOperation
Operation to trim curves.
Author:
llmarques
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    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.MultiCurve
    trimLine(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: TrimLineOperation
      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.
      Specified by:
      trimLine in interface TrimLineOperation
      Parameters:
      curveToTrim - Curve to trim
      shearingPoint - 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.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
      org.gvsig.fmap.dal.exception.DataException
      org.gvsig.fmap.geom.exception.CreateGeometryException
      org.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: TrimLineOperation
      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.
      Specified by:
      trimLine in interface TrimLineOperation
      Parameters:
      curveToTrim - Curve to trim
      shearingPoint - 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.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
      org.gvsig.fmap.dal.exception.DataException
      org.gvsig.fmap.geom.exception.CreateGeometryException
      org.gvsig.tools.locator.LocatorException