Table of Contents

Class CameraCore

Namespace
HelixToolkit.SharpDX.Cameras
Assembly
HelixToolkit.SharpDX.dll
public abstract class CameraCore : ObservableObject, INotifyPropertyChanged, ICamera
Inheritance
CameraCore
Implements
Derived
Inherited Members
Extension Methods

Properties

CreateLeftHandSystem

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

public bool CreateLeftHandSystem { get; set; }

Property Value

bool

true if creating a left hand system; otherwise, false.

LookDirection

Gets or sets the look direction.

public Vector3 LookDirection { get; set; }

Property Value

Vector3

The look direction.

Position

Gets or sets the position.

public Vector3 Position { get; set; }

Property Value

Vector3

The position.

Target

public Vector3 Target { get; }

Property Value

Vector3

UpDirection

Gets or sets up direction.

public Vector3 UpDirection { get; set; }

Property Value

Vector3

Up direction.

Methods

AnimateTo(Vector3, Vector3, Vector3, float)

Animates to.

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

Parameters

newPosition Vector3

The new position.

newDirection Vector3

The new direction.

newUpDirection Vector3

The new up direction.

animationTime float

The animation time.

CreateCameraParams(float)

public abstract FrustumCameraParams CreateCameraParams(float aspectRatio)

Parameters

aspectRatio float

Returns

FrustumCameraParams

CreateCameraParams(float, float, float)

public abstract FrustumCameraParams CreateCameraParams(float aspectRatio, float nearPlane, float farPlane)

Parameters

aspectRatio float
nearPlane float
farPlane float

Returns

FrustumCameraParams

CreateProjectionMatrix(float)

Creates the projection matrix.

public abstract Matrix4x4 CreateProjectionMatrix(float aspectRatio)

Parameters

aspectRatio float

The aspect ratio.

Returns

Matrix4x4

A Matrix4x4.

CreateProjectionMatrix(float, float, float)

Creates the projection matrix.

public abstract Matrix4x4 CreateProjectionMatrix(float aspectRatio, float nearPlane, float farPlane)

Parameters

aspectRatio float

The aspect ratio.

nearPlane float

The near plane.

farPlane float

The far plane.

Returns

Matrix4x4

CreateViewMatrix()

Creates the view matrix.

public abstract Matrix4x4 CreateViewMatrix()

Returns

Matrix4x4

A Matrix4x4.

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()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.