NASA World Wind

gov.nasa.worldwind.layers.placename
Class PlaceNameLayer

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.layers.AbstractLayer
              extended by gov.nasa.worldwind.layers.placename.PlaceNameLayer
All Implemented Interfaces:
AVList, Disposable, Layer, NamedObject, Restorable, BulkRetrievable, WWObject, PropertyChangeListener, EventListener
Direct Known Subclasses:
EarthNASAPlaceNameLayer, NASAWFSPlaceNameLayer

public class PlaceNameLayer
extends AbstractLayer
implements BulkRetrievable


Field Summary
protected static LatLon GRID_144x288
           
protected static LatLon GRID_16x32
           
protected static LatLon GRID_1x1
           
protected static LatLon GRID_288x576
           
protected static LatLon GRID_36x72
           
protected static LatLon GRID_4x8
           
protected static LatLon GRID_72x144
           
protected static LatLon GRID_8x16
           
protected static double LEVEL_A
           
protected static double LEVEL_B
           
protected static double LEVEL_C
           
protected static double LEVEL_D
           
protected static double LEVEL_E
           
protected static double LEVEL_F
           
protected static double LEVEL_G
           
protected static double LEVEL_H
           
protected static double LEVEL_I
           
protected static double LEVEL_J
           
protected static double LEVEL_K
           
protected static double LEVEL_L
           
protected static double LEVEL_M
           
protected static double LEVEL_N
           
protected static double LEVEL_O
           
protected static double LEVEL_P
           
 
Fields inherited from class gov.nasa.worldwind.layers.AbstractLayer
screenCredit
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
PlaceNameLayer(PlaceNameServiceSet placeNameServiceSet)
           
 
Method Summary
protected  void doRender(DrawContext dc)
           
 long getEstimatedMissingDataSize(Sector sector, double resolution)
          Get the estimated size in byte of the missing data for the given Sector and resolution.
 PlaceNameServiceSet getPlaceNameServiceSet()
           
protected  Vec4 getReferencePoint()
           
 boolean isCullNames()
           
 BulkRetrievalThread makeLocal(Sector sector, double resolution)
          Start a new BulkRetrievalThread that will try to download all place name tiles for a given Sector and resolution.
 void setCullNames(boolean cullNames)
           
 
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
dispose, doPick, doPreRender, getExpiryTime, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, 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, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.NamedObject
getName
 
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 java.beans.PropertyChangeListener
propertyChange
 

Field Detail

GRID_144x288

protected static final LatLon GRID_144x288

GRID_16x32

protected static final LatLon GRID_16x32

GRID_1x1

protected static final LatLon GRID_1x1

GRID_288x576

protected static final LatLon GRID_288x576

GRID_36x72

protected static final LatLon GRID_36x72

GRID_4x8

protected static final LatLon GRID_4x8

GRID_72x144

protected static final LatLon GRID_72x144

GRID_8x16

protected static final LatLon GRID_8x16

LEVEL_A

protected static final double LEVEL_A
See Also:
Constant Field Values

LEVEL_B

protected static final double LEVEL_B
See Also:
Constant Field Values

LEVEL_C

protected static final double LEVEL_C
See Also:
Constant Field Values

LEVEL_D

protected static final double LEVEL_D
See Also:
Constant Field Values

LEVEL_E

protected static final double LEVEL_E
See Also:
Constant Field Values

LEVEL_F

protected static final double LEVEL_F
See Also:
Constant Field Values

LEVEL_G

protected static final double LEVEL_G
See Also:
Constant Field Values

LEVEL_H

protected static final double LEVEL_H
See Also:
Constant Field Values

LEVEL_I

protected static final double LEVEL_I
See Also:
Constant Field Values

LEVEL_J

protected static final double LEVEL_J
See Also:
Constant Field Values

LEVEL_K

protected static final double LEVEL_K
See Also:
Constant Field Values

LEVEL_L

protected static final double LEVEL_L
See Also:
Constant Field Values

LEVEL_M

protected static final double LEVEL_M
See Also:
Constant Field Values

LEVEL_N

protected static final double LEVEL_N
See Also:
Constant Field Values

LEVEL_O

protected static final double LEVEL_O
See Also:
Constant Field Values

LEVEL_P

protected static final double LEVEL_P
See Also:
Constant Field Values
Constructor Detail

PlaceNameLayer

public PlaceNameLayer(PlaceNameServiceSet placeNameServiceSet)
Parameters:
placeNameServiceSet - the set of PlaceNameService objects that PlaceNameLayer will render.
Throws:
IllegalArgumentException - if PlaceNameServiceSet is null
Method Detail

doRender

protected void doRender(DrawContext dc)
Specified by:
doRender in class AbstractLayer

getEstimatedMissingDataSize

public long getEstimatedMissingDataSize(Sector sector,
                                        double resolution)
Get the estimated size in byte of the missing data for the given Sector and resolution. Note that the target resolution must be provided in radian latitude per data sample - which is the resolution in meter divided by the globe radius.

Specified by:
getEstimatedMissingDataSize in interface BulkRetrievable
Parameters:
sector - the Sector to estimate.
resolution - the target resolution provided in radian latitude per texel.
Returns:
the estimated size in byte of the missing imagery.

getPlaceNameServiceSet

public final PlaceNameServiceSet getPlaceNameServiceSet()

getReferencePoint

protected Vec4 getReferencePoint()

isCullNames

public boolean isCullNames()

makeLocal

public BulkRetrievalThread makeLocal(Sector sector,
                                     double resolution)
Start a new BulkRetrievalThread that will try to download all place name tiles for a given Sector and resolution. Note that the target resolution is ignored right now.

Specified by:
makeLocal in interface BulkRetrievable
Parameters:
sector - the Sector to download tiles for.
resolution - the target resolution - ignored.
Returns:
the BulkRetrievalThread that executes the retrieval.

setCullNames

public void setCullNames(boolean cullNames)

NASA World Wind