SnakeTile.h 465 Bytes
Newer Older
1 2
#pragma once

3
#include "geometry/GeoArea.h"
4

5 6 7
#include <QGeoCoordinate>

class SnakeTile : public GeoArea {
8 9 10 11 12 13 14
  Q_OBJECT
public:
  SnakeTile(QObject *parent = nullptr);
  SnakeTile(const SnakeTile &other, QObject *parent = nullptr);
  ~SnakeTile();

  virtual QString mapVisualQML() const override;
15 16
  virtual QString editorQML() const override;
  virtual SnakeTile *clone(QObject *parent) const;
17

18
  void push_back(const QGeoCoordinate &c);
19 20 21

private:
  void init();
22
};