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, getOutlineSegments
protected Point computeProjectionInScene(java.util.List<ICurve> anchorageOutlinesInScene, Point anchoredReferencePointInScene, java.util.Set<IComputationStrategy.Parameter<?>> parameters)
ProjectionStrategy
computeProjectionInScene
in class ProjectionStrategy
anchorageOutlinesInScene
- A list of ICurve
s 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()
IComputationStrategy
getRequiredParameters
in interface IComputationStrategy
getRequiredParameters
in class ProjectionStrategy
Copyright (c) 2014 itemis AG and others. All rights reserved.