Package gov.nasa.worldwind.ogc.kml.impl
Class KMLGroundOverlayPolygonImpl
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.render.AbstractShape
-
- gov.nasa.worldwind.render.Polygon
-
- gov.nasa.worldwind.ogc.kml.impl.KMLGroundOverlayPolygonImpl
-
- All Implemented Interfaces:
AVList
,Draggable
,MessageListener
,Exportable
,ExtentHolder
,Movable
,Movable2
,KMLRenderable
,Attributable
,GeographicExtent
,Highlightable
,OrderedRenderable
,PreRenderable
,Renderable
,Restorable
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class KMLGroundOverlayPolygonImpl extends Polygon implements KMLRenderable
Implementation ofPolygon
to render KML GroundOverlay.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.Polygon
Polygon.BoundaryInfo, Polygon.ShapeData
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractShape
AbstractShape.AbstractShapeData
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
attributesResolved
protected KMLGroundOverlay
parent
-
Fields inherited from class gov.nasa.worldwind.render.Polygon
boundaries, edgeIndexBuffers, numPositions, previousIntersectionGlobeStateKey, previousIntersectionShapeData, previousIntersectionTerrain, rotation, texture, textureCoordsBuffer, VBO_THRESHOLD
-
Fields inherited from class gov.nasa.worldwind.render.AbstractShape
activeAttributes, altitudeMode, BEogsh, currentData, DEFAULT_ALTITUDE_MODE, DEFAULT_GEOMETRY_GENERATION_INTERVAL, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_OUTLINE_MATERIAL, DEFAULT_OUTLINE_PICK_WIDTH, defaultAttributes, delegateOwner, dragEnabled, draggableSupport, enableBatchPicking, enableBatchRendering, enableDepthOffset, highlightAttrs, highlighted, maxExpiryTime, minExpiryTime, normalAttrs, outlinePickWidth, outlineShapeRenderer, pickLayer, pickSupport, referencePosition, sector, shapeDataCache, surfaceShape, viewDistanceExpiration, visible
-
Fields inherited from interface gov.nasa.worldwind.Exportable
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
-
-
Constructor Summary
Constructors Constructor Description KMLGroundOverlayPolygonImpl(KMLTraversalContext tc, KMLGroundOverlay overlay)
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isHighlighted()
Indicates whether to highlight the shape.protected boolean
mustResolveHref()
void
preRender(KMLTraversalContext tc, DrawContext dc)
Pre-render this element.void
render(KMLTraversalContext tc, DrawContext dc)
Render this element.-
Methods inherited from class gov.nasa.worldwind.render.Polygon
addInnerBoundary, beginDrawing, clearIntersectionGeometry, computeBoundaryNormals, computeBoundaryVertices, computeExtent, computeEyeDistance, computePolygonNormal, computeReferencePoint, computeRotationMatrix, countPositions, createCacheEntry, createFullGeometry, createGeometry, createIntersectionGeometry, createMinimalGeometry, createNormals, createSurfaceShape, createTessllationGeometry, createVertices, doDrawInterior, doDrawInteriorVA, doDrawInteriorVBO, doDrawOutline, doDrawOutlineVA, doDrawOutlineVBO, doExportAsKML, doMakeOrderedRenderable, exportBoundaryAsLinearRing, fillBoundary, fillVBO, generateInteriorIndices, getBoundaries, getCurrent, getExtent, getOuterBoundary, getReferencePosition, getRotation, getSector, getTexture, getTextureCoords, getTextureImageSource, initialize, intersect, intersect, isOrderedRenderableValid, isOuterBoundaryValid, isSameAsPreviousTerrain, moveTo, moveTo, mustApplyTexture, mustRegenerateGeometry, outerBoundary, render, reset, setOuterBoundary, setRotation, setSurfacePolygonBoundaries, setSurfacePolygonTexImageSource, setTextureImageSource, shouldUseVBOs, tessellatePolygon, writeKMLBoundaries
-
Methods inherited from class gov.nasa.worldwind.render.AbstractShape
addOrderedRenderable, checkViewDistanceExpiration, clearCachedVbos, computeExtentFromPositions, computePoint, computePoint, countTriangleVertices, createPickedObject, determineActiveAttributes, doDrag, doDrawOrderedRenderable, doGetRestorableState, doRestoreState, drag, drawBatched, drawInterior, drawOrderedRenderable, drawOutline, endDrawing, export, exportAsKML, getActiveAttributes, getAltitudeMode, getAttributes, getCurrentData, getDelegateOwner, getDistanceFromEye, getExtent, getGeometryRegenerationInterval, getHighlightAttributes, getOutlinePickWidth, getReferencePoint, getRestorableState, getVboIds, intersectsFrustum, isDragEnabled, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isExportFormatSupported, isTerrainDependent, isViewDistanceExpiration, isVisible, makeOrderedRenderable, makeTexture, move, mustApplyLighting, mustApplyLighting, mustCreateNormals, mustCreateNormals, mustDrawInterior, mustDrawOutline, pick, prepareToDrawInterior, prepareToDrawOutline, preRender, restoreState, setAltitudeMode, setAttributes, setDelegateOwner, setDragEnabled, setEnableBatchPicking, setEnableBatchRendering, setEnableDepthOffset, setGeometryRegenerationInterval, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setReferencePosition, setViewDistanceExpiration, setVisible, updateSurfaceShape
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.event.MessageListener
onMessage
-
-
-
-
Field Detail
-
parent
protected final KMLGroundOverlay parent
-
attributesResolved
protected boolean attributesResolved
-
-
Constructor Detail
-
KMLGroundOverlayPolygonImpl
public KMLGroundOverlayPolygonImpl(KMLTraversalContext tc, KMLGroundOverlay overlay)
Create an instance.- Parameters:
tc
- the currentKMLTraversalContext
.overlay
- theKMLGroundOverlay
to render as a polygon.- Throws:
java.lang.NullPointerException
- if the geomtry is null.java.lang.IllegalArgumentException
- if the parent placemark or the traversal context is null.
-
-
Method Detail
-
preRender
public void preRender(KMLTraversalContext tc, DrawContext dc)
Pre-render this element.- Specified by:
preRender
in interfaceKMLRenderable
- Parameters:
tc
- the current KML traversal context.dc
- the current draw context.
-
mustResolveHref
protected boolean mustResolveHref()
-
render
public void render(KMLTraversalContext tc, DrawContext dc)
Render this element.- Specified by:
render
in interfaceKMLRenderable
- Parameters:
tc
- the current KML traversal context.dc
- the current draw context.
-
isHighlighted
public boolean isHighlighted()
Indicates whether to highlight the shape.- Specified by:
isHighlighted
in interfaceHighlightable
- Overrides:
isHighlighted
in classAbstractShape
- Returns:
- true to highlight the shape, otherwise false.
-
-