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
trueif 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
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
newPositionVector3The new position.
newDirectionVector3The new direction.
newUpDirectionVector3The new up direction.
animationTimefloatThe animation time.
CreateCameraParams(float)
public abstract FrustumCameraParams CreateCameraParams(float aspectRatio)
Parameters
aspectRatiofloat
Returns
CreateCameraParams(float, float, float)
public abstract FrustumCameraParams CreateCameraParams(float aspectRatio, float nearPlane, float farPlane)
Parameters
Returns
CreateProjectionMatrix(float)
Creates the projection matrix.
public abstract Matrix4x4 CreateProjectionMatrix(float aspectRatio)
Parameters
aspectRatiofloatThe aspect ratio.
Returns
CreateProjectionMatrix(float, float, float)
Creates the projection matrix.
public abstract Matrix4x4 CreateProjectionMatrix(float aspectRatio, float nearPlane, float farPlane)
Parameters
Returns
CreateViewMatrix()
Creates the view matrix.
public abstract Matrix4x4 CreateViewMatrix()
Returns
OnTimeStep()
Called when [time step] to update camera animation.
public virtual bool OnTimeStep()
Returns
OnUpdateAnimation(float)
protected virtual bool OnUpdateAnimation(float ellapsed)
Parameters
ellapsedfloat
Returns
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.