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 protected
RegionShape(Sector sector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
protected void
doPreRender(DrawContext dc)
protected void
doPreRenderBorder(DrawContext dc)
protected void
doPreRenderInterior(DrawContext dc)
protected void
doRender(DrawContext dc)
protected void
doRenderBorder(DrawContext dc)
protected void
doRenderInterior(DrawContext dc)
protected SurfaceSector
getBorder()
java.awt.Color
getBorderColor()
double
getBorderOpacity()
double
getBorderWidth()
protected Position
getEndPosition()
java.awt.Color
getInteriorColor()
double
getInteriorOpacity()
protected Position
getStartPosition()
protected boolean
hasSelection()
protected boolean
isResizeable()
void
preRender(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.void
render(DrawContext dc)
Causes thisRenderable
to render itself using the provided draw context.protected void
setBorder(SurfaceSector shape)
void
setBorderColor(java.awt.Color color)
void
setBorderOpacity(double opacity)
void
setBorderWidth(double width)
protected void
setEndPosition(Position endPosition)
void
setInteriorColor(java.awt.Color color)
void
setInteriorOpacity(double opacity)
protected void
setResizeable(boolean resizeable)
void
setSector(Sector sector)
protected void
setStartPosition(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:
setSector
in 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: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 interfacePreRenderable
- Specified by:
preRender
in interfaceSurfaceObject
- Overrides:
preRender
in classAbstractSurfaceObject
- Parameters:
dc
- the current draw context.
-
render
public void render(DrawContext dc)
Description copied from class:AbstractSurfaceObject
Causes thisRenderable
to render itself using the provided draw context.- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classAbstractSurfaceObject
- Parameters:
dc
- theDrawContext
to 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)
-
-