gov.nasa.worldwind.render
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gov.nasa.worldwind.render.ConformingShape |
|---|
ConformingShape.CacheKey |
| Field Summary | |
|---|---|
protected Globe |
globe
|
| Fields inherited from class gov.nasa.worldwind.render.ConformingShape |
|---|
borderColor, borderWidth, CONFORMINGSHAPE_CACHE_KEY, CONFORMINGSHAPE_CACHE_NAME, drawBorder, drawInterior, fillColor |
| Constructor Summary | |
|---|---|
|
ConformingPolygon(Globe g,
Iterable<? extends LatLon> vertices)
A Renderable polygon shape defined by a list of LatLon |
|
ConformingPolygon(Globe g,
Iterable<? extends LatLon> vertices,
Color fillColor,
Color borderColor)
A Renderable polygon shape defined by a list of LatLon |
protected |
ConformingPolygon(Globe g,
Iterable<? extends LatLon> vertices,
Color fillColor,
Color borderColor,
boolean tessellateContour)
|
| Method Summary | |
|---|---|
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
double |
getArea(Globe globe)
Returns the object's area in square meters. |
double |
getHeight(Globe globe)
Returns the latitudanl length of the object in meters. |
double |
getLength(Globe globe)
Returns the object's length in meters. |
double |
getPerimeter(Globe globe)
Returns the length of the object's perimeter in meters. |
Position |
getReferencePosition()
|
double |
getWidth(Globe globe)
Returns the longitudinal length of the object in meters. |
protected void |
invalidateCache()
|
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
protected void |
renderBoundary(DrawContext dc,
javax.media.opengl.GL gl,
boolean knownToBeVisible)
|
protected boolean |
renderInterior(DrawContext dc,
javax.media.opengl.GL gl)
|
protected void |
setOriginalVertices(Iterable<? extends LatLon> vertices)
|
| Methods inherited from class gov.nasa.worldwind.render.ConformingShape |
|---|
dispose, getBorderColor, getBorderWidth, getInteriorColor, getRestorableState, getUniqueSerialNumber, getUseFrustumCull, isAntiAlias, isDrawBorder, isDrawInterior, isExpired, move, render, restoreState, setAntiAlias, setBorderColor, setBorderWidth, setDrawBorder, setDrawInterior, setInteriorColor, setUseFrustumCull, sizeInBytesOf, updateExpiryCriteria |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Globe globe
| Constructor Detail |
|---|
public ConformingPolygon(Globe g, Iterable<? extends LatLon> vertices)
g - the globevertices - the list of LatLon positions that makes the polygonpublic ConformingPolygon(Globe g, Iterable<? extends LatLon> vertices, Color fillColor, Color borderColor)
g - the globevertices - the list of LatLon positions that makes the polygonfillColor - the interior fill colorborderColor - the border colorprotected ConformingPolygon(Globe g, Iterable<? extends LatLon> vertices, Color fillColor, Color borderColor, boolean tessellateContour)
| Method Detail |
|---|
protected void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
doGetRestorableState in class ConformingShapeprotected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
doRestoreState in class ConformingShapepublic double getArea(Globe globe)
MeasurableArea
globe - The globe the object is related to.
public double getHeight(Globe globe)
MeasurableArea
globe - The globe the object is related to.
public double getLength(Globe globe)
MeasurableLength
globe - The globe the object is related to.
public double getPerimeter(Globe globe)
MeasurableArea
globe - The globe the object is related to.
public Position getReferencePosition()
getReferencePosition in interface MovablegetReferencePosition in class ConformingShapepublic double getWidth(Globe globe)
MeasurableArea
globe - The globe the object is related to.
protected void invalidateCache()
invalidateCache in class ConformingShapepublic void moveTo(Position position)
Movable
moveTo in interface MovablemoveTo in class ConformingShapeposition - the new position of the shape's reference position.protected void renderBoundary(DrawContext dc, javax.media.opengl.GL gl, boolean knownToBeVisible)
renderBoundary in class ConformingShapeprotected boolean renderInterior(DrawContext dc, javax.media.opengl.GL gl)
renderInterior in class ConformingShapeprotected void setOriginalVertices(Iterable<? extends LatLon> vertices)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||