com.jme3.terrain.geomipmap
クラス TerrainLodControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.terrain.geomipmap.TerrainLodControl
- すべての実装されたインタフェース:
- Savable, Control
public class TerrainLodControl
- extends AbstractControl
Tells the terrain to update its Level of Detail.
It needs the cameras to do this, and there could possibly
be several cameras in the scene, so it accepts a list
of cameras.
NOTE: right now it just uses the first camera passed in,
in the future it will use all of them to determine what
LOD to set.
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerrainLodControl
public TerrainLodControl()
TerrainLodControl
public TerrainLodControl(Terrain terrain,
Camera camera)
TerrainLodControl
public TerrainLodControl(Terrain terrain,
java.util.List<Camera> cameras)
- Only uses the first camera right now.
- パラメータ:
terrain
- to act upon (must be a Spatial)cameras
- one or more cameras to reference for LOD calc
cloneForSpatial
public Control cloneForSpatial(Spatial spatial)
- インタフェース
Control
の記述:
- Creates a clone of the Control, the given Spatial is the cloned
version of the spatial to which this control is attached to.
- 戻り値:
- A clone of this control for the spatial
setCamera
public void setCamera(Camera camera)
setCameras
public void setCameras(java.util.List<Camera> cameras)
setSpatial
public void setSpatial(Spatial spatial)
- 定義:
- インタフェース
Control
内の setSpatial
- オーバーライド:
- クラス
AbstractControl
内の setSpatial
- パラメータ:
spatial
- the spatial to be controlled. This should not be called
from user code.
setTerrain
public void setTerrain(Terrain terrain)
write
public void write(JmeExporter ex)
throws java.io.IOException
- 定義:
- インタフェース
Savable
内の write
- オーバーライド:
- クラス
AbstractControl
内の write
- 例外:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- 定義:
- インタフェース
Savable
内の read
- オーバーライド:
- クラス
AbstractControl
内の read
- 例外:
java.io.IOException