LuciadCPillar 2023.1.04
|
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... | |
PanEventHandler & | operator= (const PanEventHandler &other)=delete |
Basic gesture handler dedicated to translate drag gesture events to a pan operation.
luciad::PanEventHandler::PanEventHandler | ( | ) |
Creates a new instance.
luciad::PanEventHandler::~PanEventHandler | ( | ) |
|
delete |
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
.
dragEvent | a drag event. Cannot be nullptr . |
map | the map. Cannot be nullptr . |
luciad::NullArgumentException | when passing nullptr for the map or the event. |
|
delete |