public class Ilv3DExtrudedPolygon extends Object implements Ilv3DComponent
Constructor and Description |
---|
Ilv3DExtrudedPolygon(double[] lonCoords,
double[] latCoords,
double baseElevation,
double topElevation)
Constructs an
Ilv3DExtrudedPolygon 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.
|
void |
pathUpdated()
A method that recomputes internal variables when the path of the corridor changes.
|
void |
setColor(Color color)
Sets the color of this component.
|
public Ilv3DExtrudedPolygon(double[] lonCoords, double[] latCoords, double baseElevation, double topElevation)
Ilv3DExtrudedPolygon
from the specified parameters.lonCoords
- An array of longitude coordinates in radians.latCoords
- An array of latitude coordinates in radians.baseElevation
- The elevation of the base of this Ilv3DExtrudedPolygon
, in meters.topElevation
- The elevation of the top of this Ilv3DExtrudedPolygon
, in meters.public void pathUpdated()
public double getCenterLongitude()
getCenterLongitude
in interface Ilv3DComponent
public double getCenterLatitude()
getCenterLatitude
in interface Ilv3DComponent
public double getCenterElevation()
getCenterElevation
in interface Ilv3DComponent
public void display(GL2 gl, Ilv3DCoordinateConverter converter)
Ilv3DCoordinateConverter
provided.display
in interface Ilv3DComponent
gl
- The OpenGL context.converter
- The Ilv3DCoordinateConverter
that converts from geographic coordinates to
3D coordinates.Ilv3DCoordinateConverter
public Color getColor()
java.awt.Color
of this component.public void setColor(Color color)
color
- The java.awt.Color
to set.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.