|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | 列挙型定数 | フィールド | メソッド | 詳細: 列挙型定数 | フィールド | メソッド |
java.lang.Objectjava.lang.Enum<Mesh.Mode>
com.jme3.scene.Mesh.Mode
public static enum Mesh.Mode
The mode of the Mesh specifies both the type of primitive represented by the mesh and how the data should be interpreted.
列挙型定数の概要 | |
---|---|
Hybrid
A combination of various triangle modes. |
|
LineLoop
Identical to LineStrip except that at the end
the last vertex is connected with the first to form a line. |
|
Lines
A primitive is a line segment. |
|
LineStrip
A primitive is a line segment. |
|
Points
A primitive is a single point in space. |
|
TriangleFan
Similar to Triangles , the first 3 vertices
specify a triangle, each 2 subsequent vertices are combined
with the very first vertex to make a triangle. |
|
Triangles
A primitive is a triangle. |
|
TriangleStrip
Similar to Triangles , the first 3 vertices
specify a triangle, while subsequent vertices are combined with
the previous two to form a triangle. |
メソッドの概要 | |
---|---|
boolean |
isListMode()
Returns true if the specified mode is a list mode (meaning ,it specifies the indices as a linear list and not some special format). |
static Mesh.Mode |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 |
static Mesh.Mode[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。 |
クラス java.lang.Enum から継承されたメソッド |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, notify, notifyAll, wait, wait, wait |
列挙型定数の詳細 |
---|
public static final Mesh.Mode Points
Mesh.setPointSize(float)
.
public static final Mesh.Mode Lines
Mesh.setLineWidth(float)
can be used
to set the width of the lines.
public static final Mesh.Mode LineStrip
Mesh.setLineWidth(float)
can
be used to set the width of the lines.
public static final Mesh.Mode LineLoop
LineStrip
except that at the end
the last vertex is connected with the first to form a line.
Mesh.setLineWidth(float)
can be used
to set the width of the lines.
public static final Mesh.Mode Triangles
public static final Mesh.Mode TriangleStrip
Triangles
, the first 3 vertices
specify a triangle, while subsequent vertices are combined with
the previous two to form a triangle.
public static final Mesh.Mode TriangleFan
Triangles
, the first 3 vertices
specify a triangle, each 2 subsequent vertices are combined
with the very first vertex to make a triangle.
public static final Mesh.Mode Hybrid
mode start points
and
element lengths
must
be specified for this mode.
メソッドの詳細 |
---|
public static Mesh.Mode[] values()
for (Mesh.Mode c : Mesh.Mode.values()) System.out.println(c);
public static Mesh.Mode valueOf(java.lang.String name)
name
- 返される列挙型定数の名前
java.lang.IllegalArgumentException
- 指定された名前を持つ定数を
この列挙型が持っていない場合
java.lang.NullPointerException
- 引数が null の場合public boolean isListMode()
Points
, Lines
and
Triangles
.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | 列挙型定数 | フィールド | メソッド | 詳細: 列挙型定数 | フィールド | メソッド |