com.jme3.terrain.geomipmap
クラス TerrainGrid
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.terrain.geomipmap.TerrainQuad
com.jme3.terrain.geomipmap.TerrainGrid
- すべての実装されたインタフェース:
- Asset, Collidable, Savable, Terrain, java.lang.Cloneable
public class TerrainGrid
- extends TerrainQuad
コンストラクタの概要 |
TerrainGrid()
|
TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
HeightMapGrid heightMapGrid)
|
TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
HeightMapGrid heightMapGrid,
LodCalculatorFactory lodCalculatorFactory)
|
TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
Vector3f scale,
HeightMapGrid heightMapGrid,
LodCalculatorFactory lodCalculatorFactory)
|
TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
Vector3f scale,
HeightMapGrid heightMapGrid,
Vector2f offset,
float offsetAmount,
LodCalculatorFactory lodCalculatorFactory)
|
クラス com.jme3.terrain.geomipmap.TerrainQuad から継承されたメソッド |
adjustHeight, attachBoundChildren, clone, clone, collideWith, createHeightSubBlock, findPick, generateDebugTangents, generateEntropy, getAllTerrainPatches, getAllTerrainPatchesWithTranslation, getHeight, getHeightMap, getHeightmapHeight, getMaterial, getMaxLod, getPatchSize, getQuadrant, getTerrainSize, getTextureCoordinateScale, getTotalSize, read, setHeight, setHeight, setLocked, setLodCalculatorFactory, setQuadrant, write |
クラス com.jme3.scene.Node から継承されたメソッド |
attachChild, attachChildAt, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, setLodLevel, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound |
クラス com.jme3.scene.Spatial から継承されたメソッド |
addControl, addLight, breadthFirstTraversal, center, checkCulling, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, toString, worldToLocal |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TerrainGrid
public TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
Vector3f scale,
HeightMapGrid heightMapGrid,
Vector2f offset,
float offsetAmount,
LodCalculatorFactory lodCalculatorFactory)
TerrainGrid
public TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
Vector3f scale,
HeightMapGrid heightMapGrid,
LodCalculatorFactory lodCalculatorFactory)
TerrainGrid
public TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
HeightMapGrid heightMapGrid,
LodCalculatorFactory lodCalculatorFactory)
TerrainGrid
public TerrainGrid(java.lang.String name,
int patchSize,
int maxVisibleSize,
HeightMapGrid heightMapGrid)
TerrainGrid
public TerrainGrid()
initialize
public void initialize(Vector3f location)
update
public void update(java.util.List<Vector3f> locations)
- クラス
TerrainQuad
の記述:
- Call from the update() method of a terrain controller to update
the LOD values of each patch.
This will perform the geometry calculation in a background thread and
do the actual update on the opengl thread.
- 定義:
- インタフェース
Terrain
内の update
- オーバーライド:
- クラス
TerrainQuad
内の update
getCell
public Vector3f getCell(Vector3f location)
addListener
public void addListener(java.lang.String id,
TerrainGridListener listener)
getCurrentCell
public Vector3f getCurrentCell()
removeListener
public void removeListener(java.lang.String id)
setMaterial
public void setMaterial(Material mat)
- クラス
Spatial
の記述:
- Applies the given material to the Spatial, this will propagate the
material down to the geometries in the scene graph.
- オーバーライド:
- クラス
Node
内の setMaterial
- パラメータ:
mat
- The material to set.
setQuadSize
public void setQuadSize(int quadSize)
adjustHeight
public void adjustHeight(java.util.List<Vector2f> xz,
java.util.List<java.lang.Float> height)
- インタフェース
Terrain
の記述:
- Raise/lower the height at many points. The two lists must be the same size.
Each xz coordinate entry matches to a height entry, 1 for 1. So the
first coordinate matches to the first height value, the last to the
last etc.
- 定義:
- インタフェース
Terrain
内の adjustHeight
- オーバーライド:
- クラス
TerrainQuad
内の adjustHeight
- パラメータ:
xz
- a list of coordinates where the hight will be adjustedheight
- +- value to adjust the height by, that matches the xz coordinates