|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.klay.layered.p5edges.SimpleSplineGenerator
public class SimpleSplineGenerator
Simple implementation for the spline calculator.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.cau.cs.kieler.klay.layered.p5edges.ISplineGenerator |
---|
ISplineGenerator.curvature |
Constructor Summary | |
---|---|
SimpleSplineGenerator()
|
Method Summary | |
---|---|
BezierSpline |
generateShortSpline(KVector q,
KVector s)
Generates a spline representation for straight edges. |
BezierSpline |
generateSpline(LinkedList<KVector> pArray)
generates a simple piecewise bezier curve for given points. |
BezierSpline |
generateSpline(LinkedList<KVector> pArray,
KVector vectorQ,
KVector vectorS)
generates a simple piecewise bezier curve for given points. |
boolean |
refineSpline(LinkedList<KVector> pArray,
BezierSpline ospline,
ISplineGenerator.curvature mode)
perturb the control points of the spline in an attempt to make the spline fit. |
boolean |
straightenSpline(BezierSpline spline)
straighten_spline adjusts the control points of the spline to reduce the curvature. |
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm |
---|
getMonitor, reset, reset, setProgressMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleSplineGenerator()
Method Detail |
---|
public BezierSpline generateSpline(LinkedList<KVector> pArray, KVector vectorQ, KVector vectorS)
generateSpline
in interface ISplineGenerator
pArray
- array with points which should be lay on the splinevectorQ
- outgoing tangent vector of the initial nodevectorS
- incoming tangent vector of the final node
public BezierSpline generateSpline(LinkedList<KVector> pArray)
generateSpline
in interface ISplineGenerator
pArray
- array with points which should be lay on the spline
public BezierSpline generateShortSpline(KVector q, KVector s)
generateShortSpline
in interface ISplineGenerator
q
- start points
- end point
public boolean refineSpline(LinkedList<KVector> pArray, BezierSpline ospline, ISplineGenerator.curvature mode)
refineSpline
in interface ISplineGenerator
pArray
- array with points which should be lay on the splineospline
- spline to be refinedmode
- either decrease or increase the curvature
public boolean straightenSpline(BezierSpline spline)
straightenSpline
in interface ISplineGenerator
spline
- spline to be straightened
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |