Table of Contents

Class Camera

Namespace
HelixToolkit.Wpf.SharpDX
Assembly
HelixToolkit.Wpf.SharpDX.dll

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

public abstract class Camera : Animatable, IAnimatable, ICameraModel
Inheritance
Camera
Implements
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 Vector3D LookDirection { get; set; }

Property Value

Vector3D

The look direction.

Position

Gets or sets the position.

public abstract Point3D Position { get; set; }

Property Value

Point3D

The position.

UpDirection

Gets or sets up direction.

public abstract Vector3D UpDirection { get; set; }

Property Value

Vector3D

Up direction.

Methods

AnimateTo(Point3D, Vector3D, Vector3D, double)

Animates to.

public void AnimateTo(Point3D newPosition, Vector3D newDirection, Vector3D newUpDirection, double animationTime)

Parameters

newPosition Point3D

The new position.

newDirection Vector3D

The new direction.

newUpDirection Vector3D

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