com.jme3.scene.shape
クラス AbstractBox

java.lang.Object
  上位を拡張 com.jme3.scene.Mesh
      上位を拡張 com.jme3.scene.shape.AbstractBox
すべての実装されたインタフェース:
Savable, java.lang.Cloneable
直系の既知のサブクラス:
Box, StripBox

public abstract class AbstractBox
extends Mesh

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)
           
 
クラス com.jme3.scene.Mesh から継承されたメソッド
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

center

public final Vector3f center

xExtent

public float xExtent

yExtent

public float yExtent

zExtent

public float zExtent
コンストラクタの詳細

AbstractBox

public AbstractBox()
メソッドの詳細

getCenter

public final Vector3f getCenter()
Get the center point of this box.


getXExtent

public final float getXExtent()
Get the x-axis size (extent) of this box.


getYExtent

public final float getYExtent()
Get the y-axis size (extent) of this box.


getZExtent

public final float getZExtent()
Get the z-axis size (extent) of this box.


updateGeometry

public final void updateGeometry()
Rebuilds the box after a property has been directly altered.

For example, if you call getXExtent().x = 5.0f then you will need to call this method afterwards in order to update the box.


updateGeometry

public final void updateGeometry(Vector3f center,
                                 float x,
                                 float y,
                                 float z)
Rebuilds this box based on a new set of parameters.

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.

updateGeometry

public final void updateGeometry(Vector3f minPoint,
                                 Vector3f maxPoint)
Rebuilds this box based on a new set of parameters.

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.

read

public void read(JmeImporter e)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
オーバーライド:
クラス Mesh 内の read
例外:
java.io.IOException

write

public void write(JmeExporter e)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
オーバーライド:
クラス Mesh 内の write
例外:
java.io.IOException