|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.scene.control.AbstractControl
com.jme3.scene.control.LodControl
public class LodControl
Determines what Level of Detail a spatial should be, based on how many pixels on the screen the spatial is taking up. The more pixels covered, the more detailed the spatial should be. It calculates the area of the screen that the spatial covers by using its bounding box. When initializing, it will ask the spatial for how many triangles it has for each LOD. It then uses that, along with the trisPerPixel value to determine what LOD it should be at. It requires the camera to do this. The controlRender method is called each frame and will update the spatial's LOD if the camera has moved by a specified amount.
コンストラクタの概要 | |
---|---|
LodControl()
Creates a new LodControl . |
メソッドの概要 | |
---|---|
Control |
cloneForSpatial(Spatial spatial)
Creates a clone of the Control, the given Spatial is the cloned version of the spatial to which this control is attached to. |
float |
getDistTolerance()
Returns the distance tolerance for changing LOD. |
float |
getTrisPerPixel()
Returns the triangles per pixel value. |
void |
read(JmeImporter im)
|
void |
setDistTolerance(float distTolerance)
Specifies the distance tolerance for changing the LOD level on the geometry. |
void |
setSpatial(Spatial spatial)
|
void |
setTrisPerPixel(float trisPerPixel)
Sets the triangles per pixel value. |
void |
write(JmeExporter ex)
|
クラス com.jme3.scene.control.AbstractControl から継承されたメソッド |
---|
getSpatial, isEnabled, render, setEnabled, update |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public LodControl()
LodControl
.
メソッドの詳細 |
---|
public float getDistTolerance()
setDistTolerance(float)
public void setDistTolerance(float distTolerance)
distTolerance
- distance tolerance for changing LODpublic float getTrisPerPixel()
setTrisPerPixel(float)
public void setTrisPerPixel(float trisPerPixel)
LodControl
will use this value as an error metric
to determine which LOD level to use based on the geometry's
area on the screen.
trisPerPixel
- triangles per pixelpublic void setSpatial(Spatial spatial)
Control
内の setSpatial
AbstractControl
内の setSpatial
spatial
- the spatial to be controlled. This should not be called
from user code.public Control cloneForSpatial(Spatial spatial)
Control
の記述:
Control
内の cloneForSpatial
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
AbstractControl
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
AbstractControl
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |