gov.nasa.worldwind.examples.util
Class SectorSelector.RegionShape
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.AbstractSurfaceObject
gov.nasa.worldwind.render.AbstractSurfaceShape
gov.nasa.worldwind.render.SurfaceSector
gov.nasa.worldwind.examples.util.SectorSelector.RegionShape
- All Implemented Interfaces:
- AVList, Exportable, ExtentHolder, MeasurableArea, MeasurableLength, Movable, Highlightable, OrderedRenderable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable
- Enclosing class:
- SectorSelector
protected static class SectorSelector.RegionShape
- extends SurfaceSector
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape |
activeAttrs, activeGeometry, 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, geometryCache, highlightAttrs, highlighted, maxEdgeIntervals, minEdgeIntervals, normalAttrs, pathType, sectorCache, stackHandler, texelsPerEdgeInterval, texture, vertexBuffer |
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject |
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, pickTiles, uniqueId, visible |
Methods inherited from class gov.nasa.worldwind.render.SurfaceSector |
createGeometry, doGetRestorableState, doMoveTo, doRestoreState, export, exportAsKML, getLocations, getReferencePosition, getSector, isExportFormatSupported, legacyRestoreState |
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape |
addIntermediateLocations, applyInteriorState, applyInteriorTextureState, applyModelviewTransform, applyOutlineState, beginDrawing, clearCaches, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, createActiveAttributes, createGeometryKey, determineActiveAttributes, determineActiveGeometry, doDrawGeographic, doTessellateInterior, drawGeographic, drawInterior, drawOutline, endDrawing, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getStateKey, getTexelsPerEdgeInterval, getWidth, handleUnsuccessfulInteriorTessellation, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, onShapeChanged, pathTypeFromString, restoreState, setAttributes, setHighlightAttributes, setHighlighted, setMinAndMaxEdgeIntervals, setPathType, setTexelsPerEdgeInterval, setupAreaMeasurer, tessellateInterior, tessellateInteriorVertices |
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject |
buildPickRepresentation, computeExtent, computeExtent, createPickedObject, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getExtent, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedRenderable, nextUniqueId, pick, pickBatched, pickOrderedRenderable, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime |
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 |
SectorSelector.RegionShape
protected SectorSelector.RegionShape(Sector sector)
clear
protected void clear()
doPreRender
protected void doPreRender(DrawContext dc)
doPreRenderBorder
protected void doPreRenderBorder(DrawContext dc)
doPreRenderInterior
protected void doPreRenderInterior(DrawContext dc)
doRender
protected void doRender(DrawContext dc)
doRenderBorder
protected void doRenderBorder(DrawContext dc)
doRenderInterior
protected void doRenderInterior(DrawContext dc)
getBorder
protected SurfaceSector getBorder()
getBorderColor
public Color getBorderColor()
getBorderOpacity
public double getBorderOpacity()
getBorderWidth
public double getBorderWidth()
getEndPosition
protected Position getEndPosition()
getInteriorColor
public Color getInteriorColor()
getInteriorOpacity
public double getInteriorOpacity()
getStartPosition
protected Position getStartPosition()
hasSelection
protected boolean hasSelection()
isResizeable
protected boolean isResizeable()
preRender
public void preRender(DrawContext dc)
- Description copied from class:
AbstractSurfaceObject
- Causes the surface object to prepare a representation of itself which can be drawn on the surface terrain, using
the provided draw context.
- Specified by:
preRender
in interface PreRenderable
- Specified by:
preRender
in interface SurfaceObject
- Overrides:
preRender
in class AbstractSurfaceObject
- Parameters:
dc
- the current draw context.
render
public void render(DrawContext dc)
- Description copied from class:
AbstractSurfaceObject
- Causes the surface object to render a representation of itself on the surface terrain, using the provided draw
context.
- Specified by:
render
in interface Renderable
- Specified by:
render
in interface SurfaceObject
- Overrides:
render
in class AbstractSurfaceObject
- Parameters:
dc
- the current draw context.- See Also:
DrawContext
setBorder
protected void setBorder(SurfaceSector shape)
setBorderColor
public void setBorderColor(Color color)
setBorderOpacity
public void setBorderOpacity(double opacity)
setBorderWidth
public void setBorderWidth(double width)
setEndPosition
protected void setEndPosition(Position endPosition)
setInteriorColor
public void setInteriorColor(Color color)
setInteriorOpacity
public void setInteriorOpacity(double opacity)
setResizeable
protected void setResizeable(boolean resizeable)
setSector
public void setSector(Sector sector)
- Overrides:
setSector
in class SurfaceSector
setStartPosition
protected void setStartPosition(Position startPosition)