NASA World Wind

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

java.lang.Object
  extended by gov.nasa.worldwind.render.AbstractSurfaceObject
      extended by gov.nasa.worldwind.render.AbstractSurfaceShape
          extended by gov.nasa.worldwind.render.SurfaceConcaveShape
              extended by gov.nasa.worldwind.render.SurfaceSector
                  extended by gov.nasa.worldwind.examples.util.SectorSelector.RegionShape
All Implemented Interfaces:
MeasurableArea, MeasurableLength, Movable, 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.SurfaceConcaveShape
SurfaceConcaveShape.ImmediateDrawTessellatorCallback
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
AbstractSurfaceShape.CacheEntry<T>
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceSector
sector, SECTOR_DEFAULT_PATH_TYPE
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceConcaveShape
glu, tess
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
areaMeasurer, areaMeasurerLastModifiedTime, DEFAULT_CACHE_CAPACITY, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, drawLocationCache, maxEdgeIntervals, minEdgeIntervals, pathType, renderer, sectorCache, showBoundingSectors, texelsPerEdgeInterval, vertices
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
lastModifiedTime, visible
 
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)
           
 void render(DrawContext dc)
          Causes this Renderable to render itself using the DrawContext provided.
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
computeDrawLocations, computeLocations, doGetRestorableState, doMoveTo, doRestoreState, getReferencePosition, getSector, legacyRestoreState
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceConcaveShape
beginTessellation, doRenderInteriorToRegion, doRenderOutlineToRegion, drawArraysAsConcavePolygon, drawArraysAsConvexPolygon, endTessellation, getGLU, getGLUTessellator, getTessellatorCallback
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
assembleShapeVertices, beginRenderToRegion, bindShapeData, computeEdgeIntervalsPerDegree, doGetSectors, doRenderBoundingSectors, doRenderToRegion, endRenderToRegion, getArea, getArea, getAttributes, getDrawLocations, getDrawLocations, getHeight, getLength, getLocations, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRenderer, getRestorableState, getSectors, getSurfaceShapeSupport, getTexelsPerEdgeInterval, getWidth, isShowBoundingSectors, move, moveTo, onShapeChanged, pathTypeFromString, renderBoundingSectors, renderInteriorToRegion, renderOutlineToRegion, restoreState, setAttributes, setMinAndMaxEdgeIntervals, setPathType, setShowBoundingSectors, setTexelsPerEdgeInterval, setupAreaMeasurer
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
getLastModifiedTime, isVisible, renderToRegion, setVisible, updateModifiedTime
 
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
getLastModifiedTime, isVisible, renderToRegion, setVisible
 

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)
Specified by:
preRender in interface PreRenderable
Overrides:
preRender in class AbstractSurfaceShape

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the DrawContext provided. The DrawContext provides the elevation model, openGl instance, globe and other information required for drawing. It is recommended that the DrawContext is non-null as most implementations do not support null DrawContexts.

Specified by:
render in interface Renderable
Overrides:
render in class AbstractSurfaceShape
Parameters:
dc - the DrawContext to be used
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