com.jme3.scene.shape
クラス Cylinder

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

public class Cylinder
extends Mesh

A simple cylinder, defined by it's height and radius. (Ported to jME3)


入れ子のクラスの概要
 
クラス com.jme3.scene.Mesh から継承された入れ子のクラス/インタフェース
Mesh.Mode
 
コンストラクタの概要
Cylinder()
          Default constructor for serialization only.
Cylinder(int axisSamples, int radialSamples, float radius, float height)
          Creates a new Cylinder.
Cylinder(int axisSamples, int radialSamples, float radius, float height, boolean closed)
          Creates a new Cylinder.
Cylinder(int axisSamples, int radialSamples, float radius, float height, boolean closed, boolean inverted)
          Creates a new Cylinder.
Cylinder(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted)
           
 
メソッドの概要
 int getAxisSamples()
           
 float getHeight()
           
 int getRadialSamples()
           
 float getRadius()
           
 float getRadius2()
           
 boolean isClosed()
           
 boolean isInverted()
           
 void read(JmeImporter e)
           
 void updateGeometry(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted)
          Rebuilds the cylinder 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
 

コンストラクタの詳細

Cylinder

public Cylinder()
Default constructor for serialization only. Do not use.


Cylinder

public Cylinder(int axisSamples,
                int radialSamples,
                float radius,
                float height)
Creates a new Cylinder. By default its center is the origin. Usually, a higher sample number creates a better looking cylinder, but at the cost of more vertex information.

パラメータ:
axisSamples - Number of triangle samples along the axis.
radialSamples - Number of triangle samples along the radial.
radius - The radius of the cylinder.
height - The cylinder's height.

Cylinder

public Cylinder(int axisSamples,
                int radialSamples,
                float radius,
                float height,
                boolean closed)
Creates a new Cylinder. By default its center is the origin. Usually, a higher sample number creates a better looking cylinder, but at the cost of more vertex information.
If the cylinder is closed the texture is split into axisSamples parts: top most and bottom most part is used for top and bottom of the cylinder, rest of the texture for the cylinder wall. The middle of the top is mapped to texture coordinates (0.5, 1), bottom to (0.5, 0). Thus you need a suited distorted texture.

パラメータ:
axisSamples - Number of triangle samples along the axis.
radialSamples - Number of triangle samples along the radial.
radius - The radius of the cylinder.
height - The cylinder's height.
closed - true to create a cylinder with top and bottom surface

Cylinder

public Cylinder(int axisSamples,
                int radialSamples,
                float radius,
                float height,
                boolean closed,
                boolean inverted)
Creates a new Cylinder. By default its center is the origin. Usually, a higher sample number creates a better looking cylinder, but at the cost of more vertex information.
If the cylinder is closed the texture is split into axisSamples parts: top most and bottom most part is used for top and bottom of the cylinder, rest of the texture for the cylinder wall. The middle of the top is mapped to texture coordinates (0.5, 1), bottom to (0.5, 0). Thus you need a suited distorted texture.

パラメータ:
axisSamples - Number of triangle samples along the axis.
radialSamples - Number of triangle samples along the radial.
radius - The radius of the cylinder.
height - The cylinder's height.
closed - true to create a cylinder with top and bottom surface
inverted - true to create a cylinder that is meant to be viewed from the interior.

Cylinder

public Cylinder(int axisSamples,
                int radialSamples,
                float radius,
                float radius2,
                float height,
                boolean closed,
                boolean inverted)
メソッドの詳細

getAxisSamples

public int getAxisSamples()
戻り値:
the number of samples along the cylinder axis

getHeight

public float getHeight()
戻り値:
Returns the height.

getRadialSamples

public int getRadialSamples()
戻り値:
number of samples around cylinder

getRadius

public float getRadius()
戻り値:
Returns the radius.

getRadius2

public float getRadius2()

isClosed

public boolean isClosed()
戻り値:
true if end caps are used.

isInverted

public boolean isInverted()
戻り値:
true if normals and uvs are created for interior use

updateGeometry

public void updateGeometry(int axisSamples,
                           int radialSamples,
                           float radius,
                           float radius2,
                           float height,
                           boolean closed,
                           boolean inverted)
Rebuilds the cylinder based on a new set of parameters.

パラメータ:
axisSamples - the number of samples along the axis.
radialSamples - the number of samples around the radial.
radius - the radius of the bottom of the cylinder.
radius2 - the radius of the top of the cylinder.
height - the cylinder's height.
closed - should the cylinder have top and bottom surfaces.
inverted - is the cylinder is meant to be viewed from the inside.

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