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, MessageListener, Exportable, ExtentHolder, Movable, KMLRenderable, GeographicExtent, Highlightable, OrderedRenderable, Renderable, Restorable, WWObject, PropertyChangeListener, EventListener
public class KMLExtrudedPolygonImpl
- extends ExtrudedPolygon
- implements KMLRenderable
Fields inherited from class gov.nasa.worldwind.render.ExtrudedPolygon |
activeSideAttributes, 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, enableBatchPicking, enableBatchRendering, enableDepthOffset, highlightAttrs, highlighted, maxExpiryTime, minExpiryTime, normalAttrs, outlinePickWidth, outlineShapeRenderer, pickLayer, pickSupport, referencePosition, sector, shapeDataCache, visible |
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, createTessllationGeometry, createVertices, determineActiveAttributes, doDrawInterior, doDrawOutline, doExportAsKML, doMakeOrderedRenderable, drawCapInterior, drawCapOutline, drawInterior, drawOutline, drawSideInteriors, drawSideOutline, exportBoundaryAsLinearRing, fillBoundary, fillImageList, fillSideNormalBuffer, fillSideTexCoordBuffer, fillSideVertexBuffer, fillVBO, generateCapInteriorIndices, getActiveCapAttributes, getActiveSideAttributes, 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, mustApplyLighting, mustApplySideTextures, mustApplyTexture, mustDrawInterior, mustDrawOutline, mustRegenerateGeometry, outerBoundary, render, reset, setCapAttributes, setCapHighlightAttributes, setCapImageSource, setEnableCap, setEnableSides, setHeight, setOuterBoundary, setOuterBoundary, setOuterBoundary, setReferenceLocation, setSideAttributes, setSideHighlightAttributes, tessellatePolygon, writeKMLBoundaries |
Methods inherited from class gov.nasa.worldwind.render.AbstractShape |
addOrderedRenderable, checkViewDistanceExpiration, clearCachedVbos, computeExtentFromPositions, computePoint, countTriangleVertices, doDrawOrderedRenderable, doGetRestorableState, doRestoreState, drawBatched, drawOrderedRenderable, endDrawing, export, exportAsKML, getActiveAttributes, getAltitudeMode, getAttributes, getCurrentData, getDelegateOwner, getDistanceFromEye, getExtent, getGeometryRegenerationInterval, getHighlightAttributes, getOutlinePickWidth, getRestorableState, getVboIds, intersectsFrustum, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isExportFormatSupported, isHighlighted, isVisible, makeOrderedRenderable, makeTexture, move, mustApplyLighting, mustCreateNormals, mustCreateNormals, pick, prepareToDrawInterior, prepareToDrawOutline, restoreState, setAltitudeMode, setAttributes, setDelegateOwner, setEnableBatchPicking, setEnableBatchRendering, setEnableDepthOffset, setGeometryRegenerationInterval, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setReferencePosition, setVisible, shouldUseVBOs |
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, finalize, 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 |
highlightAttributesResolved
protected boolean highlightAttributesResolved
normalAttributesResolved
protected boolean normalAttributesResolved
parent
protected final KMLAbstractFeature parent
KMLExtrudedPolygonImpl
public KMLExtrudedPolygonImpl(KMLTraversalContext tc,
KMLPlacemark placemark,
KMLAbstractGeometry geom)
- Create an instance.
- Parameters:
tc
- the current KMLTraversalContext
.placemark
- the Placemark element containing the LineString.geom
- the KMLPolygon
geometry.
- Throws:
NullPointerException
- if the geomtry is null.
IllegalArgumentException
- if the parent placemark or the traversal context is null.
createPickedObject
protected PickedObject createPickedObject(DrawContext dc,
Color pickColor)
- Create a
PickedObject
for this shape. The PickedObject returned by this method
will be added to the pick list to represent the current shape.
- Overrides:
createPickedObject
in class AbstractShape
- Parameters:
dc
- the current draw context.pickColor
- unique color for this shape.
- Returns:
- A new picked object.
getInitialAttributes
protected ShapeAttributes getInitialAttributes(String attrType)
makeAttributesCurrent
protected ShapeAttributes makeAttributesCurrent(String attrType)
- Determine and set the
Path
highlight attributes from the KML Feature fields.
- Parameters:
attrType
- the type of attributes, either KMLConstants.NORMAL
or KMLConstants.HIGHLIGHT
.
- Returns:
- the new attributes.
preRender
public void preRender(KMLTraversalContext tc,
DrawContext dc)
- Description copied from interface:
KMLRenderable
- Pre-render this element.
- Specified by:
preRender
in interface KMLRenderable
- 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 interface KMLRenderable
- Parameters:
tc
- the current KML traversal context.dc
- the current draw context.