public class ExtendLineOperationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
END_SIDE
Use it to indicate end side should be extended
|
static 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,
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,
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 String START_SIDE
public static final String END_SIDE
public static void register(ExtendLineOperation operation, int geometryType)
public static ExtendLineOperation getOperation(Primitive geom)
public static Point curveIntersection(Curve line, String sideToExtend, FeatureSelection boundaryObjects) throws CreateGeometryException, DataException, GeometryOperationNotSupportedException, GeometryOperationException
line
- to be extendedsideToExtend
- What side will be extend. Use
START_SIDE
and
END_SIDE
boundaryObjects
- to calculate intersection points.CreateGeometryException
DataException
GeometryOperationNotSupportedException
GeometryOperationException
public static Point arcIntersection(Arc arcToBeExtended, String sideToExtend, FeatureSelection boundaryObjects) throws GeometryOperationNotSupportedException, GeometryOperationException, CreateGeometryException, DataException
arcToBeExtended
- Arc to be extendedsideToExtend
- What side will be extend. Use
START_SIDE
and
END_SIDE
boundaryObjects
- to calculate intersection points.GeometryOperationNotSupportedException
GeometryOperationException
CreateGeometryException
DataException
public 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.GeometryOperationNotSupportedException
GeometryOperationException
DataException
CreateGeometryException