org.jcurl.math
Class NaturalShaper

Package class diagram package NaturalShaper
java.lang.Object
  extended by org.jcurl.math.NaturalShaper
All Implemented Interfaces:
Shaper
Direct Known Subclasses:
JCurlShaper

public class NaturalShaper
extends Object
implements Shaper

Use Shapeable.toShape(double, double) only.

Version:
$Id$
Author:
M. Rohrmoser

Constructor Summary
NaturalShaper()
           
 
Method Summary
 Shape toShape(Iterator<Map.Entry<Double,R1RNFunction>> f, double tmin, double tmax)
          Connect the output from toShapes(Iterator, double, double) into one.
 Shape toShape(R1RNFunction f, double tmin, double tmax)
          Convert a given interval of a R1RNFunction into a Shape.
 Iterator<Shape> toShapes(Iterator<Map.Entry<Double,R1RNFunction>> f, double tmin, double tmax)
          TODO Put the management logic from GenTrajectoryFactory.refresh(Iterator, boolean, double, double, Object) here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalShaper

public NaturalShaper()
Method Detail

toShape

public Shape toShape(Iterator<Map.Entry<Double,R1RNFunction>> f,
                     double tmin,
                     double tmax)
Connect the output from toShapes(Iterator, double, double) into one.


toShape

public Shape toShape(R1RNFunction f,
                     double tmin,
                     double tmax)
Description copied from interface: Shaper
Convert a given interval of a R1RNFunction into a Shape.

Specified by:
toShape in interface Shaper
Parameters:
f - the input curve - usually the first 2 dimensions are used.
tmin - lower interval end
tmax - upper interval end
Returns:
the resulting shape, usually a GeneralPath or null if no sensible curve exists.

toShapes

public Iterator<Shape> toShapes(Iterator<Map.Entry<Double,R1RNFunction>> f,
                                double tmin,
                                double tmax)
TODO Put the management logic from GenTrajectoryFactory.refresh(Iterator, boolean, double, double, Object) here.



Copyright © 2005-2009 jcurl.org. All Rights Reserved.