Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
mapviz_plugins::CanvasClickFilter Class Reference

#include <canvas_click_filter.h>

Inheritance diagram for mapviz_plugins::CanvasClickFilter:
Inheritance graph
[legend]

Signals

void pointClicked (const QPointF &)
 

Public Member Functions

 CanvasClickFilter ()
 
void setMaxClickMovement (qreal max_distance)
 
void setMaxClickTime (qint64 max_ms)
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
 

Private Attributes

bool is_mouse_down_
 
qreal max_distance_
 
qint64 max_ms_
 
QPointF mouse_down_pos_
 
qint64 mouse_down_time_
 

Detailed Description

Definition at line 47 of file canvas_click_filter.h.

Constructor & Destructor Documentation

◆ CanvasClickFilter()

mapviz_plugins::CanvasClickFilter::CanvasClickFilter ( )

Definition at line 37 of file canvas_click_filter.cpp.

Member Function Documentation

◆ eventFilter()

bool mapviz_plugins::CanvasClickFilter::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 53 of file canvas_click_filter.cpp.

◆ pointClicked

void mapviz_plugins::CanvasClickFilter::pointClicked ( const QPointF &  )
signal

◆ setMaxClickMovement()

void mapviz_plugins::CanvasClickFilter::setMaxClickMovement ( qreal  max_distance)

Definition at line 48 of file canvas_click_filter.cpp.

◆ setMaxClickTime()

void mapviz_plugins::CanvasClickFilter::setMaxClickTime ( qint64  max_ms)

Definition at line 43 of file canvas_click_filter.cpp.

Member Data Documentation

◆ is_mouse_down_

bool mapviz_plugins::CanvasClickFilter::is_mouse_down_
private

Definition at line 64 of file canvas_click_filter.h.

◆ max_distance_

qreal mapviz_plugins::CanvasClickFilter::max_distance_
private

Definition at line 69 of file canvas_click_filter.h.

◆ max_ms_

qint64 mapviz_plugins::CanvasClickFilter::max_ms_
private

Definition at line 68 of file canvas_click_filter.h.

◆ mouse_down_pos_

QPointF mapviz_plugins::CanvasClickFilter::mouse_down_pos_
private

Definition at line 65 of file canvas_click_filter.h.

◆ mouse_down_time_

qint64 mapviz_plugins::CanvasClickFilter::mouse_down_time_
private

Definition at line 66 of file canvas_click_filter.h.


The documentation for this class was generated from the following files:


mapviz_plugins
Author(s): Marc Alban
autogenerated on Fri Dec 16 2022 03:59:34