public class QuadImageFrameLoader extends QuadImageLoaderBase
Modifier and Type | Class and Description |
---|---|
static class |
QuadImageFrameLoader.FrameLoadMode |
class |
QuadImageFrameLoader.FrameStats
The Maply Quad Image Frame Loader can generation per-frame stats.
|
class |
QuadImageFrameLoader.Stats
Stats generated by the Maply Quad Image Frame Loader.
|
QuadLoaderBase.Mode
Modifier and Type | Field and Description |
---|---|
protected boolean |
valid |
BaseDrawPriorityDefault, DrawPriorityPerLevelDefault
loadInterp, samplingLayer, tileFetcher
Modifier | Constructor and Description |
---|---|
protected |
QuadImageFrameLoader() |
|
QuadImageFrameLoader(BaseController control) |
|
QuadImageFrameLoader(SamplingParams params,
TileInfoNew[] inTileInfos,
BaseController control) |
Modifier and Type | Method and Description |
---|---|
void |
addFocus()
Add another rendering focus to the frame loader.
|
double |
getCurrentImage()
Return the interpolated location within the array of frames.
|
double |
getCurrentImage(int focusID)
Return the interpolated location for a given focus within the array of frames.
|
int |
getNumFocus()
Return the number of focii.
|
int |
getNumFrames()
Number of tile sources passed in as individual frames.
|
QuadImageFrameLoader.Stats |
getStats()
Pull out the per-frame instantaneous stats.
|
void |
setCurrentImage(double where)
Set the interpolated location within the array of frames.
|
void |
setCurrentImage(int focusID,
double where)
Set the currentImage for the given focus.
|
protected void |
setCurrentImageNative(int focusID,
double where) |
void |
setLoadFrameMode(QuadImageFrameLoader.FrameLoadMode mode)
How frames are loaded (top down vs broad).
|
protected void |
setLoadFrameModeNative(int mode) |
void |
setRenderTarget(int focusID,
RenderTarget renderTarget)
An optional render target for this loader.
|
protected void |
setRenderTargetIDNative(int focusID,
long renderTargetID) |
void |
setRequireTopTiles(boolean newVal)
Set whether we require the top tiles to be loaded before a frame can be displayed.
|
void |
setShader(int focusID,
Shader shader)
Shader to use for rendering the image frames for a particular focus.
|
protected void |
setShaderIDNative(int focusID,
long renderTargetID) |
void |
shutdown()
Turn off the loader and shut things down.
|
changeTileInfo, delayedInit, delayedInitNative, getTileFetcher, makeLoaderReturn, setBaseDrawPriority, setBorderTexel, setColor, setColor, setDrawPriorityPerLevel, setImageFormat, setImageFormatNative, setRenderTarget, setRenderTargetID, setShader, setShaderID, setZBufferRead, setZBufferWrite
boundsForTile, boundsForTileNative, changeLoaderInterpreter, cleanupNative, clearFrameAsset, displayCenterForTile, displayCenterForTileNative, finalize, geoBoundsForTile, geoBoundsForTileNative, getController, getFlipY, getFrameID, getGeneration, mergeLoaderReturn, processBatchOps, reload, reloadNative, samplingLayerConnect, samplingLayerDisconnect, setDebugMode, setFlipY, setLoaderInterpreter, setTileFetcher, startTileFetch
protected QuadImageFrameLoader()
public QuadImageFrameLoader(BaseController control)
public QuadImageFrameLoader(SamplingParams params, TileInfoNew[] inTileInfos, BaseController control)
public void setLoadFrameMode(QuadImageFrameLoader.FrameLoadMode mode)
protected void setLoadFrameModeNative(int mode)
public void addFocus()
public int getNumFocus()
public void setCurrentImage(double where)
public void setCurrentImage(int focusID, double where)
focusID
- Which focus to use. Only use this method if you've got more than one.where
- What to set the currentImage to.protected void setCurrentImageNative(int focusID, double where)
public double getCurrentImage()
public double getCurrentImage(int focusID)
public void setRequireTopTiles(boolean newVal)
public void setRenderTarget(int focusID, RenderTarget renderTarget)
protected void setRenderTargetIDNative(int focusID, long renderTargetID)
public void setShader(int focusID, Shader shader)
protected void setShaderIDNative(int focusID, long renderTargetID)
public int getNumFrames()
public void shutdown()
QuadLoaderBase
shutdown
in class QuadLoaderBase
public QuadImageFrameLoader.Stats getStats()