NASA World Wind

gov.nasa.worldwind.render
Class SurfaceSector

java.lang.Object
  extended by gov.nasa.worldwind.render.AbstractSurfaceObject
      extended by gov.nasa.worldwind.render.AbstractSurfaceShape
          extended by gov.nasa.worldwind.render.SurfaceConvexShape
              extended by gov.nasa.worldwind.render.SurfaceSector
All Implemented Interfaces:
MeasurableArea, MeasurableLength, Movable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable
Direct Known Subclasses:
SectorSelector.RegionShape

public class SurfaceSector
extends SurfaceConvexShape


Field Summary
protected  Sector sector
           
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
areaMeasurer, areaMeasurerLastModifiedTime, drawLocations, drawLocationsLastModifiedTime, edgeIntervalsPerDegree, pathType, renderer
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
lastModifiedTime, visible
 
Constructor Summary
SurfaceSector()
           
SurfaceSector(Sector sector)
           
SurfaceSector(ShapeAttributes attributes)
           
SurfaceSector(ShapeAttributes attributes, Sector sector)
           
 
Method Summary
protected  void computeLocations(Globe globe, List<LatLon> locations)
           
protected  void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
           
protected  void doMoveTo(Position oldReferencePosition, Position newReferencePosition)
           
protected  void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
           
 Position getReferencePosition()
           
 Sector getSector()
           
protected  void legacyRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
          Restores state values from previous versions of the SurfaceShape state XML.
 void setSector(Sector sector)
           
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceConvexShape
doRenderToRegion
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
getArea, getArea, getAttributes, getDrawLocations, getEdgeIntervalsPerDegree, getHeight, getLength, getLocations, getPathType, getPerimeter, getRenderer, getRestorableState, getSectors, getSurfaceShapeSupport, getWidth, move, moveTo, onShapeChanged, pathTypeFromString, preRender, render, restoreState, setAttributes, setEdgeIntervalsPerDegree, setPathType, 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
 

Field Detail

sector

protected Sector sector
Constructor Detail

SurfaceSector

public SurfaceSector()

SurfaceSector

public SurfaceSector(Sector sector)

SurfaceSector

public SurfaceSector(ShapeAttributes attributes)

SurfaceSector

public SurfaceSector(ShapeAttributes attributes,
                     Sector sector)
Method Detail

computeLocations

protected void computeLocations(Globe globe,
                                List<LatLon> locations)
Specified by:
computeLocations in class AbstractSurfaceShape

doGetRestorableState

protected void doGetRestorableState(RestorableSupport rs,
                                    RestorableSupport.StateObject context)
Overrides:
doGetRestorableState in class AbstractSurfaceShape

doMoveTo

protected void doMoveTo(Position oldReferencePosition,
                        Position newReferencePosition)
Specified by:
doMoveTo in class AbstractSurfaceShape

doRestoreState

protected void doRestoreState(RestorableSupport rs,
                              RestorableSupport.StateObject context)
Overrides:
doRestoreState in class AbstractSurfaceShape

getReferencePosition

public Position getReferencePosition()
Specified by:
getReferencePosition in interface Movable
Specified by:
getReferencePosition in class AbstractSurfaceShape

getSector

public Sector getSector()

legacyRestoreState

protected void legacyRestoreState(RestorableSupport rs,
                                  RestorableSupport.StateObject context)
Description copied from class: AbstractSurfaceShape
Restores state values from previous versions of the SurfaceShape state XML. These values are stored or named differently than the current implementation. Those values which have not changed are ignored here, and will restored in {# doRestoreState }.

Overrides:
legacyRestoreState in class AbstractSurfaceShape
Parameters:
rs - RestorableSupport object which contains the state value properties.
context - active context in the RestorableSupport to read state from.

setSector

public void setSector(Sector sector)

NASA World Wind