public class QuadLoaderBase extends java.lang.Object implements QuadSamplingLayer.ClientInterface
Modifier and Type | Class and Description |
---|---|
static class |
QuadLoaderBase.Mode |
Modifier and Type | Field and Description |
---|---|
protected LoaderInterpreter |
loadInterp |
protected java.lang.ref.WeakReference<QuadSamplingLayer> |
samplingLayer |
protected TileFetcher |
tileFetcher |
Modifier | Constructor and Description |
---|---|
protected |
QuadLoaderBase() |
protected |
QuadLoaderBase(BaseController inControl) |
protected |
QuadLoaderBase(BaseController inControl,
SamplingParams params,
int numFrames,
QuadLoaderBase.Mode mode) |
Modifier and Type | Method and Description |
---|---|
Mbr |
boundsForTile(TileID tileID)
Calculate the bounding box for a single tile in the local coordinate system.
|
protected void |
boundsForTileNative(int x,
int y,
int level,
Point2d ll,
Point2d ur) |
void |
changeLoaderInterpreter(LoaderInterpreter newInterp)
Change the interpreter for the data coming back.
|
protected void |
cleanupNative(ChangeSet changes) |
void |
clearFrameAsset(com.mousebird.maply.QIFFrameAsset frameAsset) |
Point3d |
displayCenterForTile(TileID tileID)
Return the center of the tile in display coordinates.
|
protected void |
displayCenterForTileNative(int x,
int y,
int level,
Point3d pt) |
void |
finalize() |
Mbr |
geoBoundsForTile(TileID tileID)
Calculate the bounding box for a single tile in geographic.
|
protected void |
geoBoundsForTileNative(int x,
int y,
int level,
Point2d ll,
Point2d ur) |
BaseController |
getController()
Controller associated with this quad loader.
|
boolean |
getFlipY()
Control how tiles are indexed, either from the lower left or the upper left.
|
long |
getFrameID(int frame)
Each frame has a 64 bit frame ID (other than just 0 through whatever)
|
int |
getGeneration()
When you refresh the loader, we get a new generation.
|
protected LoaderReturn |
makeLoaderReturn()
The subclasses fill this in with the loaderReturn that they need.
|
protected void |
mergeLoaderReturn(LoaderReturn loadReturn,
ChangeSet changes) |
void |
processBatchOps(com.mousebird.maply.QIFBatchOps batchOps) |
void |
reload()
Forces a reload of all currently loaded tiles.
|
protected void |
reloadNative(ChangeSet changes) |
void |
samplingLayerConnect(QuadSamplingLayer layer,
ChangeSet changes) |
void |
samplingLayerDisconnect(QuadSamplingLayer layer,
ChangeSet changes) |
void |
setDebugMode(boolean debugMode)
Set for a lot of debugging output.
|
void |
setFlipY(boolean newVal)
Control how tiles are indexed, either from the lower left or the upper left.
|
void |
setLoaderInterpreter(LoaderInterpreter newInterp)
Set the interpreter for the data coming back.
|
void |
setTileFetcher(TileFetcher newFetcher)
Use a specific tile fetcher rather than the one shared by everyone else.
|
void |
shutdown()
Turn off the loader and shut things down.
|
void |
startTileFetch(com.mousebird.maply.QIFBatchOps batchOps,
com.mousebird.maply.QIFFrameAsset[] inFrameAssets,
int tileX,
int tileY,
int tileLevel,
int priority,
double importance) |
protected java.lang.ref.WeakReference<QuadSamplingLayer> samplingLayer
protected TileFetcher tileFetcher
protected LoaderInterpreter loadInterp
protected QuadLoaderBase()
protected QuadLoaderBase(BaseController inControl)
protected QuadLoaderBase(BaseController inControl, SamplingParams params, int numFrames, QuadLoaderBase.Mode mode)
public void setFlipY(boolean newVal)
public boolean getFlipY()
public void setDebugMode(boolean debugMode)
public BaseController getController()
public Mbr geoBoundsForTile(TileID tileID)
tileID
- The ID for the tile we're interested in.protected void geoBoundsForTileNative(int x, int y, int level, Point2d ll, Point2d ur)
public Mbr boundsForTile(TileID tileID)
tileID
- The ID for the tile we're interested in.protected void boundsForTileNative(int x, int y, int level, Point2d ll, Point2d ur)
public Point3d displayCenterForTile(TileID tileID)
tileID
- The ID for the tile we're interested in.protected void displayCenterForTileNative(int x, int y, int level, Point3d pt)
public void setTileFetcher(TileFetcher newFetcher)
public void setLoaderInterpreter(LoaderInterpreter newInterp)
public void changeLoaderInterpreter(LoaderInterpreter newInterp)
newInterp
- protected LoaderReturn makeLoaderReturn()
public void shutdown()
protected void cleanupNative(ChangeSet changes)
protected void mergeLoaderReturn(LoaderReturn loadReturn, ChangeSet changes)
public void samplingLayerConnect(QuadSamplingLayer layer, ChangeSet changes)
samplingLayerConnect
in interface QuadSamplingLayer.ClientInterface
public void samplingLayerDisconnect(QuadSamplingLayer layer, ChangeSet changes)
samplingLayerDisconnect
in interface QuadSamplingLayer.ClientInterface
public void processBatchOps(com.mousebird.maply.QIFBatchOps batchOps)
public void clearFrameAsset(com.mousebird.maply.QIFFrameAsset frameAsset)
public void startTileFetch(com.mousebird.maply.QIFBatchOps batchOps, com.mousebird.maply.QIFFrameAsset[] inFrameAssets, int tileX, int tileY, int tileLevel, int priority, double importance)
public long getFrameID(int frame)
public int getGeneration()
public void reload()
protected void reloadNative(ChangeSet changes)
public void finalize()
finalize
in class java.lang.Object