Jeospace API

org.jeospace.x3d.geometry
Class SphericalLatLongMesh

java.lang.Object
  extended byorg.jeospace.x3d.geometry.SphericalLatLongMesh
All Implemented Interfaces:
CoordinateDataSource, IFSDataSource

public class SphericalLatLongMesh
extends java.lang.Object
implements IFSDataSource

A data source for an X3D IndexedFaceSet that implements a spherical mesh composed of points of latitude and longitude.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
SphericalLatLongMesh(int degrees)
          Constructor
 
Method Summary
 float[][] getCoordinatePoints()
          Return the coordinate points.
 int[] getFaceCoordinateIndices()
          Return the indices of the coordinate points of the face set.
 Length getScale()
          Return the scale to which the coordinate points are calculated.
 int[] getTextureCoordinateIndices()
          Return the indices of the texture coordinate points of the face set.
 float[][] getTextureCoordinates()
          Return the texture coordinates of the face set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphericalLatLongMesh

public SphericalLatLongMesh(int degrees)
Constructor

Parameters:
degrees - the angular separation between each mesh coordinate along each line of latitude and longitude. The degrees parameter must be less than 90.
Method Detail

getCoordinatePoints

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

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

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.

getFaceCoordinateIndices

public int[] getFaceCoordinateIndices()
Return the indices of the coordinate points of the face set.

Specified by:
getFaceCoordinateIndices in interface IFSDataSource
Returns:
the indices of the coordinate points of the face set.

getTextureCoordinates

public float[][] getTextureCoordinates()
Return the texture coordinates of the face set.

Specified by:
getTextureCoordinates in interface IFSDataSource
Returns:
the texture coordinates of the face set.

getTextureCoordinateIndices

public int[] getTextureCoordinateIndices()
Return the indices of the texture coordinate points of the face set.

Specified by:
getTextureCoordinateIndices in interface IFSDataSource
Returns:
the indices of the texture coordinate points of the face set.

Jeospace API

Copyright © 2006 - jeospace.org