Table of Contents

Class Camera

Namespace
HelixToolkit.WinUI.SharpDX
Assembly
HelixToolkit.WinUI.SharpDX.dll

Specifies what portion of the 3D scene is rendered by the Viewport3DX element.

public abstract class Camera : DependencyObject, IWinRTObject, IDynamicInterfaceCastable, IEquatable<DependencyObject>, ICameraModel
Inheritance
Camera
Implements
IWinRTObject
Derived
Inherited Members
Extension Methods

Properties

CameraInternal

Gets the camera internal.

public CameraCore CameraInternal { get; }

Property Value

CameraCore

The camera internal.

CreateLeftHandSystem

Gets or sets a value indicating whether [create left hand system].

public abstract bool CreateLeftHandSystem { get; set; }

Property Value

bool

true if [create left hand system]; otherwise, false.

LookDirection

Gets or sets the look direction.

public abstract Vector3 LookDirection { get; set; }

Property Value

Vector3

The look direction.

Position

Gets or sets the position.

public abstract Vector3 Position { get; set; }

Property Value

Vector3

The position.

UpDirection

Gets or sets up direction.

public abstract Vector3 UpDirection { get; set; }

Property Value

Vector3

Up direction.

Methods

AnimateTo(Vector3, Vector3, Vector3, double)

Animates to.

public void AnimateTo(Vector3 newPosition, Vector3 newDirection, Vector3 newUpDirection, double animationTime)

Parameters

newPosition Vector3

The new position.

newDirection Vector3

The new direction.

newUpDirection Vector3

The new up direction.

animationTime double

The animation time.

CreatePortableCameraCore()

Creates the portable camera core.

protected abstract CameraCore CreatePortableCameraCore()

Returns

CameraCore

CreateProjectionMatrix(double)

Creates the projection matrix.

public Matrix4x4 CreateProjectionMatrix(double aspectRatio)

Parameters

aspectRatio double

The aspect ratio.

Returns

Matrix4x4

A Matrix4x4.

CreateViewMatrix()

Creates the view matrix.

public Matrix4x4 CreateViewMatrix()

Returns

Matrix4x4

A Matrix4x4.

OnCoreCreated(CameraCore)

Called when [core created].

protected virtual void OnCoreCreated(CameraCore core)

Parameters

core CameraCore

OnTimeStep()

Called when [time step] to update camera animation.

public virtual bool OnTimeStep()

Returns

bool

OnUpdateAnimation(float)

protected virtual bool OnUpdateAnimation(float ellapsed)

Parameters

ellapsed float

Returns

bool

StopAnimation()

public void StopAnimation()

Operators

implicit operator CameraCore?(Camera?)

public static implicit operator CameraCore?(Camera? camera)

Parameters

camera Camera

Returns

CameraCore