com.jme3.terrain.geomipmap
Class UpdatedTerrainPatch

java.lang.Object
  extended by com.jme3.terrain.geomipmap.UpdatedTerrainPatch

public class UpdatedTerrainPatch
extends java.lang.Object

Stores a terrain patch's details so the LOD background thread can update the actual terrain patch back on the ogl thread.


Constructor Summary
UpdatedTerrainPatch(TerrainPatch updatedPatch)
           
UpdatedTerrainPatch(TerrainPatch updatedPatch, int newLod)
           
 
Method Summary
protected  int getBottomLod()
           
protected  int getLeftLod()
           
 java.lang.String getName()
           
protected  int getNewLod()
           
protected  int getRightLod()
           
protected  int getTopLod()
           
protected  TerrainPatch getUpdatedPatch()
           
 boolean isFixEdges()
           
 boolean isReIndexNeeded()
           
protected  boolean lodChanged()
           
protected  void setBottomLod(int bottomLod)
           
 void setFixEdges(boolean fixEdges)
           
protected  void setLeftLod(int leftLod)
           
protected  void setNewIndexBuffer(java.nio.IntBuffer newIndexBuffer)
           
 void setNewLod(int newLod)
           
 void setPreviousLod(int previousLod)
           
protected  void setRightLod(int rightLod)
           
protected  void setTopLod(int topLod)
           
protected  void setUpdatedPatch(TerrainPatch updatedPatch)
           
 void updateAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdatedTerrainPatch

public UpdatedTerrainPatch(TerrainPatch updatedPatch)

UpdatedTerrainPatch

public UpdatedTerrainPatch(TerrainPatch updatedPatch,
                           int newLod)
Method Detail

getName

public java.lang.String getName()

lodChanged

protected boolean lodChanged()

getUpdatedPatch

protected TerrainPatch getUpdatedPatch()

setUpdatedPatch

protected void setUpdatedPatch(TerrainPatch updatedPatch)

getNewLod

protected int getNewLod()

setNewLod

public void setNewLod(int newLod)

setNewIndexBuffer

protected void setNewIndexBuffer(java.nio.IntBuffer newIndexBuffer)

getRightLod

protected int getRightLod()

setRightLod

protected void setRightLod(int rightLod)

getTopLod

protected int getTopLod()

setTopLod

protected void setTopLod(int topLod)

getLeftLod

protected int getLeftLod()

setLeftLod

protected void setLeftLod(int leftLod)

getBottomLod

protected int getBottomLod()

setBottomLod

protected void setBottomLod(int bottomLod)

isReIndexNeeded

public boolean isReIndexNeeded()

isFixEdges

public boolean isFixEdges()

setFixEdges

public void setFixEdges(boolean fixEdges)

setPreviousLod

public void setPreviousLod(int previousLod)

updateAll

public void updateAll()