public class KMLSurfacePolygonImpl extends SurfacePolygon implements KMLRenderable
SurfacePolygon.ShapeData, SurfacePolygon.Vertex
AbstractSurfaceShape.GeometryKey, AbstractSurfaceShape.SurfaceShapeStateKey
AbstractSurfaceObject.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, tessCallback
activeAttrs, 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, vertexBuffer
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, uniqueId, visible
FORMAT_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,
java.awt.Color pickColor)
Create a
PickedObject for this surface object. |
protected ShapeAttributes |
getInitialAttributes(java.lang.String attrType) |
protected ShapeAttributes |
makeAttributesCurrent(java.lang.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, uvWeightedAverage
addIntermediateLocations, 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, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setDragEnabled, setHighlightAttributes, setHighlighted, setMinAndMaxEdgeIntervals, setPathType, setTexelsPerEdgeInterval, setupAreaMeasurer, tessellateInterior, tessellateInteriorVertices
buildPickRepresentation, computeExtent, computeExtent, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getExtent, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedRenderable, nextUniqueId, onShapeChanged, pick, pickBatched, pickOrderedRenderable, preRender, render, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime
propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
export, isExportFormatSupported
getDelegateOwner, getDistanceFromEye, getExtent, isEnableBatchPicking, isVisible, pick, preRender, setDelegateOwner, setEnableBatchPicking, setVisible
render
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected 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.java.lang.NullPointerException
- if the geometry is null.java.lang.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.java.lang.NullPointerException
- if the geometry is null.java.lang.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, java.awt.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 AbstractSurfaceObject
dc
- Active draw context.pickColor
- Unique color for this PickedObject.protected ShapeAttributes getInitialAttributes(java.lang.String attrType)
protected ShapeAttributes makeAttributesCurrent(java.lang.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)
WWObjectImpl
onMessage
in interface MessageListener
onMessage
in class WWObjectImpl
message
- The message that was received.public void preRender(KMLTraversalContext tc, DrawContext dc)
KMLRenderable
preRender
in interface KMLRenderable
tc
- the current KML traversal context.dc
- the current draw context.public void render(KMLTraversalContext tc, DrawContext dc)
KMLRenderable
render
in interface KMLRenderable
tc
- the current KML traversal context.dc
- the current draw context.