org.deegree.geometry.standard.curvesegments
Class DefaultGeodesic

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultGeodesic
All Implemented Interfaces:
CurveSegment, Geodesic, GeodesicString

public class DefaultGeodesic
extends Object
implements Geodesic

Default implementation of Geodesic 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
DefaultGeodesic(Point p1, Point p2)
          Creates a new DefaultGeodesic instance from the given parameters.
 
Method Summary
 Points getControlPoints()
          Returns the control points of the string.
 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 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

DefaultGeodesic

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

Parameters:
p1 -
p2 -
Method Detail

getPoint1

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

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

getPoint2

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

Specified by:
getPoint2 in interface Geodesic
Returns:
the second 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: GeodesicString
Returns the control points of the string.

Specified by:
getControlPoints in interface GeodesicString
Returns:
the control points of the string

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


Copyright © 2011. All Rights Reserved.