Package gov.nasa.worldwind.ogc.kml.impl
Class KMLExtrudedPolygonImpl
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.render.AbstractShape
-
- gov.nasa.worldwind.render.ExtrudedPolygon
-
- gov.nasa.worldwind.ogc.kml.impl.KMLExtrudedPolygonImpl
-
- 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 KMLExtrudedPolygonImpl extends ExtrudedPolygon implements KMLRenderable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.ExtrudedPolygon
ExtrudedPolygon.ExtrudedBoundaryInfo, ExtrudedPolygon.ShapeData
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractShape
AbstractShape.AbstractShapeData
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
highlightAttributesResolved
protected boolean
normalAttributesResolved
protected KMLAbstractFeature
parent
-
Fields inherited from class gov.nasa.worldwind.render.ExtrudedPolygon
activeSideAttributes, baseDepth, boundaries, capEdgeIndexBuffers, capTexture, capTextureCoords, DEFAULT_ALTITUDE_MODE, DEFAULT_SIDES_INTERIOR_MATERIAL, defaultSideAttributes, enableCap, enableSides, height, previousIntersectionGlobeStateKey, previousIntersectionShapeData, previousIntersectionTerrain, sideAttributes, sideEdgeIndexBuffers, sideFillIndexBuffers, sideHighlightAttributes, sideTextures, totalFaceCount, totalNumLocations, VBO_THRESHOLD
-
Fields inherited from class gov.nasa.worldwind.render.AbstractShape
activeAttributes, altitudeMode, BEogsh, currentData, 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 KMLExtrudedPolygonImpl(KMLTraversalContext tc, KMLPlacemark placemark, KMLAbstractGeometry geom)
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PickedObject
createPickedObject(int colorCode)
Creates aPickedObject
for this shape and the specified unique pick color code.protected ShapeAttributes
getInitialAttributes(java.lang.String attrType)
protected ShapeAttributes
makeAttributesCurrent(java.lang.String attrType)
Determine and set thePath
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.-
Methods inherited from class gov.nasa.worldwind.render.ExtrudedPolygon
addInnerBoundary, addInnerBoundary, beginDrawing, computeBoundaryVertices, computeCapNormals, computeExtent, computeEyeDistance, computePolygonNormal, computeReferencePoint, countLocations, createCacheEntry, createCapGeometry, createCapNormals, createFullGeometry, createIntersectionGeometry, createMinimalGeometry, createSideGeometry, createSideNormals, createSideTextureCoords, createSurfaceShape, createTessllationGeometry, createVertices, determineActiveAttributes, doDrawInterior, doDrawOutline, doExportAsKML, doMakeOrderedRenderable, drawCapInterior, drawCapOutline, drawInterior, drawOutline, drawSideInteriors, drawSideOutline, exportBoundaryAsLinearRing, fillBoundary, fillImageList, fillSideNormalBuffer, fillSideTexCoordBuffer, fillSideVertexBuffer, fillVBO, generateCapInteriorIndices, getActiveCapAttributes, getActiveSideAttributes, getBaseDepth, getBoundaries, getCapAttributes, getCapEdgeIndices, getCapHighlightAttributes, getCapImageSource, getCapTexture, getCurrent, getExtent, getHeight, getImageSources, getOuterBoundary, getReferenceLocation, getReferencePosition, getSector, getSideAttributes, getSideEdgeIndices, getSideHighlightAttributes, getSideIndices, getTextureCoords, hasSideTextures, initialize, intersect, intersectBoundarySides, intersectCap, isEnableCap, isEnableSides, isOrderedRenderableValid, isOuterBoundaryValid, isSameAsPreviousTerrain, isTerrainDependent, moveTo, mustApplySideTextures, mustApplyTexture, mustDrawInterior, mustDrawOutline, mustRegenerateGeometry, outerBoundary, render, reset, setBaseDepth, setCapAttributes, setCapHighlightAttributes, setCapImageSource, setEnableCap, setEnableSides, setHeight, setOuterBoundary, setOuterBoundary, setOuterBoundary, setReferenceLocation, setSideAttributes, setSideHighlightAttributes, setSurfacePolygonBoundaries, tessellatePolygon, writeKMLBoundaries
-
Methods inherited from class gov.nasa.worldwind.render.AbstractShape
addOrderedRenderable, checkViewDistanceExpiration, clearCachedVbos, computeExtentFromPositions, computePoint, computePoint, countTriangleVertices, doDrag, doDrawOrderedRenderable, doGetRestorableState, doRestoreState, drag, drawBatched, drawOrderedRenderable, endDrawing, export, exportAsKML, getActiveAttributes, getAltitudeMode, getAttributes, getCurrentData, getDelegateOwner, getDistanceFromEye, getExtent, getGeometryRegenerationInterval, getHighlightAttributes, getOutlinePickWidth, getReferencePoint, getRestorableState, getVboIds, intersectsFrustum, isDragEnabled, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isExportFormatSupported, isHighlighted, isViewDistanceExpiration, isVisible, makeOrderedRenderable, makeTexture, move, moveTo, mustApplyLighting, mustApplyLighting, mustCreateNormals, mustCreateNormals, pick, prepareToDrawInterior, prepareToDrawOutline, preRender, restoreState, setAltitudeMode, setAttributes, setDelegateOwner, setDragEnabled, setEnableBatchPicking, setEnableBatchRendering, setEnableDepthOffset, setGeometryRegenerationInterval, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setReferencePosition, setViewDistanceExpiration, setVisible, shouldUseVBOs, updateSurfaceShape
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
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
-
-
-
-
Field Detail
-
parent
protected final KMLAbstractFeature parent
-
highlightAttributesResolved
protected boolean highlightAttributesResolved
-
normalAttributesResolved
protected boolean normalAttributesResolved
-
-
Constructor Detail
-
KMLExtrudedPolygonImpl
public KMLExtrudedPolygonImpl(KMLTraversalContext tc, KMLPlacemark placemark, KMLAbstractGeometry geom)
Create an instance.- Parameters:
tc
- the currentKMLTraversalContext
.placemark
- the Placemark element containing the LineString.geom
- theKMLPolygon
geometry.- 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)
Description copied from interface:KMLRenderable
Pre-render this element.- Specified by:
preRender
in interfaceKMLRenderable
- Parameters:
tc
- the current KML traversal context.dc
- the current draw context.
-
render
public void render(KMLTraversalContext tc, DrawContext dc)
Description copied from interface:KMLRenderable
Render this element.- Specified by:
render
in interfaceKMLRenderable
- Parameters:
tc
- the current KML traversal context.dc
- the current draw context.
-
createPickedObject
protected PickedObject createPickedObject(int colorCode)
Creates aPickedObject
for this shape and the specified unique pick color code. The PickedObject returned by this method will be added to the pick list to represent the current shape.- Overrides:
createPickedObject
in classAbstractShape
- Parameters:
colorCode
- the unique color code for this shape.- Returns:
- a new picked object.
-
makeAttributesCurrent
protected ShapeAttributes makeAttributesCurrent(java.lang.String attrType)
Determine and set thePath
highlight attributes from the KML Feature fields.- Parameters:
attrType
- the type of attributes, eitherKMLConstants.NORMAL
orKMLConstants.HIGHLIGHT
.- Returns:
- the new attributes.
-
getInitialAttributes
protected ShapeAttributes getInitialAttributes(java.lang.String attrType)
-
onMessage
public void onMessage(Message message)
Description copied from class:WWObjectImpl
Empty implementation of MessageListener.- Specified by:
onMessage
in interfaceMessageListener
- Overrides:
onMessage
in classWWObjectImpl
- Parameters:
message
- The message that was received.
-
-