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 Layer
public void preSceneFlush(LayerThread layerThread)
Layer
preSceneFlush
in class Layer
public void shutdown()
Layer
If 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.ViewWatcherInterface
viewState
- The new state for the view associated with the MaplyController.public float getMinTime()
LayerThread.ViewWatcherInterface
getMinTime
in interface LayerThread.ViewWatcherInterface
public float getMaxLagTime()
LayerThread.ViewWatcherInterface
getMaxLagTime
in interface LayerThread.ViewWatcherInterface
public void finalize()
finalize
in class java.lang.Object