LuciadCPillar 2023.1.04
luciad::PanEventHandler Class Referencefinal

Basic gesture handler dedicated to translate drag gesture events to a pan operation. More...

#include <luciad/controllers/PanEventHandler.h>

Public Member Functions

 PanEventHandler ()
 Creates a new instance. More...
 
 PanEventHandler (const PanEventHandler &other)=delete
 
 ~PanEventHandler ()
 
EventResult onDragEvent (const std::shared_ptr< DragEvent > &dragEvent, const std::shared_ptr< Map > &map)
 Moves the map's camera following the drag direction. More...
 
PanEventHandleroperator= (const PanEventHandler &other)=delete
 

Detailed Description

Basic gesture handler dedicated to translate drag gesture events to a pan operation.

Since
2020.1

Constructor & Destructor Documentation

◆ PanEventHandler() [1/2]

luciad::PanEventHandler::PanEventHandler ( )

Creates a new instance.

◆ ~PanEventHandler()

luciad::PanEventHandler::~PanEventHandler ( )

◆ PanEventHandler() [2/2]

luciad::PanEventHandler::PanEventHandler ( const PanEventHandler other)
delete

Member Function Documentation

◆ onDragEvent()

EventResult luciad::PanEventHandler::onDragEvent ( const std::shared_ptr< DragEvent > &  dragEvent,
const std::shared_ptr< Map > &  map 
)

Moves 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.

Parameters
dragEventa drag event. Cannot be nullptr.
mapthe map. Cannot be nullptr.
Returns
whether the drag event was consumed or not.
Exceptions
luciad::NullArgumentExceptionwhen passing nullptr for the map or the event.

◆ operator=()

PanEventHandler & luciad::PanEventHandler::operator= ( const PanEventHandler other)
delete