public class ExtendLineOperationUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
END_SIDE
Use it to indicate end side should be extended
|
static java.lang.String |
START_SIDE
Use it to indicate start side should be extended
|
| Constructor and Description |
|---|
ExtendLineOperationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Point |
arcIntersection(Arc arcToBeExtended,
java.lang.String sideToExtend,
FeatureSelection boundaryObjects)
Calculates the nearest intersection point among arc and boundary objects
depending on side received as parameter.
|
static Point |
curveIntersection(Curve line,
java.lang.String sideToExtend,
FeatureSelection boundaryObjects)
Calculates the nearest intersection among curve and boundary objects
depending on side received as parameter.
|
static double |
getAngle(Point start,
Point end) |
static Point |
getIntersectionOfProjectedLine(Point initPoint,
Point endPoint,
FeatureSelection boundaryObjects)
Gets intersection among the line formed by initPoint and endPoint and
boundary objects.
|
static ExtendLineOperation |
getOperation(Primitive geom) |
static void |
register(ExtendLineOperation operation,
int geometryType) |
public static final java.lang.String START_SIDE
public static final java.lang.String END_SIDE
public static void register(ExtendLineOperation operation, int geometryType)
public static ExtendLineOperation getOperation(Primitive geom)
public static Point curveIntersection(Curve line, java.lang.String sideToExtend, FeatureSelection boundaryObjects) throws CreateGeometryException, DataException, GeometryOperationNotSupportedException, GeometryOperationException
line - to be extendedsideToExtend - What side will be extend. Use
START_SIDE and
END_SIDEboundaryObjects - to calculate intersection points.CreateGeometryExceptionDataExceptionGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic static Point arcIntersection(Arc arcToBeExtended, java.lang.String sideToExtend, FeatureSelection boundaryObjects) throws GeometryOperationNotSupportedException, GeometryOperationException, CreateGeometryException, DataException
arcToBeExtended - Arc to be extendedsideToExtend - What side will be extend. Use
START_SIDE and
END_SIDEboundaryObjects - to calculate intersection points.GeometryOperationNotSupportedExceptionGeometryOperationExceptionCreateGeometryExceptionDataExceptionpublic static double getAngle(Point start, Point end) throws GeometryOperationNotSupportedException, GeometryOperationException
public static Point getIntersectionOfProjectedLine(Point initPoint, Point endPoint, FeatureSelection boundaryObjects) throws GeometryOperationNotSupportedException, GeometryOperationException, DataException, CreateGeometryException
initPoint - of curve to extendendPoint - end point of curve to extendboundaryObjects - to calculate intersection points.GeometryOperationNotSupportedExceptionGeometryOperationExceptionDataExceptionCreateGeometryException