com.jme3.scene.shape
クラス Dome

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

public class Dome
extends Mesh

A hemisphere.


入れ子のクラスの概要
 
クラス com.jme3.scene.Mesh から継承された入れ子のクラス/インタフェース
Mesh.Mode
 
コンストラクタの概要
Dome()
          Serialization only.
Dome(int planes, int radialSamples, float radius)
          Constructs a dome with center at the origin.
Dome(Vector3f center, int planes, int radialSamples, float radius)
          Constructs a dome.
Dome(Vector3f center, int planes, int radialSamples, float radius, boolean outsideView)
          Constructs a dome.
 
メソッドの概要
 Vector3f getCenter()
           
 int getPlanes()
          Get the number of planar segments along the z-axis of the dome.
 int getRadialSamples()
          Get the number of samples radially around the main axis of the dome.
 float getRadius()
          Get the radius of the dome.
 boolean isOutsideView()
          Are the triangles connected in such a way as to present a view out from the dome or not.
 void read(JmeImporter e)
           
 void updateGeometry(Vector3f center, int planes, int radialSamples, float radius, boolean outsideView)
          Rebuilds the dome with 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
 

コンストラクタの詳細

Dome

public Dome()
Serialization only. Do not use.


Dome

public Dome(int planes,
            int radialSamples,
            float radius)
Constructs a dome with center at the origin. For details, see the other constructor.

パラメータ:
name - Name of dome.
planes - The number of planes along the Z-axis.
radialSamples - The samples along the radial.
radius - Radius of the dome.
関連項目:
#Dome(java.lang.String, com.jme.math.Vector3f, int, int, float)

Dome

public Dome(Vector3f center,
            int planes,
            int radialSamples,
            float radius)
Constructs a dome. All geometry data buffers are updated automatically. Both planes and radialSamples increase the quality of the generated dome.

パラメータ:
name - Name of the dome.
center - Center of the dome.
planes - The number of planes along the Z-axis.
radialSamples - The number of samples along the radial.
radius - The radius of the dome.

Dome

public Dome(Vector3f center,
            int planes,
            int radialSamples,
            float radius,
            boolean outsideView)
Constructs a dome. All geometry data buffers are updated automatically. Both planes and radialSamples increase the quality of the generated dome.

パラメータ:
center - Center of the dome.
planes - The number of planes along the Z-axis.
radialSamples - The number of samples along the radial.
radius - The radius of the dome.
outsideView - If true, the triangles will be connected for a view outside of the dome.
メソッドの詳細

getCenter

public Vector3f getCenter()

getPlanes

public int getPlanes()
Get the number of planar segments along the z-axis of the dome.


getRadialSamples

public int getRadialSamples()
Get the number of samples radially around the main axis of the dome.


getRadius

public float getRadius()
Get the radius of the dome.


isOutsideView

public boolean isOutsideView()
Are the triangles connected in such a way as to present a view out from the dome or not.


updateGeometry

public void updateGeometry(Vector3f center,
                           int planes,
                           int radialSamples,
                           float radius,
                           boolean outsideView)
Rebuilds the dome with a new set of parameters.

パラメータ:
center - the new center of the dome.
planes - the number of planes along the Z-axis.
radialSamples - the new number of radial samples of the dome.
radius - the new radius of the dome.
outsideView - should the dome be set up to be viewed from the inside looking out.

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