Map scroller. More...
#include <mapscroller.h>
Signals | |
void | coordinateUpdated (SceneCoordinate coordinate) |
Signal if emitted when coordinate value is updated. | |
Static Public Member Functions | |
static MapScroller & | getInstance () |
Get reference to instance of this class. | |
Private Member Functions | |
MapScroller () | |
Constructor in not accessible because class is using singleton design pattern. | |
~MapScroller () | |
Destructor in not accessible because class is using singleton design pattern. | |
MapScroller (const MapScroller &) | |
Copy constructor in not accessible because class is using singleton design pattern. | |
MapScroller & | operator= (const MapScroller &) |
Assignment operator in not accessible because class is using singleton design pattern. | |
void | updateCurrentValue (const QVariant &value) |
Reimplemented from QVariantAnimation::updateCurrentValue(). |
Map scroller.
Used for kinetic and smooth scroll effects. Class implementation is following the singleton desing pattern.
Use QPointF datatype for startValue and endValue. Emitted datatype is SceneCoordinate.
void MapScroller::coordinateUpdated | ( | SceneCoordinate | coordinate | ) | [signal] |
Signal if emitted when coordinate value is updated.
coordinate | New coordinate value |
MapScroller & MapScroller::getInstance | ( | ) | [static] |
Get reference to instance of this class.
Also registers the custom SceneCoordinate interpolator method.
void MapScroller::updateCurrentValue | ( | const QVariant & | value | ) | [private] |
Reimplemented from QVariantAnimation::updateCurrentValue().
Called every time the animation's current value changes. Does emit coordinateUpdated() signal if animation is in the running state.
value | New value |