Camera class
Camera. When the object is serialized out as xml, its qualified name is a:camera.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Camera
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
camera (Camera)
This element defines the placement and properties of the camera in the 3D scene. The camera position and properties modify the view of the scene.
[Example: Consider the following example of a camera in DrawingML:
<a:camera prst="orthographicFront"> <a:rot lat="19902513" lon="17826689" rev="1362739"/> </a:camera>
In this example, we see a preset camera being defined along with a rotation containing latitude, longitude, and revolution overrides provided that further rotate the camera around the scene. The effect of this camera can be seen on the following shape:
end example]
Parent Elements |
|---|
scene3d (§21.4.5.5); scene3d (§20.1.4.1.26) |
Child Elements | Subclause |
|---|---|
rot (Rotation) | §20.1.5.11 |
Attributes | Description |
|---|---|
fov (Field of View) | Provides an override for the default field of view for the camera. Different perspectives can be obtained by modifying this attribute. [Example: Consider the following example of a fov in DrawingML: <a:camera prst="perspectiveContrastingRightFacing" fov="6900000"> <a:rot lat="1200000" lon="18000000" rev="1200000"/> </a:camera> In this example, we see a fov being defined which modifies the default fov for the preset camera. end example] The possible values for this attribute are defined by the ST_FOVAngle simple type (§20.1.10.26). |
prst (Preset Camera Type) | Defines the preset camera that is being used by the camera element. The preset camera defines a starting point for common preset rotations in space. [Example: Consider the following example of a prst in DrawingML: <a:camera prst="perspectiveContrastingRightFacing" fov="6900000"> <a:rot lat="1200000" lon="18000000" rev="1200000"/> </a:camera> In this example, we see a prst being defined as perspectiveContrastingRightFacing. end example] The possible values for this attribute are defined by the ST_PresetCameraType simple type (§20.1.10.47). |
zoom (Zoom) | Defines the zoom factor of a given camera element. The zoom modifies the scene as a whole and zooms in or out accordingly. [Example: Consider the following example of a zoom in DrawingML: <a:camera prst="perspectiveContrastingRightFacing" fov="6900000" zoom="200000"> <a:rot lat="1200000" lon="18000000" rev="1200000"/> /a:camera> In this example, we see a zoom being used which zooms the scene by 200%. end example] The possible values for this attribute are defined by the ST_PositivePercentage simple type (§20.1.10.46). |
[Note: The W3C XML Schema definition of this element’s content model (CT_Camera) is located in §A.4.1. end note]
© ISO/IEC29500: 2008.