|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.scene.Mesh
com.jme3.scene.shape.AbstractBox
public abstract class AbstractBox
An eight sided box.
A Box
is defined by a minimal point and a maximal point. The eight
vertices that make the box are then computed, they are computed in such
a way as to generate an axis-aligned box.
This class does not control how the geometry data is generated, see Box
for that.
入れ子のクラスの概要 |
---|
クラス com.jme3.scene.Mesh から継承された入れ子のクラス/インタフェース |
---|
Mesh.Mode |
フィールドの概要 | |
---|---|
Vector3f |
center
|
float |
xExtent
|
float |
yExtent
|
float |
zExtent
|
コンストラクタの概要 | |
---|---|
AbstractBox()
|
メソッドの概要 | |
---|---|
Vector3f |
getCenter()
Get the center point of this box. |
float |
getXExtent()
Get the x-axis size (extent) of this box. |
float |
getYExtent()
Get the y-axis size (extent) of this box. |
float |
getZExtent()
Get the z-axis size (extent) of this box. |
void |
read(JmeImporter e)
|
void |
updateGeometry()
Rebuilds the box after a property has been directly altered. |
void |
updateGeometry(Vector3f center,
float x,
float y,
float z)
Rebuilds this box based on a new set of parameters. |
void |
updateGeometry(Vector3f minPoint,
Vector3f maxPoint)
Rebuilds this box based on a new set of parameters. |
void |
write(JmeExporter e)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public final Vector3f center
public float xExtent
public float yExtent
public float zExtent
コンストラクタの詳細 |
---|
public AbstractBox()
メソッドの詳細 |
---|
public final Vector3f getCenter()
public final float getXExtent()
public final float getYExtent()
public final float getZExtent()
public final void updateGeometry()
For example, if you call getXExtent().x = 5.0f
then you will
need to call this method afterwards in order to update the box.
public final void updateGeometry(Vector3f center, float x, float y, float z)
Note that the actual sides will be twice the given extent values because the box extends in both directions from the center for each extent.
center
- the center of the box.x
- the x extent of the box, in each directions.y
- the y extent of the box, in each directions.z
- the z extent of the box, in each directions.public final void updateGeometry(Vector3f minPoint, Vector3f maxPoint)
The box is updated so that the two opposite corners are minPoint
and maxPoint
, the other corners are created from those two positions.
minPoint
- the new minimum point of the box.maxPoint
- the new maximum point of the box.public void read(JmeImporter e) throws java.io.IOException
Savable
内の read
Mesh
内の read
java.io.IOException
public void write(JmeExporter e) throws java.io.IOException
Savable
内の write
Mesh
内の write
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |