|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.terrain.geomipmap.TerrainQuad
public class TerrainQuad
A terrain quad is a node in the quad tree of the terrain system. The root terrain quad will be the only one that receives the update() call every frame and it will determine if there has been any LOD change. The leaves of the terrain quad tree are Terrain Patches. These have the real geometry mesh.
| 入れ子のクラスの概要 |
|---|
| クラス com.jme3.scene.Spatial から継承された入れ子のクラス/インタフェース |
|---|
Spatial.CullHint |
| フィールドの概要 |
|---|
| クラス com.jme3.scene.Spatial から継承されたフィールド |
|---|
queueDistance |
| コンストラクタの概要 | |
|---|---|
TerrainQuad()
|
|
TerrainQuad(java.lang.String name,
int patchSize,
int totalSize,
float[] heightMap)
|
|
TerrainQuad(java.lang.String name,
int patchSize,
int totalSize,
float[] heightMap,
LodCalculatorFactory lodCalculatorFactory)
|
|
TerrainQuad(java.lang.String name,
int patchSize,
int size,
int totalSize,
float[] heightMap,
LodCalculatorFactory lodCalculatorFactory)
|
|
TerrainQuad(java.lang.String name,
int patchSize,
int size,
Vector3f scale,
float[] heightMap,
LodCalculatorFactory lodCalculatorFactory)
|
|
| メソッドの概要 | |
|---|---|
void |
adjustHeight(java.util.List<Vector2f> xz,
java.util.List<java.lang.Float> height)
Raise/lower the height at many points. |
void |
adjustHeight(Vector2f xz,
float delta)
Raise/lower the height in one call (instead of getHeight then setHeight). |
void |
attachBoundChildren(Node parent)
A handy method that will attach all bounding boxes of this terrain to the node you supply. |
TerrainQuad |
clone()
|
TerrainQuad |
clone(boolean cloneMaterials)
|
int |
collideWith(Collidable other,
CollisionResults results)
Check collision with another Collidable. |
float[] |
createHeightSubBlock(float[] heightMap,
int x,
int y,
int side)
|
void |
findPick(Ray toTest,
java.util.List<TerrainPickData> results)
Gather the terrain patches that intersect the given ray (toTest). |
void |
generateDebugTangents(Material mat)
|
void |
generateEntropy(ProgressMonitor progressMonitor)
Pre-calculate entropy values. |
void |
getAllTerrainPatches(java.util.List<TerrainPatch> holder)
Retrieve all Terrain Patches from all children and store them in the 'holder' list |
void |
getAllTerrainPatchesWithTranslation(java.util.Map<TerrainPatch,Vector3f> holder,
Vector3f translation)
|
float |
getHeight(Vector2f xz)
Get the real-world height of the terrain at the specified X-Z coorindate. |
float[] |
getHeightMap()
Get the heightmap of the entire terrain. |
float |
getHeightmapHeight(Vector2f xz)
Get the heightmap height at the specified X-Z coordinate. |
Material |
getMaterial()
Returns the material that this terrain uses. |
int |
getMaxLod()
This is calculated by the specific LOD algorithm. |
int |
getPatchSize()
|
int |
getQuadrant()
|
int |
getTerrainSize()
Used for painting to get the number of vertices along the edge of the terrain. |
float |
getTextureCoordinateScale()
Get the scale of the texture coordinates. |
int |
getTotalSize()
|
void |
read(JmeImporter e)
|
void |
setHeight(java.util.List<Vector2f> xz,
java.util.List<java.lang.Float> height)
Set the height at many points. |
void |
setHeight(Vector2f xz,
float height)
Set the height at the specified X-Z coordinate. |
void |
setLocked(boolean locked)
lock or unlock the meshes of this terrain. |
void |
setLodCalculatorFactory(LodCalculatorFactory lodCalculatorFactory)
|
void |
setQuadrant(short quadrant)
|
void |
update(java.util.List<Vector3f> locations)
Call from the update() method of a terrain controller to update the LOD values of each patch. |
void |
write(JmeExporter e)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public TerrainQuad()
public TerrainQuad(java.lang.String name,
int patchSize,
int totalSize,
float[] heightMap)
public TerrainQuad(java.lang.String name,
int patchSize,
int totalSize,
float[] heightMap,
LodCalculatorFactory lodCalculatorFactory)
public TerrainQuad(java.lang.String name,
int patchSize,
int size,
int totalSize,
float[] heightMap,
LodCalculatorFactory lodCalculatorFactory)
public TerrainQuad(java.lang.String name,
int patchSize,
int size,
Vector3f scale,
float[] heightMap,
LodCalculatorFactory lodCalculatorFactory)
| メソッドの詳細 |
|---|
public void setLodCalculatorFactory(LodCalculatorFactory lodCalculatorFactory)
public void update(java.util.List<Vector3f> locations)
Terrain 内の updatepublic void generateEntropy(ProgressMonitor progressMonitor)
Terrain の記述:
Terrain 内の generateEntropypublic Material getMaterial()
Terrain の記述:
Terrain 内の getMaterialpublic float getTextureCoordinateScale()
Terrain の記述:
Terrain 内の getTextureCoordinateScalepublic void generateDebugTangents(Material mat)
public float[] createHeightSubBlock(float[] heightMap,
int x,
int y,
int side)
public void attachBoundChildren(Node parent)
parent - that will get the bounding box shapes of the terrain attached topublic float getHeightmapHeight(Vector2f xz)
Terrain の記述:
Terrain 内の getHeightmapHeightxz - world coordinate
public float getHeight(Vector2f xz)
Terrain の記述:
Terrain 内の getHeightxz - the X-Z world coordinate
public void setHeight(Vector2f xz,
float height)
Terrain の記述:
Terrain 内の setHeightxz - coordinate to set the heightheight - that will be set at the coordinate
public void adjustHeight(Vector2f xz,
float delta)
Terrain の記述:
Terrain 内の adjustHeightxz - world coordinate to adjust the terrain heightdelta - +- value to adjust the height by
public void setHeight(java.util.List<Vector2f> xz,
java.util.List<java.lang.Float> height)
Terrain の記述:
Terrain 内の setHeightxz - a list of coordinates where the hight will be setheight - the heights that match the xz coordinates
public void adjustHeight(java.util.List<Vector2f> xz,
java.util.List<java.lang.Float> height)
Terrain の記述:
Terrain 内の adjustHeightxz - a list of coordinates where the hight will be adjustedheight - +- value to adjust the height by, that matches the xz coordinatespublic int getTerrainSize()
Terrain の記述:
Terrain 内の getTerrainSizepublic void setLocked(boolean locked)
Terrain 内の setLockedlocked - or unlockedpublic int getQuadrant()
public void setQuadrant(short quadrant)
public int collideWith(Collidable other,
CollisionResults results)
Collidable の記述:
Collidable 内の collideWithNode 内の collideWithother - The object to check collision againstresults - Will contain the list of CollisionResults.
public void findPick(Ray toTest,
java.util.List<TerrainPickData> results)
toTest - results - public void getAllTerrainPatches(java.util.List<TerrainPatch> holder)
holder - must not be null, will be populated when returns
public void getAllTerrainPatchesWithTranslation(java.util.Map<TerrainPatch,Vector3f> holder,
Vector3f translation)
public void read(JmeImporter e)
throws java.io.IOException
Savable 内の readNode 内の readjava.io.IOException
public void write(JmeExporter e)
throws java.io.IOException
Savable 内の writeNode 内の writejava.io.IOExceptionpublic TerrainQuad clone()
Spatial 内の cloneMesh.cloneForAnim()public TerrainQuad clone(boolean cloneMaterials)
Node 内の cloneMesh.cloneForAnim()public int getMaxLod()
Terrain の記述:
Terrain 内の getMaxLodpublic int getPatchSize()
public int getTotalSize()
public float[] getHeightMap()
Terrain の記述:
Terrain 内の getHeightMap
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||