LambertMaterial

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.Material

public class LambertMaterial extends Material

Lambert シェーディングモデル用のマテリアルです。

コンストラクタ

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

フィールド

フィールド説明
MAP_AMBIENTsetTexture で環境光テクスチャマッピングを割り当てるために使用されます。
MAP_DIFFUSEsetTexture で拡散テクスチャマッピングを割り当てるために使用されます。
MAP_EMISSIVEsetTexture で放射テクスチャマッピングを割り当てるために使用されます。
MAP_NORMALsetTexture で法線テクスチャマッピングを割り当てるために使用されます。
MAP_SPECULARsetTexture で鏡面テクスチャマッピングを割り当てるために使用されます。

メソッド

メソッド説明
equals(Object arg0)
findProperty(String propertyName)プロパティを検索します。
getAmbientColor()環境光の色を取得します。
getClass()
getDiffuseColor()拡散色を取得します。
getEmissiveColor()放射色を取得します。
getName()名前を取得します。
getProperties()すべてのプロパティのコレクションを取得します。
getProperty(String property)指定されたプロパティの値を取得します
getTexture(String slotName)指定されたスロットからテクスチャを取得します。これはマテリアルのプロパティ名またはシェーダーのパラメータ名で指定できます。
getTransparency()透過係数を取得します。
getTransparentColor()透過色を取得します。
hashCode()
iterator()内部テクスチャスロットを列挙するための列挙子を取得します。
notify()
notifyAll()
removeProperty(Property property)動的プロパティを削除します。
removeProperty(String property)名前で識別される指定されたプロパティを削除します
setAmbientColor(Vector3 value)環境光の色を設定します。
setDiffuseColor(Vector3 value)拡散色を設定します。
setEmissiveColor(Vector3 value)放射色を設定します。
setName(String value)名前を設定します。
setProperty(String property, Object value)指定されたプロパティの値を設定します
setTexture(String slotName, TextureBase texture)テクスチャを指定されたスロットに設定します。
setTransparency(double value)透過係数を設定します。
setTransparentColor(Vector3 value)透過色を設定します。
toString()オブジェクトを文字列にフォーマットします
wait()
wait(long arg0)
wait(long arg0, int arg1)

LambertMaterial()

public LambertMaterial()

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

LambertMaterial(String name)

public LambertMaterial(String name)

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

Parameters:

パラメーター説明
名前java.lang.String名前

MAP_AMBIENT

public static final String MAP_AMBIENT

setTexture で環境光テクスチャマッピングを割り当てるために使用されます。

MAP_DIFFUSE

public static final String MAP_DIFFUSE

setTexture で拡散テクスチャマッピングを割り当てるために使用されます。

MAP_EMISSIVE

public static final String MAP_EMISSIVE

setTexture で放射テクスチャマッピングを割り当てるために使用されます。

MAP_NORMAL

public static final String MAP_NORMAL

setTexture で法線テクスチャマッピングを割り当てるために使用されます。

MAP_SPECULAR

public static final String MAP_SPECULAR

setTexture で鏡面テクスチャマッピングを割り当てるために使用されます。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

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

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。

Parameters:

パラメーター説明
propertyNamejava.lang.Stringプロパティ名。

Returns: Property - The property.

getAmbientColor()

public Vector3 getAmbientColor()

環境光の色を取得します。

Returns: Vector3 - the ambient color

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDiffuseColor()

public Vector3 getDiffuseColor()

拡散色を取得します。

Returns: Vector3 - the diffuse color

getEmissiveColor()

public Vector3 getEmissiveColor()

放射色を取得します。

Returns: Vector3 - the emissive color Example:

var mat = new LambertMaterial();
     mat.setEmissiveColor(new Vector3(1, 1, 1));

getName()

public String getName()

名前を取得します。

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

getProperties()

public PropertyCollection getProperties()

すべてのプロパティのコレクションを取得します。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

指定されたプロパティの値を取得します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名

Returns: java.lang.Object - 見つかったプロパティの値

getTexture(String slotName)

public TextureBase getTexture(String slotName)

指定されたスロットからテクスチャを取得します。これはマテリアルのプロパティ名またはシェーダーのパラメータ名で指定できます。

Parameters:

パラメーター説明
slotNamejava.lang.Stringスロット名。

Returns: TextureBase - The texture. Example:

var mat = new LambertMaterial();
     var tex = new Texture();
     tex.setFileName("diffuse.png");
     mat.setTexture(Material.MAP_DIFFUSE, tex);
     tex = (Texture)mat.getTexture(Material.MAP_DIFFUSE);

getTransparency()

public double getTransparency()

透明度係数を取得します。係数は 0(0%、完全に不透明)から 1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。

Returns: double - 透明度係数。係数は 0(0%、完全に不透明)から 1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。

getTransparentColor()

public Vector3 getTransparentColor()

透過色を取得します。

Returns: Vector3 - the transparent color.

hashCode()

public native int hashCode()

Returns: int

iterator()

public Iterator<TextureSlot> iterator()

内部テクスチャスロットを列挙するための列挙子を取得します。

Returns: java.util.Iterator<com.aspose.threed.TextureSlot>

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

動的プロパティを削除します。

Parameters:

パラメーター説明
propertyProperty削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

removeProperty(String property)

public boolean removeProperty(String property)

名前で識別される指定されたプロパティを削除します

Parameters:

パラメーター説明
プロパティjava.lang.String削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

setAmbientColor(Vector3 value)

public void setAmbientColor(Vector3 value)

環境光の色を設定します。

Parameters:

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

setDiffuseColor(Vector3 value)

public void setDiffuseColor(Vector3 value)

拡散色を設定します。

Parameters:

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

setEmissiveColor(Vector3 value)

public void setEmissiveColor(Vector3 value)

放射色を設定します。

Parameters:

パラメーター説明
valueVector3
var mat = new LambertMaterial();
     mat.setEmissiveColor(new Vector3(1, 1, 1));
``` |

### setName(String value) {#setName-java.lang.String-}

public void setName(String value)



名前を設定します。

**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| 値 | java.lang.String | 新しい値 |

### setProperty(String property, Object value) {#setProperty-java.lang.String-java.lang.Object-}

public void setProperty(String property, Object value)



指定されたプロパティの値を設定します

**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| プロパティ | java.lang.String | プロパティ名 |
| 値 | java.lang.Object | プロパティの値 |

### setTexture(String slotName, TextureBase texture) {#setTexture-java.lang.String-com.aspose.threed.TextureBase-}

public void setTexture(String slotName, TextureBase texture)



テクスチャを指定されたスロットに設定します。

**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| slotName | java.lang.String | スロット名。 |
|  | texture | [TextureBase](../../com.aspose.threed/texturebase) | テクスチャ。 **Example:** |

var mat = new LambertMaterial(); var tex = new Texture(); tex.setFileName(“diffuse.png”); mat.setTexture(Material.MAP_NORMAL, tex);


### setTransparency(double value) {#setTransparency-double-}

public void setTransparency(double value)



透明度係数を設定します。係数は 0(0%、完全に不透明)から 1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。

**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| 値 | double | 新しい値 |

### setTransparentColor(Vector3 value) {#setTransparentColor-com.aspose.threed.Vector3-}

public void setTransparentColor(Vector3 value)



透過色を設定します。

**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | 新しい値 |

### toString() {#toString--}

public String toString()



オブジェクトを文字列にフォーマットします

**Returns:**
java.lang.String - オブジェクト文字列
### wait() {#wait--}

public final void wait()





### wait(long arg0) {#wait-long-}

public final void wait(long arg0)





**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}

public final void wait(long arg0, int arg1)





**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |