public class OrthogonalProjectionStrategy extends ProjectionStrategy
IComputationStrategy that computes anchor position by orthogonally
projecting the respective anchored reference point to the outline of the
anchorage reference geometry so that the respective point has minimal
distance to the anchored reference point and resembles the same x- (vertical
projection) or y-coordinate (horizontal projection).IComputationStrategy.Parameter<T>| Constructor and Description |
|---|
OrthogonalProjectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected Point |
computeProjectionInScene(java.util.List<ICurve> anchorageOutlinesInScene,
Point anchoredReferencePointInScene,
java.util.Set<IComputationStrategy.Parameter<?>> parameters)
Computes the anchorage reference position in scene coordinates, based on
the given anchorage outlines and the given anchored reference point.
|
java.util.Set<java.lang.Class<? extends IComputationStrategy.Parameter<?>>> |
getRequiredParameters()
Returns the types of parameters required by this strategy.
|
computePositionInScene, getOutlineSegmentsprotected Point computeProjectionInScene(java.util.List<ICurve> anchorageOutlinesInScene, Point anchoredReferencePointInScene, java.util.Set<IComputationStrategy.Parameter<?>> parameters)
ProjectionStrategycomputeProjectionInScene in class ProjectionStrategyanchorageOutlinesInScene - A list of ICurves that describe the outline of the
anchorage.anchoredReferencePointInScene - The reference Point of the anchored for which the
anchorage reference Point is to be determined.parameters - The parameters available for the computation.public java.util.Set<java.lang.Class<? extends IComputationStrategy.Parameter<?>>> getRequiredParameters()
IComputationStrategygetRequiredParameters in interface IComputationStrategygetRequiredParameters in class ProjectionStrategyCopyright (c) 2014 itemis AG and others. All rights reserved.