#include <libosmscout-client-qt/include/osmscout/InputHandler.h>
Helper class that accumulates move (touch events) within some time period (time defined FIFO queue). It helps to MoveHandler determine of move vector when drag gesture ends. It is used for animate move momentum.
◆ MoveAccumulator()
| osmscout::MoveAccumulator::MoveAccumulator |
( |
int |
memory = 100, |
|
|
double |
factor = 4, |
|
|
double |
vectorLengthTreshold = 5 |
|
) |
| |
|
inline |
- Parameters
-
| memory | - in milliseconds for finger position points |
| factor | - momentum movement length (vector returned from collect method) will be equal to recorded length * factor |
| vectorLengthTreshold | - movement (between two points) have to be longer than treshold (in pixels) for change move vector |
◆ ~MoveAccumulator()
| osmscout::MoveAccumulator::~MoveAccumulator |
( |
| ) |
|
|
overridedefault |
◆ collect()
| QVector2D osmscout::MoveAccumulator::collect |
( |
| ) |
|
◆ operator+=()
The documentation for this class was generated from the following file: