Jeospace API

org.jeospace.x3d.geometry
Class SphericalLongitude

java.lang.Object
  extended byorg.jeospace.x3d.geometry.SphericalLongitude
All Implemented Interfaces:
CoordinateDataSource, ILSDataSource

public class SphericalLongitude
extends java.lang.Object
implements ILSDataSource

Generate the data for creating an X3D IndexedLineSet of a line of longitude about a sphere.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
SphericalLongitude(Longitude longitude)
          Constructor for a line of longitude extending from pole to pole.
SphericalLongitude(Longitude longitude, Latitude begin, Latitude end)
          Constructor for a segment of a line of longitude.
 
Method Summary
 float[][] getCoordinatePoints()
          Return the coordinate points of the line set.
 int[] getLineCoordinateIndices()
          Return the indices of the coordinate points of the line set.
 Length getScale()
          Return the scale to which the coordinate points are calculated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphericalLongitude

public SphericalLongitude(Longitude longitude,
                          Latitude begin,
                          Latitude end)
Constructor for a segment of a line of longitude.

Parameters:
longitude - the Longitude for which to calculate the line points
begin - the initial Latitude of the line
end - the final Latitude of the line

SphericalLongitude

public SphericalLongitude(Longitude longitude)
Constructor for a line of longitude extending from pole to pole.

Parameters:
longitude - the Longitude for which to calculate the line points
Method Detail

getCoordinatePoints

public float[][] getCoordinatePoints()
Return the coordinate points of the line set.

Specified by:
getCoordinatePoints in interface CoordinateDataSource
Returns:
the coordinate points of the line set.

getLineCoordinateIndices

public int[] getLineCoordinateIndices()
Return the indices of the coordinate points of the line set.

Specified by:
getLineCoordinateIndices in interface ILSDataSource
Returns:
the indices of the coordinate points of the line set.

getScale

public Length getScale()
Return the scale to which the coordinate points are calculated.

Specified by:
getScale in interface CoordinateDataSource
Returns:
the scale to which the coordinate points are calculated.

Jeospace API

Copyright © 2006 - jeospace.org