VertexElementMaterial

Inheritance: java.lang.Object, com.aspose.threed.VertexElement

public class VertexElementMaterial extends VertexElement

指定されたコンポーネントのマテリアルインデックスを定義します。ノードは複数のマテリアルを持つことができ、VertexElementMaterial はジオメトリの異なる部分を異なるマテリアルでレンダリングするために使用されます。Example: 以下のコードは、ボックスの異なる面に異なるマテリアルを割り当てる方法を示しています。

// Create a mesh of box(A box is composed by 6 planes)
             Mesh box = (new Box()).ToMesh();
             // Create a material element on this mesh
             VertexElementMaterial mat = (VertexElementMaterial)box.CreateElement(VertexElementType.Material, MappingMode.Polygon, ReferenceMode.Index);
             // And specify different material index for each plane
             mat.Indices.AddRange(new int[] { 0, 1, 2, 3, 4, 5 });

コンストラクタ

コンストラクタ説明
VertexElementMaterial()新しい VertexElementMaterial クラスのインスタンスを初期化します。

メソッド

メソッド説明
clear()direct と index 配列からすべての要素を削除します。
clone(boolean withData)頂点要素をディープクローンします。
clone(boolean withDirect, boolean withIndice)
equals(Object arg0)
getClass()
getIndices()インデックスデータを取得します。
getMappingMode()要素のマッピング方法を取得します。
getName()名前を取得します。
getReferenceMode()要素の参照方法を取得します。
getVertexElementType()VertexElement の型を取得します。
hashCode()
notify()
notifyAll()
setIndices(int[] data)インデックスをロードします。
setMappingMode(MappingMode value)要素のマッピング方法を設定します。
setName(String value)名前を設定します。
setReferenceMode(ReferenceMode value)要素の参照方法を設定します。
toString()頂点要素の文字列表現です。
wait()
wait(long arg0)
wait(long arg0, int arg1)

VertexElementMaterial()

public VertexElementMaterial()

新しい VertexElementMaterial クラスのインスタンスを初期化します。

clear()

public void clear()

direct と index 配列からすべての要素を削除します。

clone(boolean withData)

public VertexElement clone(boolean withData)

頂点要素をディープクローンします。

Parameters:

パラメーター説明
withDatabooleandirect と index 配列で頂点をクローンします。

Returns: VertexElement

clone(boolean withDirect, boolean withIndice)

public VertexElement clone(boolean withDirect, boolean withIndice)

Parameters:

パラメーター説明
withDirectboolean
withIndiceboolean

Returns: VertexElement

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getIndices()

public List<Integer> getIndices()

インデックスデータを取得します。

Returns: java.util.List<java.lang.Integer> - インデックスデータ

getMappingMode()

public MappingMode getMappingMode()

要素のマッピング方法を取得します。

Returns: MappingMode - how the element is mapped.

getName()

public String getName()

名前を取得します。

Returns: java.lang.String - 名前です。

getReferenceMode()

public ReferenceMode getReferenceMode()

要素の参照方法を取得します。

Returns: ReferenceMode - how the element is referenced.

getVertexElementType()

public VertexElementType getVertexElementType()

VertexElement の型を取得します。

Returns: VertexElementType - the type of the VertexElement

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setIndices(int[] data)

public void setIndices(int[] data)

インデックスをロードします。

Parameters:

パラメーター説明
データint[]

setMappingMode(MappingMode value)

public void setMappingMode(MappingMode value)

要素のマッピング方法を設定します。

Parameters:

パラメーター説明
valueMappingMode新しい値

setName(String value)

public void setName(String value)

名前を設定します。

Parameters:

パラメーター説明
java.lang.String新しい値

setReferenceMode(ReferenceMode value)

public void setReferenceMode(ReferenceMode value)

要素の参照方法を設定します。

Parameters:

パラメーター説明
valueReferenceMode新しい値

toString()

public String toString()

頂点要素の文字列表現です。

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

パラメーター説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター説明
arg0long
arg1int