Camera

Übersicht über die

Camera ist eine Klasse in Aspose.Slides FOSS für C++.

Darstellt Kameraeigenschaften für die 3D-Szenenverarbeitung.

Eigenschaften

NameTypeAccessDescription
CameraPresetTypeCameraPresetTypeReadGets the camera preset type.

Methoden und Verfahren

SignatureDescription
CameraPresetType()CameraPresetTypeReturns the current CameraPresetType of the camera
Camera()
~Camera()
init_internal(scene3d_element: pugi::xml_node, save_callback: std::function<void()>)Initialize XML-backed camera.
get_camera()pugi::xml_nodeGet the element if it exists within the scene3d element.
ensure_camera()pugi::xml_nodeGet or create the element with default preset “orthographicFront”.
save()Save changes via the save callback.
has_parent()boolReturns true if this camera has been initialized with a parent XML element.
camera_type()CameraPresetTypeReturns the camera preset type.
set_camera_type(value: CameraPresetType)Sets the camera preset type.
field_of_view_angle()floatReturns the field of view angle in degrees (0-180).
set_field_of_view_angle(value: float)Sets the field of view angle in degrees.
zoom()floatReturns the zoom factor as a percentage (default 100).
set_zoom(value: float)Sets the zoom factor as a percentage.
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.
 Deutsch