public class ContourLine extends Object implements Renderable
Sector.| Modifier and Type | Field and Description | 
|---|---|
protected Object | 
globeStateKey  | 
protected int | 
maxConnectingDistance  | 
| Constructor and Description | 
|---|
ContourLine()  | 
ContourLine(double elevation)  | 
ContourLine(double elevation,
           Sector sector)  | 
ContourLine(Sector sector)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
protected Object globeStateKey
protected int maxConnectingDistance
public ContourLine()
public ContourLine(double elevation)
public ContourLine(double elevation,
                   Sector sector)
public ContourLine(Sector sector)
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()