com.jme3.scene
列挙型 Mesh.Mode

java.lang.Object
  上位を拡張 java.lang.Enum<Mesh.Mode>
      上位を拡張 com.jme3.scene.Mesh.Mode
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<Mesh.Mode>
含まれているクラス:
Mesh

public static enum Mesh.Mode
extends java.lang.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
 

列挙型定数の詳細

Points

public static final Mesh.Mode Points
A primitive is a single point in space. The size of the points can be specified with Mesh.setPointSize(float).


Lines

public static final Mesh.Mode Lines
A primitive is a line segment. Every two vertices specify a single line. Mesh.setLineWidth(float) can be used to set the width of the lines.


LineStrip

public static final Mesh.Mode LineStrip
A primitive is a line segment. The first two vertices specify a single line, while subsequent vertices are combined with the previous vertex to make a line. Mesh.setLineWidth(float) can be used to set the width of the lines.


LineLoop

public static final Mesh.Mode LineLoop
Identical to 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.


Triangles

public static final Mesh.Mode Triangles
A primitive is a triangle. Each 3 vertices specify a single triangle.


TriangleStrip

public static final Mesh.Mode TriangleStrip
Similar to Triangles, the first 3 vertices specify a triangle, while subsequent vertices are combined with the previous two to form a triangle.


TriangleFan

public static final Mesh.Mode 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.


Hybrid

public static final Mesh.Mode Hybrid
A combination of various triangle modes. It is best to avoid using this mode as it may not be supported by all renderers. The mode start points and element lengths must be specified for this mode.

メソッドの詳細

values

public static Mesh.Mode[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for (Mesh.Mode c : Mesh.Mode.values())
    System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static Mesh.Mode valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
java.lang.IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合
java.lang.NullPointerException - 引数が null の場合

isListMode

public 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). Will return true for the types Points, Lines and Triangles.

戻り値:
true if the mode is a list type mode