public class Ilv3DSphere extends Object implements Ilv3DComponent
| Constructor and Description |
|---|
Ilv3DSphere(double centerLongitude,
double centerLatitude,
double elevation,
double radiusInMeters)
Constructs an
Ilv3DSphere from the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
display(GL2 gl,
Ilv3DCoordinateConverter converter)
Draws this component inside the specified OpenGL GL context object.
|
double |
getCenterElevation()
Returns the elevation of the center of this component.
|
double |
getCenterLatitude()
Returns the latitude of the center of this component.
|
double |
getCenterLongitude()
Returns the longitude of the center of this component.
|
Color |
getColor()
Returns the color of this component.
|
int |
getElevationSteps()
Returns the number of steps along the elevation axis used to draw the sphere (that is, stacks).
|
int |
getLonLatSteps()
Returns the number of steps about the elevation axis used to draw the sphere (that is, slices).
|
double |
getRadius()
Returns the radius of this
Ilv3DSphere. |
void |
setColor(Color color)
Sets the color of this component.
|
void |
setElevationSteps(int elevationSteps)
Sets the number of steps along the elevation axis used to draw the sphere (that is, stacks).
|
void |
setLonLatSteps(int lonLatSteps)
Sets the number of steps about the elevation axis used to draw the sphere (that is, slices).
|
void |
setRadius(double radiusInMeters)
Sets the radius of this
Ilv3DSphere. |
public Ilv3DSphere(double centerLongitude,
double centerLatitude,
double elevation,
double radiusInMeters)
Ilv3DSphere from the specified parameters.centerLongitude - The longitude of the center of this component in radians.centerLatitude - The latitude of the center of this component in radians.elevation - The elevation of the center of this component in meters.radiusInMeters - The radius of this Ilv3DSphere in meters.public double getCenterLongitude()
getCenterLongitude in interface Ilv3DComponentpublic double getCenterLatitude()
getCenterLatitude in interface Ilv3DComponentpublic void display(GL2 gl, Ilv3DCoordinateConverter converter)
Ilv3DCoordinateConverter provided.display in interface Ilv3DComponentgl - The OpenGL context.converter - The Ilv3DCoordinateConverter that converts from geographic coordinates to 3D coordinates.Ilv3DCoordinateConverterpublic double getCenterElevation()
getCenterElevation in interface Ilv3DComponentpublic Color getColor()
java.awt.Color of this component.public void setColor(Color color)
color - The java.awt.Color to set.public int getElevationSteps()
public void setElevationSteps(int elevationSteps)
elevationSteps - The number of steps along the elevation axis to be set.public int getLonLatSteps()
public void setLonLatSteps(int lonLatSteps)
lonLatSteps - The number of steps about the elevation axis.public double getRadius()
Ilv3DSphere.public void setRadius(double radiusInMeters)
Ilv3DSphere.radiusInMeters - The radius in meters.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.