Caméra
Vue de l’ensemble
« Caméra » est une classe dans Aspose.Slides FOSS pour C++.
Représente les propriétés de la caméra pour le rendu de scènes 3D.
Cette classe fournit 19 méthodes pour travailler avec des objets de caméra dans les programmes C++. Les méthodologies disponibles comprennent: Camera, KameraPresetType , camera_type‘, 'ensure_camere ; field_of_view_angle; get_camera' ; 'get-rotation : ‘has_parent et 'init_internal . la longueur, la «longitude », la “révolution” et 7 méthode supplémentaires. Tous les membres publics sont accessibles à toute application C ++ après l’installation du package Aspose.Slides FOSS pour le pack C+. Propriétés : `
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
CameraPresetType | CameraPresetType | Read | Gets the camera preset type. |
méthodes
| Signature | Description |
|---|---|
CameraPresetType() → CameraPresetType | Returns 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_node | Get the element if it exists within the scene3d element. |
ensure_camera() → pugi::xml_node | Get or create the element with default preset “orthographicFront”. |
save() | Save changes via the save callback. |
has_parent() → bool | Returns true if this camera has been initialized with a parent XML element. |
camera_type() → CameraPresetType | Returns the camera preset type. |
set_camera_type(value: CameraPresetType) | Sets the camera preset type. |
field_of_view_angle() → float | Returns 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() → float | Returns 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() → float | Returns the latitude component of the rotation. |
longitude() → float | Returns the longitude component of the rotation. |
revolution() → float | Returns the revolution component of the rotation. |
Voir aussi
- Aspose.Slides - référence API d’entreprise