Definition
- Namespace:
- Tizen.NUI.Scene3D
- Assembly:
- Tizen.NUI.Scene3D.dll
- API Level:
- 10
Camera class controls a camera in 3D space.
Camera can be added on the SceneView and displays SceneView's virtual 3D world to the screen.
Camera can be translated and rotated in the space.
public class Camera : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
Declaration
API Level: 10
Declaration
public Camera(Camera camera)
Parameters
Type |
Name |
Description |
Camera |
camera |
The Camera object to be copied.
|
API Level: 10
Properties
View Source
AspectRatio
Gets the aspect ratio of the camera.
Declaration
public float AspectRatio { get; }
Property Value
API Level: 10
View Source
BottomPlaneDistance
Gets the bottom clipping plane distance.
Declaration
public float BottomPlaneDistance { get; }
Property Value
View Source
FarPlaneDistance
Sets/Gets the far clipping plane distance.
Declaration
public float FarPlaneDistance { get; set; }
Property Value
API Level: 10
View Source
FieldOfView
Sets/Gets the field of view in Radians.
FieldOfView depends on ProjectionDirection value.
The default field of view is 45 degrees.
Declaration
public Radian FieldOfView { get; set; }
Property Value
API Level: 10
View Source
InvertYAxis
Requests for an inversion on the Y axis on the projection calculation.
or gets whether the Y axis is inverted.
Declaration
public bool InvertYAxis { get; set; }
Property Value
View Source
LeftPlaneDistance
Gets the left clipping plane distance.
Declaration
public float LeftPlaneDistance { get; }
Property Value
View Source
NearPlaneDistance
Sets/Gets the near clipping plane distance.
Declaration
public float NearPlaneDistance { get; set; }
Property Value
API Level: 10
View Source
OrthographicSize
Sets/Gets Orthographic Size of this camera.
OrthographicSize depends on ProjectionDirection value.
If ProjectoinDirection is Vertical, OrthographicSize is height/2 of viewing cube of Orthographic projection.
If ProjectoinDirection is Horizontal, OrthographicSize is width/2 of viewing cube of Orthographic projection.
Remained Width or Height of viewing cube is internally computed by using aspect ratio of Viewport.
Declaration
public float OrthographicSize { get; set; }
Property Value
API Level: 10
View Source
ProjectionDirection
Sets/Gets the projection direction.
Projection direction determine basic direction of projection relative properties.
It will be used when we need to calculate some values relative with aspect ratio.
FieldOfView, and OrthographicSize
For example, if aspect ratio is 4:3 and set fieldOfView as 60 degree.
If ProjectionDirectionType.Vertical, basic direction is vertical. so, FoV of horizontal direction become ~75.2 degree
If ProjectionDirectionType.Horizontal, basic direction is horizontal. so, FoV of vertical direction become ~46.8 degree
The default is Vertical.
Declaration
public Camera.ProjectionDirectionType ProjectionDirection { get; set; }
Property Value
View Source
ProjectionMode
Sets/Gets the projection mode.
The default is Perspective
Declaration
public Camera.ProjectionModeType ProjectionMode { get; set; }
Property Value
API Level: 10
View Source
RightPlaneDistance
Gets the right clipping plane distance.
Declaration
public float RightPlaneDistance { get; }
Property Value
View Source
TopPlaneDistance
Gets the top clipping plane distance.
Declaration
public float TopPlaneDistance { get; }
Property Value
Methods
Declaration
public Camera Assign(Camera rhs)
Parameters
Type |
Name |
Description |
Camera |
rhs |
|
Returns
View Source
ConvertFovFromHorizontalToVertical(Single, ref Radian)
Convert from horizontal fov to vertical fov consider with camera's AspectRatio.
Declaration
public static void ConvertFovFromHorizontalToVertical(float aspect, ref Radian fov)
Parameters
View Source
ConvertFovFromVerticalToHorizontal(Single, ref Radian)
Convert from vertical fov to horizontal fov consider with camera's AspectRatio.
Declaration
public static void ConvertFovFromVerticalToHorizontal(float aspect, ref Radian fov)
Parameters
View Source
ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Implements
Extension Methods