public class Ilv3DCorridor extends Object implements Ilv3DComponent
Constructor and Description |
---|
Ilv3DCorridor(double[] lonCoords,
double[] latCoords,
double[] elevationCoords,
double radius)
Constructs an
Ilv3DCorridor from the specified parameters (defining a 3D path). |
Ilv3DCorridor(double[] lonCoords,
double[] latCoords,
double[] elevationCoords,
double[] radiuses)
Constructs an
Ilv3DCorridor from the specified parameters (defining a 3D path). |
Modifier and Type | Method and Description |
---|---|
void |
display(GL2 gl,
Ilv3DCoordinateConverter converter)
Draws this component inside the specified OpenGL GL context object
The context is centered on the center of this component.
|
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 |
getStepsAboutAxis()
Returns the number of steps used (about the axis) to draw the cylinders comprising this component.
|
int |
getStepsAlongAxis()
Returns the number of steps used (along the axis) to draw the cylinders comprising 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.
|
void |
setStepsAboutAxis(int stepsAboutAxis)
Sets the number of steps used (about the axis) to draw the cylinders comprising this component.
|
void |
setStepsAlongAxis(int stepsAlongAxis)
Returns the number of steps used (along the axis) to draw the cylinders comprising this component.
|
public Ilv3DCorridor(double[] lonCoords, double[] latCoords, double[] elevationCoords, double[] radiuses)
Ilv3DCorridor
from the specified parameters (defining a 3D path).lonCoords
- An array of longitude coordinates in radians.latCoords
- An array of latitude coordinates in radians.elevationCoords
- An array of elevation coordinates in meters.radiuses
- An array of radius values in meters.public Ilv3DCorridor(double[] lonCoords, double[] latCoords, double[] elevationCoords, double radius)
Ilv3DCorridor
from the specified parameters (defining a 3D path).lonCoords
- An array of longitude coordinates in radians.latCoords
- An array of latitude coordinates in radians.elevationCoords
- An array of elevation coordinates in meters.radius
- The tube's radius (constant).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
display
in interface Ilv3DComponent
gl
- The OpenGL context.converter
- The Ilv3DCoordinateConverter
from geographic coordinates to 3D coordinates.Ilv3DCoordinateConverter
public Color getColor()
public void setColor(Color color)
color
- The java.awt.Color to setpublic int getStepsAboutAxis()
public void setStepsAboutAxis(int stepsAboutAxis)
stepsAboutAxis
- The number of steps for the cylinders about their axis.public int getStepsAlongAxis()
public void setStepsAlongAxis(int stepsAlongAxis)
stepsAlongAxis
- The number of steps along their axis for the cylinders.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.