NASA World Wind

gov.nasa.worldwind.examples.util
Class SectorSelector.RegionShape

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.AbstractSurfaceObject
          extended by gov.nasa.worldwind.render.AbstractSurfaceShape
              extended by gov.nasa.worldwind.render.SurfaceSector
                  extended by 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


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, 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
 
Fields inherited from interface gov.nasa.worldwind.Exportable
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
 
Constructor Summary
protected SectorSelector.RegionShape(Sector sector)
           
 
Method Summary
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()
           
 Color getBorderColor()
           
 double getBorderOpacity()
           
 double getBorderWidth()
           
protected  Position getEndPosition()
           
 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 the surface object to render a representation of itself on the surface terrain, using the provided draw context.
protected  void setBorder(SurfaceSector shape)
           
 void setBorderColor(Color color)
           
 void setBorderOpacity(double opacity)
           
 void setBorderWidth(double width)
           
protected  void setEndPosition(Position endPosition)
           
 void setInteriorColor(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, 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.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isVisible, pick, setDelegateOwner, setVisible
 
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
 

Constructor Detail

SectorSelector.RegionShape

protected SectorSelector.RegionShape(Sector sector)
Method Detail

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)

NASA World Wind