|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の update
public void generateEntropy(ProgressMonitor progressMonitor)
Terrain
の記述:
Terrain
内の generateEntropy
public Material getMaterial()
Terrain
の記述:
Terrain
内の getMaterial
public float getTextureCoordinateScale()
Terrain
の記述:
Terrain
内の getTextureCoordinateScale
public 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
内の getHeightmapHeight
xz
- world coordinate
public float getHeight(Vector2f xz)
Terrain
の記述:
Terrain
内の getHeight
xz
- the X-Z world coordinate
public void setHeight(Vector2f xz, float height)
Terrain
の記述:
Terrain
内の setHeight
xz
- coordinate to set the heightheight
- that will be set at the coordinatepublic void adjustHeight(Vector2f xz, float delta)
Terrain
の記述:
Terrain
内の adjustHeight
xz
- world coordinate to adjust the terrain heightdelta
- +- value to adjust the height bypublic void setHeight(java.util.List<Vector2f> xz, java.util.List<java.lang.Float> height)
Terrain
の記述:
Terrain
内の setHeight
xz
- a list of coordinates where the hight will be setheight
- the heights that match the xz coordinatespublic void adjustHeight(java.util.List<Vector2f> xz, java.util.List<java.lang.Float> height)
Terrain
の記述:
Terrain
内の adjustHeight
xz
- 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
内の getTerrainSize
public void setLocked(boolean locked)
Terrain
内の setLocked
locked
- or unlockedpublic int getQuadrant()
public void setQuadrant(short quadrant)
public int collideWith(Collidable other, CollisionResults results)
Collidable
の記述:
Collidable
内の collideWith
Node
内の collideWith
other
- The object to check collision againstresults
- Will contain the list of CollisionResult
s.
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 returnspublic void getAllTerrainPatchesWithTranslation(java.util.Map<TerrainPatch,Vector3f> holder, Vector3f translation)
public void read(JmeImporter e) throws java.io.IOException
Savable
内の read
Node
内の read
java.io.IOException
public void write(JmeExporter e) throws java.io.IOException
Savable
内の write
Node
内の write
java.io.IOException
public TerrainQuad clone()
Spatial
内の clone
Mesh.cloneForAnim()
public TerrainQuad clone(boolean cloneMaterials)
Node
内の clone
Mesh.cloneForAnim()
public int getMaxLod()
Terrain
の記述:
Terrain
内の getMaxLod
public int getPatchSize()
public int getTotalSize()
public float[] getHeightMap()
Terrain
の記述:
Terrain
内の getHeightMap
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |