public class KMLSurfacePolygonImpl extends SurfacePolygon implements KMLRenderable
SurfacePolygon.ShapeData, SurfacePolygon.VertexAbstractSurfaceShape.GeometryKey, AbstractSurfaceShape.SurfaceShapeStateKeyAbstractSurfaceObject.CacheEntry, AbstractSurfaceObject.SurfaceObjectStateKey| Modifier and Type | Field and Description |
|---|---|
protected boolean |
highlightAttributesResolved |
protected boolean |
mustApplyRotation
Flag to indicate the rotation must be applied to the SurfaceImage.
|
protected boolean |
normalAttributesResolved |
protected KMLAbstractFeature |
parent |
boundaries, explicitTexture, explicitTextureCoords, shapeDataCache, tess, tessCallbackactiveAttrs, activeGeometry, activeOutlineGeometry, areaMeasurer, areaMeasurerLastModifiedTime, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_OUTLINE_MATERIAL, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, defaultAttrs, dragEnabled, draggableSupport, geometryCache, highlightAttrs, highlighted, maxEdgeIntervals, minEdgeIntervals, normalAttrs, pathType, sectorCache, stackHandler, texelsPerEdgeInterval, texture, vertexBufferdelegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, uniqueId, visibleFORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED| Constructor and Description |
|---|
KMLSurfacePolygonImpl(KMLTraversalContext tc,
KMLGroundOverlay overlay)
Create a surface polygon from a KML GroundOverlay.
|
KMLSurfacePolygonImpl(KMLTraversalContext tc,
KMLPlacemark placemark,
KMLAbstractGeometry geom)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRotation(DrawContext dc)
Apply a rotation to the corner points of the overlay.
|
protected PickedObject |
createPickedObject(DrawContext dc,
Color pickColor)
Create a
PickedObject for this surface object. |
protected ShapeAttributes |
getInitialAttributes(String attrType) |
protected ShapeAttributes |
makeAttributesCurrent(String attrType)
Determine and set the
Path highlight attributes from the KML Feature fields. |
void |
onMessage(Message message)
Empty implementation of MessageListener.
|
void |
preRender(KMLTraversalContext tc,
DrawContext dc)
Pre-render this element.
|
void |
render(KMLTraversalContext tc,
DrawContext dc)
Render this element.
|
addInnerBoundary, applyInteriorState, assembleContours, clearCaches, clipWithDateline, clipWithPole, closeContour, createGeometry, doDrawGeographic, doGetRestorableState, doMoveTo, doMoveTo, doRestoreState, exportAsKML, getBoundaries, getLocations, getLocations, getOuterBoundary, getReferencePosition, getTextureCoords, getTextureImageSource, handleUnsuccessfulInteriorTessellation, legacyRestoreState, setLocations, setOuterBoundary, setTextureImageSource, subdivideContour, subdivideEdge, tessellateContours, uvWeightedAverageaddIntermediateLocations, applyInteriorTextureState, applyModelviewTransform, applyOutlineState, beginDrawing, canContainPole, combine, combineBounds, combineContours, computeEdgeIntervalsPerDegree, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometry, createGeometryKey, cutAlongDateLine, determineActiveAttributes, determineActiveGeometry, doCombineContour, doCombineContours, doDrag, doTessellateInterior, drag, drawGeographic, drawInterior, drawLineStrip, drawOutline, endDrawing, export, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getStateKey, getTexelsPerEdgeInterval, getWidth, isDragEnabled, isExportFormatSupported, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, moveTo, onShapeChanged, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setDragEnabled, setHighlightAttributes, setHighlighted, setMinAndMaxEdgeIntervals, setPathType, setTexelsPerEdgeInterval, setupAreaMeasurer, tessellateInterior, tessellateInteriorVerticesbuildPickRepresentation, computeExtent, computeExtent, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getExtent, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedRenderable, nextUniqueId, pick, pickBatched, pickOrderedRenderable, preRender, render, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTimepropertyChangeaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexport, isExportFormatSupportedgetDelegateOwner, getDistanceFromEye, getExtent, isEnableBatchPicking, isVisible, pick, preRender, setDelegateOwner, setEnableBatchPicking, setVisiblerenderaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected boolean highlightAttributesResolved
protected boolean mustApplyRotation
protected boolean normalAttributesResolved
protected final KMLAbstractFeature parent
public KMLSurfacePolygonImpl(KMLTraversalContext tc, KMLGroundOverlay overlay)
tc - the current KMLTraversalContext.overlay - the KMLGroundOverlay to render as a polygon.NullPointerException - if the geometry is null.IllegalArgumentException - if the parent placemark or the traversal context is null.public KMLSurfacePolygonImpl(KMLTraversalContext tc, KMLPlacemark placemark, KMLAbstractGeometry geom)
tc - the current KMLTraversalContext.placemark - the Placemark element containing the LineString.geom - the KMLPolygon geometry.NullPointerException - if the geometry is null.IllegalArgumentException - if the parent placemark or the traversal context is null.protected void applyRotation(DrawContext dc)
dc - Current draw context.protected PickedObject createPickedObject(DrawContext dc, Color pickColor)
PickedObject for this surface object. The PickedObject created by this
method will be added to the pick list to represent the current surface object.createPickedObject in class AbstractSurfaceObjectdc - Active draw context.pickColor - Unique color for this PickedObject.protected ShapeAttributes getInitialAttributes(String attrType)
protected ShapeAttributes makeAttributesCurrent(String attrType)
Path highlight attributes from the KML Feature fields.attrType - the type of attributes, either KMLConstants.NORMAL or KMLConstants.HIGHLIGHT.public void onMessage(Message message)
WWObjectImplonMessage in interface MessageListeneronMessage in class WWObjectImplmessage - The message that was received.public void preRender(KMLTraversalContext tc, DrawContext dc)
KMLRenderablepreRender in interface KMLRenderabletc - the current KML traversal context.dc - the current draw context.public void render(KMLTraversalContext tc, DrawContext dc)
KMLRenderablerender in interface KMLRenderabletc - the current KML traversal context.dc - the current draw context.