Changeset View
Changeset View
Standalone View
Standalone View
examples/cpp/squad-interpolation/squad-interpolation.h
Show All 25 Lines | |||||
26 | { | 26 | { | ||
27 | Q_OBJECT | 27 | Q_OBJECT | ||
28 | 28 | | |||
29 | public: | 29 | public: | ||
30 | // Constructor | 30 | // Constructor | ||
31 | explicit MyPaintLayer( MarbleWidget* widget ); | 31 | explicit MyPaintLayer( MarbleWidget* widget ); | ||
32 | 32 | | |||
33 | // LayerInterface | 33 | // LayerInterface | ||
34 | QStringList renderPosition() const; | 34 | RenderPositions renderPositions() const override; | ||
35 | bool render( GeoPainter *painter, ViewportParams *viewport, | 35 | bool render(GeoPainter *painter, ViewportParams *viewport, | ||
36 | const QString& renderPos = "NONE", GeoSceneLayer * layer = 0 ); | 36 | RenderPosition renderPos, GeoSceneLayer * layer) override; | ||
37 | GeoDataLatLonBox center() const; | 37 | GeoDataLatLonBox center() const; | ||
38 | 38 | | |||
39 | private Q_SLOTS: | 39 | private Q_SLOTS: | ||
40 | void addInterpolatedPoint(); | 40 | void addInterpolatedPoint(); | ||
41 | 41 | | |||
42 | private: | 42 | private: | ||
43 | void addRandomCity( double minDistanceKm=500, double maxDistanceKm=1500 ); | 43 | void addRandomCity( double minDistanceKm=500, double maxDistanceKm=1500 ); | ||
44 | static GeoDataCoordinates basePoint( const GeoDataCoordinates &q1, const GeoDataCoordinates &q2, const GeoDataCoordinates &q3 ); | 44 | static GeoDataCoordinates basePoint( const GeoDataCoordinates &q1, const GeoDataCoordinates &q2, const GeoDataCoordinates &q3 ); | ||
Show All 12 Lines |