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

org.deegree.geometry.standard.curvesegments
Class DefaultArcByBulge

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultArcByBulge
All Implemented Interfaces:
ArcByBulge, ArcStringByBulge, CurveSegment

public class DefaultArcByBulge
extends Object
implements ArcByBulge

Default implementation of ArcByBulge 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
DefaultArcByBulge(Point p1, Point p2, double bulge, Point normal)
          Creates a new DefaultArcByBulge instance from the given parameters.
 
Method Summary
 double getBulge()
          Returns the single bulge value.
 double[] getBulges()
          Returns the bulge values.
 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.
 Point getNormal()
          Returns the single normal vector for the bulge.
 Points getNormals()
          Returns the normal vectors that define the arc string.
 int getNumArcs()
          Returns the number of arcs of the string.
 Point getPoint1()
          Returns the first control point.
 Point getPoint2()
          Returns the second control point.
 CurveSegment.CurveSegmentType getSegmentType()
          Returns the type of curve segment.
 Point getStartPoint()
          Returns the start point of the segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArcByBulge

public DefaultArcByBulge(Point p1,
                         Point p2,
                         double bulge,
                         Point normal)
Creates a new DefaultArcByBulge instance from the given parameters.

Parameters:
p1 - first control point
p2 - second control point
bulge -
normal -
Method Detail

getPoint1

public Point getPoint1()
Description copied from interface: ArcByBulge
Returns the first control point.

Specified by:
getPoint1 in interface ArcByBulge
Returns:
the first control point

getPoint2

public Point getPoint2()
Description copied from interface: ArcByBulge
Returns the second control point.

Specified by:
getPoint2 in interface ArcByBulge
Returns:
the second control point

getBulge

public double getBulge()
Description copied from interface: ArcByBulge
Returns the single bulge value.

Specified by:
getBulge in interface ArcByBulge
Returns:
the bulge value

getNormal

public Point getNormal()
Description copied from interface: ArcByBulge
Returns the single normal vector for the bulge.

Specified by:
getNormal in interface ArcByBulge
Returns:
the bulge's normal vector

getBulges

public double[] getBulges()
Description copied from interface: ArcStringByBulge
Returns the bulge values.

Specified by:
getBulges in interface ArcStringByBulge
Returns:
the bulge values

getNormals

public Points getNormals()
Description copied from interface: ArcStringByBulge
Returns the normal vectors that define the arc string.

Specified by:
getNormals in interface ArcStringByBulge
Returns:
the normal vectors

getNumArcs

public int getNumArcs()
Description copied from interface: ArcStringByBulge
Returns the number of arcs of the string.

Specified by:
getNumArcs in interface ArcStringByBulge
Returns:
the number of arcs

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: ArcStringByBulge
Returns the control points of the segment.

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

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

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

]]>