Click or drag to resize
Ab4d.SharpEngine logo

PointerCameraController Class

PointerCameraController is a camera controller that can control the camera by mouse events. This class can be used in WPF application and can subscribe to mouse events on the WPF Control that is defined by the EventsSourceElement.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.Wpf
Assembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class PointerCameraController : ManualPointerCameraController

The PointerCameraController type exposes the following members.

Constructors
 NameDescription
Public methodPointerCameraController Constructor
Public methodPointerCameraController(SceneView, FrameworkElement) Constructor that takes SceneView and eventsSourceElement
Public methodPointerCameraController(SharpEngineSceneView, FrameworkElement) Constructor that takes SharpEngineSceneView and an optional FrameworkElement as events source. If later is not specified, then SharpEngineSceneView is used as events source.
Top
Properties
 NameDescription
Public propertyEventsSourceElement Gets or sets the WPF's FrameworkElement that is used to subscribe the mouse events (for example a Border that is a parent of a SharpEngineSceneView). If the property is not set, SharpEngineSceneView element is used as event source (if not null).
Public propertySharpEngineSceneView Gets or sets the SharpEngineSceneView that is controlled by this PointerCameraController.
Top
See Also