com.jme3.scene.shape
クラス Sphere

java.lang.Object
  上位を拡張 com.jme3.scene.Mesh
      上位を拡張 com.jme3.scene.shape.Sphere
すべての実装されたインタフェース:
Savable, java.lang.Cloneable

public class Sphere
extends Mesh

Sphere represents a 3D object with all points equidistance from a center point.


入れ子のクラスの概要
static class Sphere.TextureMode
           
 
クラス com.jme3.scene.Mesh から継承された入れ子のクラス/インタフェース
Mesh.Mode
 
フィールドの概要
 float radius
          the distance from the center point each point falls on
 
コンストラクタの概要
Sphere()
          Serialization only.
Sphere(int zSamples, int radialSamples, float radius)
          Constructs a sphere.
Sphere(int zSamples, int radialSamples, float radius, boolean useEvenSlices, boolean interior)
          Constructs a sphere.
 
メソッドの概要
 int getRadialSamples()
           
 float getRadius()
           
 Sphere.TextureMode getTextureMode()
           
 int getZSamples()
           
 void read(JmeImporter e)
           
 void setTextureMode(Sphere.TextureMode textureMode)
           
 void updateGeometry(int zSamples, int radialSamples, float radius)
          Changes the information of the sphere into the given values.
 void updateGeometry(int zSamples, int radialSamples, float radius, boolean useEvenSlices, boolean interior)
           
 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
 

フィールドの詳細

radius

public float radius
the distance from the center point each point falls on

コンストラクタの詳細

Sphere

public Sphere()
Serialization only. Do not use.


Sphere

public Sphere(int zSamples,
              int radialSamples,
              float radius)
Constructs a sphere. All geometry data buffers are updated automatically. Both zSamples and radialSamples increase the quality of the generated sphere.

パラメータ:
zSamples - The number of samples along the Z.
radialSamples - The number of samples along the radial.
radius - The radius of the sphere.

Sphere

public Sphere(int zSamples,
              int radialSamples,
              float radius,
              boolean useEvenSlices,
              boolean interior)
Constructs a sphere. Additional arg to evenly space latitudinal slices

パラメータ:
zSamples - The number of samples along the Z.
radialSamples - The number of samples along the radial.
radius - The radius of the sphere.
useEvenSlices - Slice sphere evenly along the Z axis
interior - Not yet documented
メソッドの詳細

getRadialSamples

public int getRadialSamples()

getRadius

public float getRadius()

getTextureMode

public Sphere.TextureMode getTextureMode()
戻り値:
Returns the textureMode.

getZSamples

public int getZSamples()

setTextureMode

public void setTextureMode(Sphere.TextureMode textureMode)
パラメータ:
textureMode - The textureMode to set.

updateGeometry

public void updateGeometry(int zSamples,
                           int radialSamples,
                           float radius)
Changes the information of the sphere into the given values.

パラメータ:
zSamples - the number of zSamples of the sphere.
radialSamples - the number of radial samples of the sphere.
radius - the radius of the sphere.

updateGeometry

public void updateGeometry(int zSamples,
                           int radialSamples,
                           float radius,
                           boolean useEvenSlices,
                           boolean interior)

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