Class SectorSelector.RegionShape
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.render.AbstractSurfaceObject
-
- gov.nasa.worldwind.render.AbstractSurfaceShape
-
- gov.nasa.worldwind.render.SurfaceSector
-
- gov.nasa.worldwindx.examples.util.SectorSelector.RegionShape
-
- All Implemented Interfaces:
AVList,Draggable,MessageListener,Exportable,ExtentHolder,MeasurableArea,MeasurableLength,Movable,Movable2,Attributable,Highlightable,OrderedRenderable,PreRenderable,Renderable,SurfaceObject,SurfaceRenderable,SurfaceShape,Restorable,Combinable,WWObject,java.beans.PropertyChangeListener,java.util.EventListener
- Enclosing class:
- SectorSelector
protected static class SectorSelector.RegionShape extends SurfaceSector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
AbstractSurfaceShape.GeometryKey, AbstractSurfaceShape.SurfaceShapeStateKey
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
AbstractSurfaceObject.CacheEntry, AbstractSurfaceObject.SurfaceObjectStateKey
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.render.SurfaceSector
sector
-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
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
-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, uniqueId, visible
-
Fields inherited from interface gov.nasa.worldwind.Exportable
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRegionShape(Sector sector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear()protected voiddoPreRender(DrawContext dc)protected voiddoPreRenderBorder(DrawContext dc)protected voiddoPreRenderInterior(DrawContext dc)protected voiddoRender(DrawContext dc)protected voiddoRenderBorder(DrawContext dc)protected voiddoRenderInterior(DrawContext dc)protected SurfaceSectorgetBorder()java.awt.ColorgetBorderColor()doublegetBorderOpacity()doublegetBorderWidth()protected PositiongetEndPosition()java.awt.ColorgetInteriorColor()doublegetInteriorOpacity()protected PositiongetStartPosition()protected booleanhasSelection()protected booleanisResizeable()voidpreRender(DrawContext dc)Causes the surface object to prepare a representation of itself which can be drawn on the surface terrain, using the provided draw context.voidrender(DrawContext dc)Causes thisRenderableto render itself using the provided draw context.protected voidsetBorder(SurfaceSector shape)voidsetBorderColor(java.awt.Color color)voidsetBorderOpacity(double opacity)voidsetBorderWidth(double width)protected voidsetEndPosition(Position endPosition)voidsetInteriorColor(java.awt.Color color)voidsetInteriorOpacity(double opacity)protected voidsetResizeable(boolean resizeable)voidsetSector(Sector sector)protected voidsetStartPosition(Position startPosition)-
Methods inherited from class gov.nasa.worldwind.render.SurfaceSector
createGeometry, doGetRestorableState, doMoveTo, doMoveTo, doRestoreState, exportAsKML, getLocations, getReferencePosition, getSector, legacyRestoreState
-
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
addIntermediateLocations, applyInteriorState, applyInteriorTextureState, applyModelviewTransform, applyOutlineState, beginDrawing, canContainPole, clearCaches, combine, combineBounds, combineContours, computeEdgeIntervalsPerDegree, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometry, createGeometryKey, cutAlongDateLine, determineActiveAttributes, determineActiveGeometry, doCombineContour, doCombineContours, doDrag, doDrawGeographic, 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, handleUnsuccessfulInteriorTessellation, isDragEnabled, isExportFormatSupported, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, moveTo, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setDragEnabled, 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, onShapeChanged, pick, pickBatched, pickOrderedRenderable, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, 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
-
Methods inherited from interface gov.nasa.worldwind.Exportable
export, isExportFormatSupported
-
Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isEnableBatchPicking, isVisible, pick, setDelegateOwner, setEnableBatchPicking, setVisible
-
-
-
-
Constructor Detail
-
RegionShape
protected RegionShape(Sector sector)
-
-
Method Detail
-
getInteriorColor
public java.awt.Color getInteriorColor()
-
setInteriorColor
public void setInteriorColor(java.awt.Color color)
-
getBorderColor
public java.awt.Color getBorderColor()
-
setBorderColor
public void setBorderColor(java.awt.Color color)
-
getInteriorOpacity
public double getInteriorOpacity()
-
setInteriorOpacity
public void setInteriorOpacity(double opacity)
-
getBorderOpacity
public double getBorderOpacity()
-
setBorderOpacity
public void setBorderOpacity(double opacity)
-
getBorderWidth
public double getBorderWidth()
-
setBorderWidth
public void setBorderWidth(double width)
-
setSector
public void setSector(Sector sector)
- Overrides:
setSectorin classSurfaceSector
-
isResizeable
protected boolean isResizeable()
-
setResizeable
protected void setResizeable(boolean resizeable)
-
getStartPosition
protected Position getStartPosition()
-
setStartPosition
protected void setStartPosition(Position startPosition)
-
getEndPosition
protected Position getEndPosition()
-
setEndPosition
protected void setEndPosition(Position endPosition)
-
getBorder
protected SurfaceSector getBorder()
-
setBorder
protected void setBorder(SurfaceSector shape)
-
hasSelection
protected boolean hasSelection()
-
clear
protected void clear()
-
preRender
public void preRender(DrawContext dc)
Description copied from class:AbstractSurfaceObjectCauses the surface object to prepare a representation of itself which can be drawn on the surface terrain, using the provided draw context.- Specified by:
preRenderin interfacePreRenderable- Specified by:
preRenderin interfaceSurfaceObject- Overrides:
preRenderin classAbstractSurfaceObject- Parameters:
dc- the current draw context.
-
render
public void render(DrawContext dc)
Description copied from class:AbstractSurfaceObjectCauses thisRenderableto render itself using the provided draw context.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classAbstractSurfaceObject- Parameters:
dc- theDrawContextto be used- See Also:
DrawContext
-
doPreRender
protected void doPreRender(DrawContext dc)
-
doPreRenderInterior
protected void doPreRenderInterior(DrawContext dc)
-
doPreRenderBorder
protected void doPreRenderBorder(DrawContext dc)
-
doRender
protected void doRender(DrawContext dc)
-
doRenderInterior
protected void doRenderInterior(DrawContext dc)
-
doRenderBorder
protected void doRenderBorder(DrawContext dc)
-
-