Click or drag to resize
AB4D logo

WpfCamera Class

WpfCamera is a camera that converts the WPF's camera into DXEngine's camera. To use the camera on non-UI thread, user needs to call Update method on the UI thread and then this camera data can be accessed on any thread.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectX.CamerasBaseCamera
    Ab3d.DirectX.CamerasWpfCamera

Namespace: Ab3d.DirectX.Cameras
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
[ContentPropertyAttribute("Camera")]
public class WpfCamera : BaseCamera, ILookDirectionCamera, 
	IPerspectiveCamera

The WpfCamera type exposes the following members.

Constructors
 NameDescription
Public methodWpfCamera Constructor
Public methodWpfCamera(Camera, Single) Constructor
Top
Properties
 NameDescription
Public propertyCamera Gets or sets a WPF camera
Public propertyFieldOfView Gets or sets camera's field of view in degrees or zero when the camera is not a PerspectiveCamera.
Top
Methods
 NameDescription
Public methodGetCameraLookDirection Returns the camera look direction.
Public methodGetCameraPosition Returns the current position of the camera.
(Overrides BaseCameraGetCameraPosition)
Public methodStatic memberGetProjectionMatrix GetProjectionMatrix returns projection Matrix for the specified camera's properties
Public methodStatic memberGetViewMatrix GetViewMatrix sets viewMatrix and cameraPosition from the WPF's camera and isUsingRightHandedCoordinateSystem
Public methodUpdate Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true.
(Overrides BaseCameraUpdate(Boolean))
Top
See Also