org.jzy3d.plot3d.primitives.contour
Class DefaultLineStripMergePolicy

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.contour.DefaultLineStripMergePolicy
All Implemented Interfaces:
ILineStripMergePolicy

public class DefaultLineStripMergePolicy
extends java.lang.Object
implements ILineStripMergePolicy

Tells if we should merge with any LineStrip according to a maximum distance threshold

Author:
Martin Pernollet

Constructor Summary
DefaultLineStripMergePolicy()
           
DefaultLineStripMergePolicy(double threshold)
           
 
Method Summary
 boolean mergeable(LineStrip ls1, LineStrip ls2)
           
 double mergeScore(LineStrip ls1, LineStrip ls2)
           
 LineStrip mostMergeableIfAny(LineStrip ls, java.util.List<LineStrip> lines)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLineStripMergePolicy

public DefaultLineStripMergePolicy()

DefaultLineStripMergePolicy

public DefaultLineStripMergePolicy(double threshold)
Method Detail

mostMergeableIfAny

public LineStrip mostMergeableIfAny(LineStrip ls,
                                    java.util.List<LineStrip> lines)
Specified by:
mostMergeableIfAny in interface ILineStripMergePolicy

mergeable

public boolean mergeable(LineStrip ls1,
                         LineStrip ls2)
Specified by:
mergeable in interface ILineStripMergePolicy

mergeScore

public double mergeScore(LineStrip ls1,
                         LineStrip ls2)
Specified by:
mergeScore in interface ILineStripMergePolicy