![]() |
LuciadCPillar C# 2024.1.04
|
Handler that translates drag gesture events to a rotate operation. More...
Public Member Functions | |
RotateEventHandler () | |
Creates a new instance. More... | |
void | Dispose () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Luciad.Controllers.EventResult | OnDragEvent (Luciad.Input.DragEvent dragEvent, Luciad.Maps.Map map) |
Rotates the map's camera following the drag direction. More... | |
Properties | |
bool | IsPitchEnabled [get, set] |
Whether the RotateEventHandler can change the pitch of the camera. More... | |
bool | IsYawEnabled [get, set] |
Whether the RotateEventHandler can change the yaw of the camera. More... | |
Handler that translates drag gesture events to a rotate operation.
Rotation is done using a MapNavigator.RotateAction
, please check this class documentation for more information on how the rotation is performed.
|
inline |
Creates a new instance.
|
inline |
|
inline |
|
inline |
|
inline |
Rotates the map's camera following the drag direction.
The drag event is consumed only if the sequence of events is the following : a EventStatus.Start
event, 0 or more EventStatus.InProgress
event and finally a EventStatus.End
event. If the sequence is not correct, this method returns EventResult.NotConsumed
.
dragEvent | a drag event. Cannot be null . |
map | the map. Cannot be null . |
System.ArgumentNullException | when passing null for the map or the event. |
|
getset |
Whether the RotateEventHandler
can change the pitch of the camera.
Returns whether the RotateEventHandler
can change the pitch of the camera. The default value is true.
Sets whether the RotateEventHandler
can change the pitch of the camera. If true, that means that the vertical variations of the drag events locations
are considered. This is useful only if the map is 3D
.
setPitchEnabled
|
getset |
Whether the RotateEventHandler
can change the yaw of the camera.
Returns whether the RotateEventHandler
can change the yaw of the camera. The default value is true.
Sets whether the RotateEventHandler
can change the yaw of the camera. If true, that means that the horizontal variations of the drag events locations
are considered. This is useful only if the map is 3D
.
setYawEnabled