ThreeDFormat

Overview

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

Represents 3D formatting properties of a shape.

This class declares 38 methods for ThreeDFormat objects in C++ programs. Available methods include: Camera, LightRig, MaterialPresetType, ShapeBevel, SimpleColorFormat, ThreeDFormat, bevel_bottom, bevel_top, camera, contour_color, contour_width, depth, and 16 additional methods. Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Accessor methods: Camera, LightRig, MaterialPresetType, ShapeBevel, SimpleColorFormat.

Accessor Methods

NameTypeAccessDescription
ShapeBevelShapeBevelReadGets the shape bevel.
CameraCameraReadGets the camera.
LightRigLightRigReadGets the light rig.
SimpleColorFormatSimpleColorFormatReadGets the simple color format.
MaterialPresetTypeMaterialPresetTypeReadGets the material preset type.

Methods

SignatureDescription
ShapeBevel() → ShapeBevelReturns the ShapeBevel object that defines bevel settings for the shape
ShapeBevel() → ShapeBevel
Camera() → CameraReturns the Camera object that controls the 3‑D view perspective
LightRig() → LightRigReturns the LightRig object that defines lighting for the 3‑D effect
SimpleColorFormat() → SimpleColorFormatReturns the extrusion color, a:sp3d/a:extrusionClr. Mutating it writes the element straight into the backing XML when this object is bound to one, and is picked up by serialize_to_xml() when it is not.
SimpleColorFormat() → SimpleColorFormatReturns the SimpleColorFormat object that specifies a solid color fill for 3‑D
SimpleColorFormat() → SimpleColorFormatReturns the contour color, a:sp3d/a:contourClr. See extrusion_color().
SimpleColorFormat() → SimpleColorFormat
MaterialPresetType() → MaterialPresetTypeReturns the material preset type.
ThreeDFormat()Calls ThreeDFormat on this ThreeDFormat instance.
init_internal(parent_element: pugi::xml_node, save_callback: std::function<void()>)Initialize XML-backed 3D format.
get_sp3d() → pugi::xml_nodeGet the element if it exists.
ensure_sp3d() → pugi::xml_nodeGet or create the element at the correct OOXML position.
get_scene3d() → pugi::xml_nodeGet the element if it exists.
ensure_scene3d() → pugi::xml_nodeGet or create the element at the correct OOXML position.
save()Save changes via the save callback.
has_data() → boolReturns true if any 3D properties have been set.
serialize_to_xml(sp_pr: pugi::xml_node)Serialize 3D formatting to an XML spPr node (for from-scratch save).
bevel_top() → ShapeBevelReturns the top bevel properties (ensures sp3d element exists).
bevel_top() → ShapeBevelCalls bevel_top on this ThreeDFormat instance.
bevel_bottom() → ShapeBevelReturns the bottom bevel properties (ensures sp3d element exists).
bevel_bottom() → ShapeBevelCalls bevel_bottom on this ThreeDFormat instance.
camera() → CameraReturns the camera properties (ensures scene3d element exists).
camera() → CameraCalls camera on this ThreeDFormat instance.
light_rig() → LightRigReturns the light rig properties (ensures scene3d element exists).
light_rig() → LightRigCalls light_rig on this ThreeDFormat instance.
depth() → doubleReturns the extrusion depth.
set_depth(value: double)Sets the extrusion depth of the 3‑D shape
extrusion_height() → doubleReturns the extrusion height. This is the same OOXML attribute as depth() - a:sp3d/@extrusionH - under its other name.
set_extrusion_height(value: double)Calls set_extrusion_height(value) on this ThreeDFormat instance.
extrusion_color() → SimpleColorFormatReturns the extrusion color, a:sp3d/a:extrusionClr. Mutating it writes the element straight into the backing XML when this object is bound to one, and is picked up by serialize_to_xml() when it is not.
extrusion_color() → SimpleColorFormatCalls extrusion_color on this ThreeDFormat instance.
contour_width() → doubleReturns the contour width.
set_contour_width(value: double)Calls set_contour_width(value) on this ThreeDFormat instance.
contour_color() → SimpleColorFormatReturns the contour color, a:sp3d/a:contourClr. See extrusion_color().
contour_color() → SimpleColorFormatCalls contour_color on this ThreeDFormat instance.
material() → MaterialPresetTypeReturns the material preset type.
set_material(value: MaterialPresetType)Assigns a material preset to the 3‑D surface

See Also

 English