public class KMLExtrudedPolygonImpl extends ExtrudedPolygon implements KMLRenderable
ExtrudedPolygon.ExtrudedBoundaryInfo, ExtrudedPolygon.ShapeData
AbstractShape.AbstractShapeData
Modifier and Type | Field and Description |
---|---|
protected boolean |
highlightAttributesResolved |
protected boolean |
normalAttributesResolved |
protected KMLAbstractFeature |
parent |
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
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
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
Constructor and Description |
---|
KMLExtrudedPolygonImpl(KMLTraversalContext tc,
KMLPlacemark placemark,
KMLAbstractGeometry geom)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
protected PickedObject |
createPickedObject(int colorCode)
Creates a
PickedObject for this shape and the specified unique pick color code. |
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, 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
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
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
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected boolean highlightAttributesResolved
protected boolean normalAttributesResolved
protected final KMLAbstractFeature parent
public KMLExtrudedPolygonImpl(KMLTraversalContext tc, KMLPlacemark placemark, KMLAbstractGeometry geom)
tc
- the current KMLTraversalContext
.placemark
- the Placemark element containing the LineString.geom
- the KMLPolygon
geometry.NullPointerException
- if the geomtry is null.IllegalArgumentException
- if the parent placemark or the traversal context is null.protected PickedObject createPickedObject(int colorCode)
PickedObject
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.createPickedObject
in class AbstractShape
colorCode
- the unique color code for this shape.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)
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.