LightRig

Overview

LightRig is a class in Aspose.Slides FOSS for C++.

Represents light rig properties for 3D scene rendering.

This class provides 18 methods for working with LightRig objects in C++ programs. Available methods include: LightRig, LightRigPresetType, LightingDirection, direction, ensure_light_rig, get_light_rig, get_rotation, has_parent, init_internal, latitude, light_type, longitude, and 6 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: LightRigPresetType, LightingDirection.

Properties

NameTypeAccessDescription
LightRigPresetTypeLightRigPresetTypeReadGets the light rig preset type.
LightingDirectionLightingDirectionReadGets the lighting direction.

Methods

SignatureDescription
LightRigPresetType() → LightRigPresetTypeProperty gets or sets the light rig preset type
LightingDirection() → LightingDirectionProperty gets or sets the lighting direction
LightRig()
~LightRig()
init_internal(scene3d_element: pugi::xml_node, save_callback: std::function<void()>)Initialize XML-backed light rig.
get_light_rig() → pugi::xml_nodeGet the element if it exists within the scene3d element.
ensure_light_rig() → pugi::xml_nodeGet or create the element with defaults rig=“threePt” dir=“t”.
save()Save changes via the save callback.
has_parent() → boolReturns true if this light rig has been initialized with a parent XML element.
light_type() → LightRigPresetTypeReturns the light rig preset type.
set_light_type(value: LightRigPresetType)Sets the light rig preset type.
direction() → LightingDirectionReturns the lighting direction.
set_direction(value: LightingDirection)Sets the lighting direction.
set_rotation(lat: float, lon: float, rev: float)Sets the rotation angles (latitude, longitude, revolution) in degrees.
get_rotation() → std::array<float, 3>Returns the rotation as {latitude, longitude, revolution} in degrees.
latitude() → floatReturns the latitude component of the rotation.
longitude() → floatReturns the longitude component of the rotation.
revolution() → floatReturns the revolution component of the rotation.

See Also

 English