|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.scene.Mesh
com.jme3.scene.shape.Cylinder
public class Cylinder
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)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Cylinder()
public Cylinder(int axisSamples, int radialSamples, float radius, float height)
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.public Cylinder(int axisSamples, int radialSamples, float radius, float height, boolean closed)
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 surfacepublic Cylinder(int axisSamples, int radialSamples, float radius, float height, boolean closed, boolean inverted)
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 surfaceinverted
- true to create a cylinder that is meant to be viewed from the
interior.public Cylinder(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted)
メソッドの詳細 |
---|
public int getAxisSamples()
public float getHeight()
public int getRadialSamples()
public float getRadius()
public float getRadius2()
public boolean isClosed()
public boolean isInverted()
public void updateGeometry(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted)
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.public void read(JmeImporter e) throws java.io.IOException
Savable
内の read
Mesh
内の read
java.io.IOException
public void write(JmeExporter e) throws java.io.IOException
Savable
内の write
Mesh
内の write
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |