Show / Hide Table of Contents

    Class ArucoCameraDisplay

    Manages Unity virual cameras that shoot 3D content aligned with the Images displayed as background. It creates the augmented reality effect by the images from the physical cameras and the ArucoObject tracked by ArucoObjectsTracker.

    Inheritance
    Object
    Controller
    ArucoCameraController
    ArucoCameraDisplay
    ArucoCameraDisplayGeneric<T, U>
    Implements
    IArucoCameraDisplay
    IArucoCameraController
    IController
    Inherited Members
    ArucoCameraController.ArucoCamera
    Controller.Configured
    Controller.Ready
    Controller.Started
    Controller.Stopped
    Controller.AutoStart
    Controller.IsConfigured
    Controller.IsReady
    Controller.IsStarted
    Controller.Awake()
    Controller.Start()
    Controller.OnDestroy()
    Controller.AddDependency(IController)
    Controller.RemoveDependency(IController)
    Controller.GetDependencies()
    Controller.Configure()
    Controller.StartController()
    Controller.StopController()
    Controller.OnConfigured()
    Controller.OnStarted()
    Controller.OnStopped()
    Namespace: ArucoUnity.Cameras.Displays
    Assembly: Assembly-CSharp.dll
    Syntax
    public abstract class ArucoCameraDisplay : ArucoCameraController, IArucoCameraDisplay, IArucoCameraController, IController

    Fields

    | Improve this Doc View Source

    cameraBackgroundDistance

    Declaration
    public const float cameraBackgroundDistance = 1F
    Field Value
    Type Description
    Single

    Properties

    | Improve this Doc View Source

    ArucoCameraUndistortion

    Gets or sets the optional undistortion process associated with the ArucoCamera.

    Declaration
    public IArucoCameraUndistortion ArucoCameraUndistortion { get; set; }
    Property Value
    Type Description
    IArucoCameraUndistortion
    | Improve this Doc View Source

    BackgroundCameras

    Declaration
    public virtual Camera[] BackgroundCameras { get; protected set; }
    Property Value
    Type Description
    Camera[]
    | Improve this Doc View Source

    Backgrounds

    Declaration
    public virtual Renderer[] Backgrounds { get; protected set; }
    Property Value
    Type Description
    Renderer[]
    | Improve this Doc View Source

    Cameras

    Declaration
    public virtual Camera[] Cameras { get; protected set; }
    Property Value
    Type Description
    Camera[]

    Methods

    | Improve this Doc View Source

    ConfigureDefaultBackgrounds()

    Places the Backgrounds in front of the corresponding BackgroundCameras centered and scaled to fit in the camera view.

    Declaration
    protected virtual void ConfigureDefaultBackgrounds()
    | Improve this Doc View Source

    ConfigureDisplay()

    Configures the BackgroundCameras and the Backgrounds according to the ArucoCameraUndistortion if set otherwise with default values.

    Declaration
    protected virtual void ConfigureDisplay()
    | Improve this Doc View Source

    ConfigureRectifiedBackground(Int32)

    Places a Backgrounds in front of the corresponding BackgroundCameras centered with the principal point of the corresponding rectified camera matrix in RectifiedCameraMatrices and scaled to fit in the field of view calculated from the focal lengths of the rectified camera matrix.

    Declaration
    protected virtual void ConfigureRectifiedBackground(int cameraId)
    Parameters
    Type Name Description
    Int32 cameraId

    The id of the background and the background camera to configure.

    | Improve this Doc View Source

    ConfigureRectifiedCamera(Int32)

    Configures the field of view of a Cameras according to the vertical focal length of the corresponding rectified camera matrix in RectifiedCameraMatrices. If the camera targets an eye in VR mode, Unity has already configured it.

    Declaration
    protected virtual void ConfigureRectifiedCamera(int cameraId)
    Parameters
    Type Name Description
    Int32 cameraId

    The id of the camera to configure.

    | Improve this Doc View Source

    Configuring()

    Adds ArucoCameraUndistortion as dependency if set.

    Declaration
    protected override void Configuring()
    Overrides
    ArucoCameraController.Configuring()
    | Improve this Doc View Source

    PlaceArucoObject(Transform, Int32, Vector3, Quaternion)

    Declaration
    public virtual void PlaceArucoObject(Transform arucoObject, int cameraId, Vector3 localPosition, Quaternion localRotation)
    Parameters
    Type Name Description
    Transform arucoObject
    Int32 cameraId
    Vector3 localPosition
    Quaternion localRotation
    | Improve this Doc View Source

    SetDisplayActive(Boolean)

    Activates or deactivates the Cameras, the BackgroundCameras and the Backgrounds.

    Declaration
    protected virtual void SetDisplayActive(bool value)
    Parameters
    Type Name Description
    Boolean value

    True to activate, false to deactivate.

    | Improve this Doc View Source

    Starting()

    Calls ConfigureDisplay() the SetDisplayActive(Boolean) to activate the display.

    Declaration
    protected override void Starting()
    Overrides
    Controller.Starting()
    | Improve this Doc View Source

    Stopping()

    Deactivates the display with SetDisplayActive(Boolean).

    Declaration
    protected override void Stopping()
    Overrides
    Controller.Stopping()

    Implements

    IArucoCameraDisplay
    IArucoCameraController
    IController
    • Improve this Doc
    • View Source
    Back to top Aruco Unity - Erwan Normand