public class QuadSamplingLayer extends Layer implements LayerThread.ViewWatcherInterface
| Modifier and Type | Class and Description |
|---|---|
static interface |
QuadSamplingLayer.ClientInterface |
layerThread| Modifier | Constructor and Description |
|---|---|
protected |
QuadSamplingLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClient(QuadSamplingLayer.ClientInterface user)
Add a client to this sampling layer.
|
void |
finalize() |
float |
getMaxLagTime()
How long the layer can go without a viewUpdated() call.
|
float |
getMinTime()
This minimum time before unique viewUpdated() calls.
|
void |
preSceneFlush(LayerThread layerThread)
Called on the layer thread right before we flush changes out to the scene.
|
void |
removeClient(QuadSamplingLayer.ClientInterface user)
Client will stop getting updates from this sampling layer.
|
void |
shutdown()
This method is called when a layer is to be removed.
|
void |
startLayer(LayerThread inLayerThread)
--- Layer methods ---
|
void |
viewUpdated(ViewState viewState)
--- View Updated Methods ---
|
public void addClient(QuadSamplingLayer.ClientInterface user)
public void removeClient(QuadSamplingLayer.ClientInterface user)
public void startLayer(LayerThread inLayerThread)
startLayer in class Layerpublic void preSceneFlush(LayerThread layerThread)
LayerpreSceneFlush in class Layerpublic void shutdown()
LayerIf the MaplyController is shut down, you may not get this call and instead may simply be deleted.
public void viewUpdated(ViewState viewState)
viewUpdated in interface LayerThread.ViewWatcherInterfaceviewState - The new state for the view associated with the MaplyController.public float getMinTime()
LayerThread.ViewWatcherInterfacegetMinTime in interface LayerThread.ViewWatcherInterfacepublic float getMaxLagTime()
LayerThread.ViewWatcherInterfacegetMaxLagTime in interface LayerThread.ViewWatcherInterfacepublic void finalize()
finalize in class java.lang.Object