|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.scene.Spatial
com.jme3.scene.Geometry
public class Geometry
Geometry defines a leaf node of the scene graph. The leaf node
contains the geometric data for rendering objects. It manages all rendering
information such as a Material object to define how the surface
should be shaded and the Mesh data to contain the actual geometry.
| 入れ子のクラスの概要 |
|---|
| クラス com.jme3.scene.Spatial から継承された入れ子のクラス/インタフェース |
|---|
Spatial.CullHint |
| フィールドの概要 |
|---|
| クラス com.jme3.scene.Spatial から継承されたフィールド |
|---|
queueDistance |
| コンストラクタの概要 | |
|---|---|
Geometry()
Serialization only. |
|
Geometry(java.lang.String name)
Create a geometry node without any mesh data. |
|
Geometry(java.lang.String name,
Mesh mesh)
Create a geometry node with mesh data. |
|
| メソッドの概要 | |
|---|---|
Geometry |
clone()
This version of clone is a shallow clone, in other words, the same mesh is referenced as the original geometry. |
Geometry |
clone(boolean cloneMaterial)
This version of clone is a shallow clone, in other words, the same mesh is referenced as the original geometry. |
int |
collideWith(Collidable other,
CollisionResults results)
Check collision with another Collidable. |
void |
computeWorldMatrix()
Recomputes the matrix returned by getWorldMatrix(). |
Spatial |
deepClone()
Creates a deep clone of the geometry, this creates an identical copy of the mesh with the vertexbuffer data duplicated. |
void |
depthFirstTraversal(SceneGraphVisitor visitor)
Visit each scene graph element ordered by DFS |
int |
getLodLevel()
Returns the LOD level set with setLodLevel(int). |
Material |
getMaterial()
Returns the material that is used for this geometry. |
Mesh |
getMesh()
Returns the mseh to use for this geometry |
BoundingVolume |
getModelBound()
|
int |
getTriangleCount()
Returns this geometry's mesh triangle count. |
int |
getVertexCount()
Returns this geometry's mesh vertex count. |
Matrix4f |
getWorldMatrix()
A matrix that transforms the mesh
from model space to world space. |
boolean |
isIgnoreTransform()
|
void |
read(JmeImporter im)
|
void |
setIgnoreTransform(boolean ignoreTransform)
|
void |
setLodLevel(int lod)
Sets the LOD level to use when rendering the mesh of this geometry. |
void |
setMaterial(Material material)
Sets the material to use for this geometry. |
void |
setMesh(Mesh mesh)
Sets the mesh to use for this geometry when rendering. |
void |
setModelBound(BoundingVolume modelBound)
Sets the model bound to use for this geometry. |
void |
updateModelBound()
Updates the bounding volume of the mesh. |
void |
write(JmeExporter ex)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Geometry()
public Geometry(java.lang.String name)
name - The name of this geometry
public Geometry(java.lang.String name,
Mesh mesh)
name - The name of this geometrymesh - The mesh data for this geometry| メソッドの詳細 |
|---|
public boolean isIgnoreTransform()
setIgnoreTransform(boolean)public void setIgnoreTransform(boolean ignoreTransform)
ignoreTransform - If true, the geometry's transform will not be applied.public void setLodLevel(int lod)
Mesh.setLodLevels(com.jme3.scene.VertexBuffer[]).
Spatial 内の setLodLevellod - The lod level to setpublic int getLodLevel()
setLodLevel(int).
public int getVertexCount()
Spatial 内の getVertexCountMesh.getVertexCount()public int getTriangleCount()
Spatial 内の getTriangleCountMesh.getTriangleCount()public void setMesh(Mesh mesh)
mesh - the mesh to use for this geometry
java.lang.IllegalArgumentException - If mesh is nullpublic Mesh getMesh()
setMesh(com.jme3.scene.Mesh)public void setMaterial(Material material)
Spatial 内の setMaterialmaterial - the material to use for this geometrypublic Material getMaterial()
setMaterial(com.jme3.material.Material)public BoundingVolume getModelBound()
public void updateModelBound()
Spatial 内の updateModelBoundpublic void computeWorldMatrix()
getWorldMatrix().
This will require a localized transform update for this geometry.
public Matrix4f getWorldMatrix()
matrix that transforms the mesh
from model space to world space. This matrix is computed based on the
world transform of this geometry.
In order to receive updated values, you must call computeWorldMatrix()
before using this method.
public void setModelBound(BoundingVolume modelBound)
Mesh.setBound(com.jme3.bounding.BoundingVolume) and
forces the world bounding volume to be recomputed.
Spatial 内の setModelBoundmodelBound - The model bound to set
public int collideWith(Collidable other,
CollisionResults results)
Collidable の記述:
other - The object to check collision againstresults - Will contain the list of CollisionResults.
public void depthFirstTraversal(SceneGraphVisitor visitor)
Spatial の記述:
Spatial 内の depthFirstTraversalpublic Geometry clone(boolean cloneMaterial)
Spatial 内の cloneMesh.cloneForAnim()public Geometry clone()
Spatial 内の cloneMesh.cloneForAnim()public Spatial deepClone()
Spatial 内の deepCloneSpatial.clone()
public void write(JmeExporter ex)
throws java.io.IOException
Savable 内の writeSpatial 内の writejava.io.IOException
public void read(JmeImporter im)
throws java.io.IOException
Savable 内の readSpatial 内の readjava.io.IOException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||