gov.nasa.worldwind.render
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
|---|---|
double |
getArea(Globe globe,
boolean terrainConformant)
Returns the shapes's area in square meters. |
ShapeAttributes |
getAttributes()
Returns the rendering attributes associated with this SurfaceShape. |
Iterable<? extends LatLon> |
getLocations(Globe globe)
Returns the shape's locations as they appear on the specified globe. |
int[] |
getMinAndMaxEdgeIntervals()
Returns the minimum and maximum number of interpolated intervals that may be added to each shape edge. |
String |
getPathType()
Returns the path type used to interpolate between locations on this SurfaceShape. |
double |
getTexelsPerEdgeInterval()
Returns the number of texels per shape edge interval. |
void |
setAttributes(ShapeAttributes attributes)
Sets the rendering attributes associated with this SurfaceShape. |
void |
setMinAndMaxEdgeIntervals(int minEdgeIntervals,
int maxEdgeIntervals)
Sets the minimum and maximum number of interpolated intervals that may be added to each shape edge. |
void |
setPathType(String pathType)
Sets the path type used to interpolate between locations on this SurfaceShape. |
void |
setTexelsPerEdgeInterval(double texelsPerEdgeInterval)
Sets the number of texels per shape edge interval. |
| Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject |
|---|
getLastModifiedTime, getSectors, isVisible, renderToRegion, setVisible |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from interface gov.nasa.worldwind.render.PreRenderable |
|---|
preRender |
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Methods inherited from interface gov.nasa.worldwind.Restorable |
|---|
getRestorableState, restoreState |
| Methods inherited from interface gov.nasa.worldwind.geom.MeasurableArea |
|---|
getArea, getHeight, getPerimeter, getWidth |
| Methods inherited from interface gov.nasa.worldwind.geom.MeasurableLength |
|---|
getLength |
| Method Detail |
|---|
double getArea(Globe globe, boolean terrainConformant)
terrainConformant is true, the area returned is the
surface area of the terrain, including its hillsides and other undulations.
globe - the globe the shape is related to.terrainConformant - whether or not the returned area should treat the shape as conforming to the terrain.
IllegalArgumentException - if globe is null.ShapeAttributes getAttributes()
Iterable<? extends LatLon> getLocations(Globe globe)
globe.
globe - the globe the shape is related to.
IllegalArgumentException - if globe is null.int[] getMinAndMaxEdgeIntervals()
setMinAndMaxEdgeIntervals(int, int)String getPathType()
double getTexelsPerEdgeInterval()
setTexelsPerEdgeInterval(double)void setAttributes(ShapeAttributes attributes)
attributes - this shapes new rendering attributes.
IllegalArgumentException - if attributes is null.
void setMinAndMaxEdgeIntervals(int minEdgeIntervals,
int maxEdgeIntervals)
minEdgeIntervals
or maxEdgeIntervals too large may adversely impact surface shape rendering performance.
minEdgeIntervals - the minimum number of interpolated edge intervals.maxEdgeIntervals - the maximum number of interpolated edge intervals.
IllegalArgumentException - if either of minEdgeIntervals or maxEdgeIntervals is
less than or equal to zero.setTexelsPerEdgeInterval(double)void setPathType(String pathType)
pathType - path interpolation type.
IllegalArgumentException - if pathType is null.void setTexelsPerEdgeInterval(double texelsPerEdgeInterval)
setMinAndMaxEdgeIntervals(int, int).
texelsPerEdgeInterval - the size, in texels, of each interpolated edge interval.
IllegalArgumentException - if texelsPerEdgeInterval is less than or equal to zero.setMinAndMaxEdgeIntervals(int, int)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||