deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.geometry.standard.curvesegments
Class DefaultBSpline

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultBSpline
All Implemented Interfaces:
BSpline, CurveSegment

public class DefaultBSpline
extends Object
implements BSpline

Default implementation of BSpline segments.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.segments.CurveSegment
CurveSegment.CurveSegmentType
 
Constructor Summary
DefaultBSpline(Points controlPoints, int polynomialDegree, List<Knot> knots, boolean isPolynomial)
          Creates a new DefaultBSpline instance from the given parameters.
 
Method Summary
 Points getControlPoints()
          Returns the control points of the segment.
 int getCoordinateDimension()
          Returns the coordinate dimension, i.e. the dimension of the space that the curve is embedded in.
 Point getEndPoint()
          Returns the end point of the segment.
 List<Knot> getKnots()
          Returns the knots that define the spline basis functions.
 int getPolynomialDegree()
          Returns the degree of the polynomial used for interpolation in this spline.
 CurveSegment.CurveSegmentType getSegmentType()
          Returns the type of curve segment.
 Point getStartPoint()
          Returns the start point of the segment.
 boolean isPolynomial()
          Returns whether the interpolation is polynomial or rational.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBSpline

public DefaultBSpline(Points controlPoints,
                      int polynomialDegree,
                      List<Knot> knots,
                      boolean isPolynomial)
Creates a new DefaultBSpline instance from the given parameters.

Parameters:
controlPoints -
polynomialDegree -
knots -
isPolynomial -
Method Detail

getCoordinateDimension

public int getCoordinateDimension()
Description copied from interface: CurveSegment
Returns the coordinate dimension, i.e. the dimension of the space that the curve is embedded in.

Specified by:
getCoordinateDimension in interface CurveSegment
Returns:
the coordinate dimension

getControlPoints

public Points getControlPoints()
Description copied from interface: BSpline
Returns the control points of the segment.

Specified by:
getControlPoints in interface BSpline
Returns:
the control points of the segment

getPolynomialDegree

public int getPolynomialDegree()
Description copied from interface: BSpline
Returns the degree of the polynomial used for interpolation in this spline.

Specified by:
getPolynomialDegree in interface BSpline
Returns:
the degree of the polynomial

getKnots

public List<Knot> getKnots()
Description copied from interface: BSpline
Returns the knots that define the spline basis functions.

Specified by:
getKnots in interface BSpline
Returns:
list of distinctive knots

getStartPoint

public Point getStartPoint()
Description copied from interface: CurveSegment
Returns the start point of the segment.

Specified by:
getStartPoint in interface CurveSegment
Returns:
the start point of the segment

getEndPoint

public Point getEndPoint()
Description copied from interface: CurveSegment
Returns the end point of the segment.

Specified by:
getEndPoint in interface CurveSegment
Returns:
the end point of the segment

getSegmentType

public CurveSegment.CurveSegmentType getSegmentType()
Description copied from interface: CurveSegment
Returns the type of curve segment.

Specified by:
getSegmentType in interface CurveSegment
Returns:
the type of curve segment

isPolynomial

public boolean isPolynomial()
Description copied from interface: BSpline
Returns whether the interpolation is polynomial or rational.

Specified by:
isPolynomial in interface BSpline
Returns:
true, if the interpolation is polynomial, false if it's rational

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>