Click or drag to resize
Ab4d.SharpEngine logo

PointerCameraController Class

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

Namespace: Ab4d.SharpEngine.AvaloniaUI
Assembly: Ab4d.SharpEngine.AvaloniaUI (in Ab4d.SharpEngine.AvaloniaUI.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, IInputElement) Constructor that takes SceneView and eventsSourceElement
Public methodPointerCameraController(SharpEngineSceneView, IInputElement) Constructor that takes SharpEngineSceneView and an optional IInputElement as events source. If later is not specified, then SharpEngineSceneView is used as events source.
Top
Properties
 NameDescription
Public propertyEventsSourceElement Gets or sets the IInputElement that is used to subscribe the pointer or 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