CatmullRomSpline Class Reference

List of all members.

Public Member Functions

List< Vector2DgetBackwardTangents ()
List< Point2D > getControlPoints ()
List< Vector2DgetForwardTangents ()
Shape getLineShape ()
List< Point2D > getPathPoints ()
Shape getShape ()
void setPoints (double[] x, double[] y)
void setPoints (List< Point2D > points)
 TODO: Create a different hybridized spline, that will only go to Catmull-Rom if the points are far enough apart.

Detailed Description

A Catmull-Rom Spline. Great for Handwriting. It's a basic implementation, so it might not be optimized for performance yet.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 20 of file CatmullRomSpline.java.


Member Function Documentation

List<Vector2D> getForwardTangents (  ) 

Returns:

Definition at line 48 of file CatmullRomSpline.java.

Shape getLineShape (  ) 

Returns:

Definition at line 55 of file CatmullRomSpline.java.

List<Point2D> getPathPoints (  ) 

Returns:
a copy of the path's points

Definition at line 62 of file CatmullRomSpline.java.

Shape getShape (  ) 

Returns:

Definition at line 69 of file CatmullRomSpline.java.

Referenced by RenderingTechniqueHybrid.render(), and RenderingTechniqueCatmullRom.render().

void setPoints ( List< Point2D >  points  ) 

TODO: Create a different hybridized spline, that will only go to Catmull-Rom if the points are far enough apart.

Otherwise, it will just default to lineTos...

Parameters:
points 

Definition at line 139 of file CatmullRomSpline.java.

void setPoints ( double[]  x,
double[]  y 
)

Parameters:
x 
y 

Definition at line 125 of file CatmullRomSpline.java.

Referenced by RenderingTechniqueHybrid.render(), and RenderingTechniqueCatmullRom.render().


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:46 2007 for R3 Paper Toolkit by  doxygen 1.4.7