org.deegree.geometry.standard.curvesegments
Class DefaultBezier

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

public class DefaultBezier
extends Object
implements Bezier

Default implementation of Bezier segments.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.segments.CurveSegment
CurveSegment.CurveSegmentType
 
Constructor Summary
DefaultBezier(Points controlPoints, int polynomialDegree, Knot knot1, Knot knot2)
          Creates a new DefaultBezier 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.
 Knot getKnot1()
          Returns the first knot that defines the spline's basis functions.
 Knot getKnot2()
          Returns the second knot that defines the spline's basis functions.
 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

DefaultBezier

public DefaultBezier(Points controlPoints,
                     int polynomialDegree,
                     Knot knot1,
                     Knot knot2)
Creates a new DefaultBezier instance from the given parameters.

Parameters:
controlPoints - interpolation points
polynomialDegree -
knot1 -
knot2 -
Method Detail

getKnot1

public Knot getKnot1()
Description copied from interface: Bezier
Returns the first knot that defines the spline's basis functions.

Specified by:
getKnot1 in interface Bezier
Returns:
first knot

getKnot2

public Knot getKnot2()
Description copied from interface: Bezier
Returns the second knot that defines the spline's basis functions.

Specified by:
getKnot2 in interface Bezier
Returns:
second knot

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


Copyright © 2011. All Rights Reserved.