Class Camera

    Definition

    Namespace:
    Tizen.NUI.Scene3D
    Assembly:
    Tizen.NUI.Scene3D.dll

    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, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    Camera
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    Constructors

    View Source

    Camera()

    Creates an uninitialized Camera.

    Declaration
    public Camera()
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    Camera(Camera)

    Copy constructor.

    Declaration
    public Camera(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The Camera object to be copied.

    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    Properties

    View Source

    AspectRatio

    Gets the aspect ratio of the camera.

    Declaration
    public float AspectRatio { get; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    BottomPlaneDistance

    Gets the bottom clipping plane distance.

    Declaration
    public float BottomPlaneDistance { get; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    FarPlaneDistance

    Sets/Gets the far clipping plane distance.

    Declaration
    public float FarPlaneDistance { get; set; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    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
    Type Description
    Radian
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    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
    Type Description
    bool
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    LeftPlaneDistance

    Gets the left clipping plane distance.

    Declaration
    public float LeftPlaneDistance { get; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    NearPlaneDistance

    Sets/Gets the near clipping plane distance.

    Declaration
    public float NearPlaneDistance { get; set; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    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
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    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

    note

    This property doesn't change FieldOfView and OrthographicSize value automatically. So result scene might be changed.

    The default is Vertical.

    Declaration
    public Camera.ProjectionDirectionType ProjectionDirection { get; set; }
    Property Value
    Type Description
    Camera.ProjectionDirectionType
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    ProjectionMode

    Sets/Gets the projection mode. The default is Perspective

    Declaration
    public Camera.ProjectionModeType ProjectionMode { get; set; }
    Property Value
    Type Description
    Camera.ProjectionModeType
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    RightPlaneDistance

    Gets the right clipping plane distance.

    Declaration
    public float RightPlaneDistance { get; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    TopPlaneDistance

    Gets the top clipping plane distance.

    Declaration
    public float TopPlaneDistance { get; }
    Property Value
    Type Description
    float
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    Methods

    View Source

    Assign(Camera)

    Assignment.

    Declaration
    public Camera Assign(Camera rhs)
    Parameters
    Type Name Description
    Camera rhs
    Returns
    Type Description
    Camera
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    ConvertFovFromHorizontalToVertical(float, 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
    Type Name Description
    float aspect
    Radian fov
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    ConvertFovFromVerticalToHorizontal(float, 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
    Type Name Description
    float aspect
    Radian fov
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    View Source

    ReleaseSwigCPtr(HandleRef)

    Release swigCPtr.

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Remarks

    Transform inheritance cannot be guaranteed when adding children to a camera.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX