Package com.jme3.terrain.geomipmap
Interface TerrainGridListener
public interface TerrainGridListener
Notifies the user of grid change events, such as moving to new grid cells.
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled whenever the camera has moved full grid cells.voidtileAttached(Vector3f cell, TerrainQuad quad) Called when a TerrainQuad is attached to the scene and is visible (attached to the root TerrainGrid)voidtileDetached(Vector3f cell, TerrainQuad quad) Called when a TerrainQuad is detached from its TerrainGrid parent: it is no longer on the scene graph.
- 
Method Details- 
gridMovedCalled whenever the camera has moved full grid cells. This triggers new tiles to load.- Parameters:
- newCenter-
 
- 
tileAttachedCalled when a TerrainQuad is attached to the scene and is visible (attached to the root TerrainGrid)- Parameters:
- cell- the cell that is moved into
- quad- the quad that was just attached
 
- 
tileDetachedCalled when a TerrainQuad is detached from its TerrainGrid parent: it is no longer on the scene graph.- Parameters:
- cell- the cell that is moved into
- quad- the quad that was just detached
 
 
-