com.jme3.scene.shape
クラス PQTorus

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

public class PQTorus
extends Mesh

A parameterized torus, also known as a pq torus.


入れ子のクラスの概要
 
クラス com.jme3.scene.Mesh から継承された入れ子のクラス/インタフェース
Mesh.Mode
 
コンストラクタの概要
PQTorus()
           
PQTorus(float p, float q, float radius, float width, int steps, int radialSamples)
          Creates a parameterized torus.
 
メソッドの概要
 float getP()
           
 float getQ()
           
 int getRadialSamples()
           
 float getRadius()
           
 int getSteps()
           
 float getWidth()
           
 void read(JmeImporter e)
           
 void updateGeometry(float p, float q, float radius, float width, int steps, int radialSamples)
          Rebuilds this torus 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
 

コンストラクタの詳細

PQTorus

public PQTorus()

PQTorus

public PQTorus(float p,
               float q,
               float radius,
               float width,
               int steps,
               int radialSamples)
Creates a parameterized torus.

Steps and radialSamples are both degree of accuracy values.

パラメータ:
name - the name of the torus.
p - the x/z oscillation.
q - the y oscillation.
radius - the radius of the PQTorus.
width - the width of the torus.
steps - the steps along the torus.
radialSamples - radial samples for the torus.
メソッドの詳細

getP

public float getP()

getQ

public float getQ()

getRadialSamples

public int getRadialSamples()

getRadius

public float getRadius()

getSteps

public int getSteps()

getWidth

public float getWidth()

read

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

updateGeometry

public void updateGeometry(float p,
                           float q,
                           float radius,
                           float width,
                           int steps,
                           int radialSamples)
Rebuilds this torus based on a new set of parameters.

パラメータ:
p - the x/z oscillation.
q - the y oscillation.
radius - the radius of the PQTorus.
width - the width of the torus.
steps - the steps along the torus.
radialSamples - radial samples for the torus.

write

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