LambertMaterial
개요
LambertMaterial은 Aspose.3D FOSS에서 Java용 클래스입니다. 상속 대상: Material.
Lambert 셰이딩 모델용 Material.
이 클래스는 Java 프로그램에서 LambertMaterial 객체를 다루기 위한 26개의 메서드를 제공합니다. 사용 가능한 메서드에는 A3DObject, LambertMaterial, findProperty, getAmbientColor, getDiffuseColor, getEmissiveColor, getName, getProperties, getProperty, getTexture, getTransparency, getTransparentColor 및 추가 11개의 메서드가 포함됩니다. 모든 public 멤버는 Aspose.3D FOSS for Java 패키지를 설치한 후 any Java 애플리케이션에서 접근할 수 있습니다. 속성: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, ambientColor 및 추가 6개.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
emissiveColor | Vector3 | 읽기 | 방출 색상을 가져오거나 설정합니다. |
ambientColor | Vector3 | 읽기 | ambient 색상을 가져오거나 설정합니다. |
diffuseColor | Vector3 | 읽기 | 확산 색상을 가져오거나 설정합니다. |
transparentColor | Vector3 | 읽기 | 투명 색상을 가져오거나 설정합니다. |
transparency | double | 읽기 | 투명도 계수를 가져오거나 설정합니다. |
MAP_SPECULAR | String | 읽기 | setTexture(java.lang.String, com.aspose.threed.TextureBase)에서 specular 텍스처 매핑을 할당하는 데 사용됩니다. |
MAP_DIFFUSE | String | 읽기 | setTexture(java.lang.String, com.aspose.threed.TextureBase)에서 diffuse 텍스처 매핑을 할당하는 데 사용됩니다. |
MAP_EMISSIVE | String | 읽기 | setTexture(java.lang.String, com.aspose.threed.TextureBase)에서 emissive 텍스처 매핑을 할당하는 데 사용됩니다. |
MAP_AMBIENT | String | 읽기 | setTexture(java.lang.String, com.aspose.threed.TextureBase)에서 ambient 텍스처 매핑을 할당하는 데 사용됩니다. |
MAP_NORMAL | String | 읽기 | setTexture(java.lang.String, com.aspose.threed.TextureBase)에서 normal 텍스처 매핑을 할당하는 데 사용됩니다. |
name | String | 읽기 | 이름을 가져옵니다. |
properties | PropertyCollection | 읽기 | 속성을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
LambertMaterial() | 새로운 LambertMaterial 클래스의 인스턴스를 초기화합니다. |
LambertMaterial(name: String) | 새로운 LambertMaterial 클래스의 인스턴스를 초기화합니다. |
getEmissiveColor() → Vector3 | 방출 색상을 가져오거나 설정합니다. |
setEmissiveColor(emissiveColor: Vector3) | 방출 색상 값을 설정합니다. |
getAmbientColor() → Vector3 | 앰비언트 색상을 가져오거나 설정합니다. |
setAmbientColor(ambientColor: Vector3) | 주변 색상 값을 설정합니다. |
getDiffuseColor() → Vector3 | 확산 색상을 가져오거나 설정합니다. |
setDiffuseColor(diffuseColor: Vector3) | 확산 색상 값을 설정합니다. |
getTransparentColor() → Vector3 | 투명 색상을 가져오거나 설정합니다. |
setTransparentColor(transparentColor: Vector3) | 투명 색상 값을 설정합니다. |
getTransparency() → double | 투명도 계수를 가져오거나 설정합니다. |
setTransparency(transparency: double) | 투명도 값을 설정합니다. |
getTexture(slotName: String) → TextureBase | 지정된 슬롯에서 텍스처를 가져옵니다. 이는 재질의 속성 이름이거나 셰이더의 파라미터 이름일 수 있습니다. |
setTexture(slotName: String, texture: TextureBase) | 지정된 슬롯에 텍스처를 설정합니다. |
toString() → String | 객체를 문자열로 포맷합니다. |
iterator() → Iterator<TextureSlot> | 내부 텍스처 슬롯을 열거하기 위한 열거자를 가져옵니다. |
A3DObject() | 이 LambertMaterial 인스턴스에서 A3DObject를 호출합니다. |
A3DObject(name: String) | 이 LambertMaterial 인스턴스에서 A3DObject(name)를 호출합니다. |
getName() → String | 이름을 반환합니다. |
setName(name: String) | 이름 값을 설정합니다. |
getProperties() → PropertyCollection | 속성을 반환합니다. |
findProperty(name: String) → Property | 이 LambertMaterial 인스턴스에서 findProperty(name)를 호출합니다. |
getProperty(name: String) → Object | 방출 색상을 가져오거나 설정합니다. |
setProperty(name: String, value: Object) | 속성 값을 설정합니다. |
removeProperty(name: String) → boolean | 이 LambertMaterial 인스턴스에서 removeProperty(name)를 호출합니다. |
removeProperty(property: Property) → boolean | 이 LambertMaterial 인스턴스에서 removeProperty(property)를 호출합니다. |