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

org.deegree.geometry.standard.curvesegments
Class DefaultArc

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultArc
All Implemented Interfaces:
Arc, ArcString, CurveSegment
Direct Known Subclasses:
DefaultCircle

public class DefaultArc
extends Object
implements Arc

Default implementation of Arc 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
 
Field Summary
protected  Points points
           
 
Constructor Summary
DefaultArc(Point p1, Point p2, Point p3)
          Creates a new DefaultArc instance from the given parameters.
 
Method Summary
 Points getControlPoints()
          Returns the control points of the interpolation.
 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.
 int getNumArcs()
          Returns the number of arcs of the string.
 Point getPoint1()
          Returns the first of the three control points.
 Point getPoint2()
          Returns the second of the three control points.
 Point getPoint3()
          Returns the last of the three control points.
 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
 

Field Detail

points

protected final Points points
Constructor Detail

DefaultArc

public DefaultArc(Point p1,
                  Point p2,
                  Point p3)
Creates a new DefaultArc instance from the given parameters.

Parameters:
p1 - first control point
p2 - second control point
p3 - third control point
Method Detail

getPoint1

public Point getPoint1()
Description copied from interface: Arc
Returns the first of the three control points.

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

getPoint2

public Point getPoint2()
Description copied from interface: Arc
Returns the second of the three control points.

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

getPoint3

public Point getPoint3()
Description copied from interface: Arc
Returns the last of the three control points.

Specified by:
getPoint3 in interface Arc
Returns:
the third control point

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: ArcString
Returns the control points of the interpolation.

Specified by:
getControlPoints in interface ArcString
Returns:
the control points of the interpolation

getNumArcs

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

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

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

]]>