LightRig
개요
LightRig은(는) C++용 Aspose.Slides FOSS의 클래스입니다.
3D 씬 렌더링을 위한 라이트 리그 속성을 나타냅니다.
이 클래스는 C++ 프로그램에서 LightRig 객체를 다루기 위한 18개의 메서드를 제공합니다. 사용 가능한 메서드에는 LightRig, LightRigPresetType, LightingDirection, direction, ensure_light_rig, get_light_rig, get_rotation, has_parent, init_internal, latitude, light_type, longitude 및 추가 6개의 메서드가 포함됩니다. Aspose.Slides FOSS for C++ 패키지를 설치한 후에는 모든 공개 멤버에 C++ 애플리케이션에서 접근할 수 있습니다. 속성: LightRigPresetType, LightingDirection.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
LightRigPresetType | LightRigPresetType | 읽기 | 빛 리그 프리셋 유형을 가져옵니다. |
LightingDirection | LightingDirection | 읽기 | 조명 방향을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
LightRigPresetType() → LightRigPresetType | 속성은 라이트 릭 프리셋 유형을 가져오거나 설정합니다. |
LightingDirection() → LightingDirection | 속성은 조명 방향을 가져오거나 설정합니다. |
LightRig() | |
~LightRig() | |
init_internal(scene3d_element: pugi::xml_node, save_callback: std::function<void()>) | XML-백 라이트 리그를 초기화합니다. |
get_light_rig() → pugi::xml_node | scene3d 요소 내에 존재하는 경우 요소를 가져옵니다. |
ensure_light_rig() → pugi::xml_node | 기본값 rig=“threePt” dir=“t” 로 요소를 가져오거나 생성합니다. |
save() | 저장 콜백을 통해 변경 사항을 저장합니다. |
has_parent() → bool | 이 라이트 릭이 상위 XML 요소와 함께 초기화된 경우 true를 반환합니다. |
light_type() → LightRigPresetType | 라이트 릭 프리셋 유형을 반환합니다. |
set_light_type(value: LightRigPresetType) | 조명 리그 프리셋 유형을 설정합니다. |
direction() → LightingDirection | 조명 방향을 반환합니다. |
set_direction(value: LightingDirection) | 조명 방향을 설정합니다. |
set_rotation(lat: float, lon: float, rev: float) | 회전 각도(위도, 경도, 공전)를 도 단위로 설정합니다. |
get_rotation() → std::array<float, 3> | 회전을 {latitude, longitude, revolution} 형태로 도 단위에서 반환합니다. |
latitude() → float | 회전의 위도 구성 요소를 반환합니다. |
longitude() → float | 회전의 경도 구성 요소를 반환합니다. |
revolution() → float | 회전의 회전수 구성 요소를 반환합니다. |