|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.render.ContourLine
public class ContourLine
Renders a contour line on the terrain at a given elevation. The contour line extent can be bounded by a
Sector.
| Field Summary | |
|---|---|
protected Object |
globeStateKey
|
protected int |
maxConnectingDistance
|
| Constructor Summary | |
|---|---|
ContourLine()
|
|
ContourLine(double elevation)
|
|
ContourLine(double elevation,
Sector sector)
|
|
ContourLine(Sector sector)
|
|
| Method Summary | |
|---|---|
protected ArrayList<Intersection> |
filterIntersections(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the bounding sector. |
protected ArrayList<Intersection> |
filterIntersectionsOnViewFrustum(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to the current view frustum. |
Color |
getColor()
Get the contour line color. |
double |
getElevation()
Get the contour line current elevation. |
double |
getLineWidth()
Get the contour line width. |
List<Renderable> |
getRenderables()
|
Sector |
getSector()
Get the contour line current bounding sector. |
boolean |
isEnabled()
|
protected boolean |
isValid(DrawContext dc)
|
boolean |
isViewClippingEnabled()
Indicates whether view volume clipping is performed. |
protected void |
makeContourLine(DrawContext dc)
Update the renderable list with appropriate renderables to display the contour line. |
protected int |
makePolylinesConnected(DrawContext dc,
ArrayList<Intersection> inter,
int tolerance)
Add a set of Polyline objects to the contour line renderable list by connecting as much as possible
the segments from the given Intersection array. |
void |
render(DrawContext dc)
Causes this Renderable to render itself using the provided draw context. |
void |
setColor(Color color)
Set the contour line color. |
void |
setElevation(double elevation)
Set the contour line elevation. |
void |
setEnabled(boolean state)
|
void |
setLineWidth(double width)
Set the contour line width. |
void |
setSector(Sector sector)
Set the contour line bounding sector. |
void |
setViewClippingEnabled(boolean viewClippingEnabled)
Set whether view volume clipping is performed. |
void |
update()
Update the contour line according to the current terrain geometry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object globeStateKey
protected int maxConnectingDistance
| Constructor Detail |
|---|
public ContourLine()
public ContourLine(double elevation)
public ContourLine(double elevation,
Sector sector)
public ContourLine(Sector sector)
| Method Detail |
|---|
protected ArrayList<Intersection> filterIntersections(DrawContext dc,
ArrayList<Intersection> list)
dc - the current DrawContextlist - the list of Intersection to be filtered.
protected ArrayList<Intersection> filterIntersectionsOnViewFrustum(DrawContext dc,
ArrayList<Intersection> list)
dc - the current DrawContextlist - the list of Intersection to be filtered.
public Color getColor()
public double getElevation()
public double getLineWidth()
public List<Renderable> getRenderables()
public Sector getSector()
public boolean isEnabled()
protected boolean isValid(DrawContext dc)
public boolean isViewClippingEnabled()
true if view volume clipping is performed, otherwise false (the default).protected void makeContourLine(DrawContext dc)
dc - the current DrawContext.
protected int makePolylinesConnected(DrawContext dc,
ArrayList<Intersection> inter,
int tolerance)
Polyline objects to the contour line renderable list by connecting as much as possible
the segments from the given Intersection array.
dc - the current DrawContext.inter - the list of Intersection to sort out.tolerance - how far in meter can two points be considered connected.
Polyline objects added.public void render(DrawContext dc)
RenderableRenderable to render itself using the provided draw context.
render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setColor(Color color)
color - the contour line color.public void setElevation(double elevation)
elevation - the contour line elevation.public void setEnabled(boolean state)
public void setLineWidth(double width)
width - the contour line width.public void setSector(Sector sector)
sector - the contour line bounding sector.public void setViewClippingEnabled(boolean viewClippingEnabled)
viewClippingEnabled - true if view clipping should be performed, otherwise false
(the default).public void update()
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||