PhongMaterial

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

public class PhongMaterial extends LambertMaterial

Blinn-Phong 셰이딩 모델용 재질.

생성자

생성자설명
PhongMaterial()PhongMaterial 클래스의 새 인스턴스를 초기화합니다.
PhongMaterial(String name)PhongMaterial 클래스의 새 인스턴스를 초기화합니다.

필드

필드설명
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)지정된 속성의 값을 가져옵니다
getReflectionColor()반사 색상을 가져옵니다.
getReflectionFactor()반사 색상의 감쇠를 가져옵니다.
getShininess()광택도를 가져옵니다. 이는 반사 하이라이트의 크기를 제어합니다.
getSpecularColor()스페큘러 색상을 가져옵니다.
getSpecularFactor()스페큘러 계수를 가져옵니다.
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)지정된 속성의 값을 설정합니다.
setReflectionColor(Vector3 value)반사 색상을 설정합니다.
setReflectionFactor(double value)반사 색상의 감쇠를 설정합니다.
setShininess(double value)광택을 설정합니다. 이는 반사 하이라이트의 크기를 제어합니다.
setSpecularColor(Vector3 value)반사 색상을 설정합니다.
setSpecularFactor(double value)반사 계수를 설정합니다.
setTexture(String slotName, TextureBase texture)텍스처를 지정된 슬롯에 설정합니다.
setTransparency(double value)투명도 계수를 설정합니다.
setTransparentColor(Vector3 value)투명 색상을 설정합니다.
toString()객체를 문자열로 포맷합니다
wait()
wait(long arg0)
wait(long arg0, int arg1)

PhongMaterial()

public PhongMaterial()

PhongMaterial 클래스의 새 인스턴스를 초기화합니다.

PhongMaterial(String name)

public PhongMaterial(String name)

PhongMaterial 클래스의 새 인스턴스를 초기화합니다.

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)

속성을 찾습니다. 동적 속성 (Created by CreateDynamicProperty/SetProperty) 또는 네이티브 속성 (Identified by its name)일 수 있습니다.

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 - 찾은 속성의 값

getReflectionColor()

public Vector3 getReflectionColor()

반사 색상을 가져옵니다.

Returns: Vector3 - the reflection color.

getReflectionFactor()

public double getReflectionFactor()

반사 색상의 감쇠를 가져옵니다.

Returns: double - 반사 색상의 감쇠.

getShininess()

public double getShininess()

광택을 가져옵니다. 이는 반사 하이라이트의 크기를 제어합니다. 반사 공식: SpecularColor * SpecularFactor * (N dot H) ^ Shininess

Returns: double - 광택, 이는 반사 하이라이트의 크기를 제어합니다. 반사 공식: SpecularColor * SpecularFactor * (N dot H) ^ Shininess

getSpecularColor()

public Vector3 getSpecularColor()

스페큘러 색상을 가져옵니다.

Returns: Vector3 - the specular color.

getSpecularFactor()

public double getSpecularFactor()

반사 계수를 가져옵니다. 반사 공식: SpecularColor * SpecularFactor * (N dot H) ^ Shininess

Returns: double - 반사 계수. 반사 공식: SpecularColor * SpecularFactor * (N dot H) ^ Shininess

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 | 속성의 값 |

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

public void setReflectionColor(Vector3 value)



반사 색상을 설정합니다.

**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | 새 값 |

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

public void setReflectionFactor(double value)



반사 색상의 감쇠를 설정합니다.

**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 값 | double | 새 값 |

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

public void setShininess(double value)



광택을 설정합니다. 이는 반사 하이라이트의 크기를 제어합니다. 반사 공식: SpecularColor \* SpecularFactor \* (N dot H) ^ Shininess

**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 값 | double | 새 값 |

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

public void setSpecularColor(Vector3 value)



반사 색상을 설정합니다.

**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | 새 값 |

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

public void setSpecularFactor(double value)



반사 계수를 설정합니다. 반사 공식: SpecularColor \* SpecularFactor \* (N dot H) ^ Shininess

**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 값 | double | 새 값 |

### 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 |  |