LuciadCPillar C# 2023.1.04
Luciad.Controllers.RotateEventHandler Class Reference

Handler that translates drag gesture events to a rotate operation. More...

Inheritance diagram for Luciad.Controllers.RotateEventHandler:

Public Member Functions

 RotateEventHandler ()
 Creates a new instance. More...
 
void Dispose ()
 
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]
 
bool IsYawEnabled [get, set]
 

Detailed Description

Handler that translates drag gesture events to a rotate operation.

Rotation is done using a luciad::MapNavigator::RotateAction, please check this class documentation for more information on how the rotation is performed. 2020.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::RotateEventHandler.

Constructor & Destructor Documentation

◆ RotateEventHandler()

Luciad.Controllers.RotateEventHandler.RotateEventHandler ( )
inline

Creates a new instance.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::RotateEventHandler::RotateEventHandler.

Member Function Documentation

◆ Dispose()

void Luciad.Controllers.RotateEventHandler.Dispose ( )
inline

◆ OnDragEvent()

Luciad.Controllers.EventResult Luciad.Controllers.RotateEventHandler.OnDragEvent ( Luciad.Input.DragEvent  dragEvent,
Luciad.Maps.Map  map 
)
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 nullptr.

map

the map. Cannot be nullptr.

whether the drag event is consumed or not.

luciad::NullArgumentException

when passing nullptr for the map or the event.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::RotateEventHandler::onDragEvent.

Property Documentation

◆ IsPitchEnabled

bool Luciad.Controllers.RotateEventHandler.IsPitchEnabled
getset

◆ IsYawEnabled

bool Luciad.Controllers.RotateEventHandler.IsYawEnabled
getset