You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. *
  3. * This file is part of QMapControl,
  4. * an open-source cross-platform map widget
  5. *
  6. * Copyright (C) 2014 Frederic Bourgeois
  7. * Based on CirclePoint code by Kai Winter
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Lesser General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with QMapControl. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. * Contact e-mail: kaiwinter@gmx.de
  23. * Program URL : http://qmapcontrol.sourceforge.net/
  24. *
  25. */
  26. #include "invisiblepoint.h"
  27. InvisiblePoint::InvisiblePoint(qreal x, qreal y, int sideLength, QString name)
  28. : mapPoint(x, y, name, mapPoint::Middle)
  29. {
  30. size = QSize(sideLength, sideLength);
  31. }
  32. InvisiblePoint::InvisiblePoint(qreal x, qreal y, int width, int height, QString name)
  33. : mapPoint(x, y, name, mapPoint::Middle)
  34. {
  35. size = QSize(width, height);
  36. }
  37. InvisiblePoint::InvisiblePoint(qreal x, qreal y, QString name)
  38. : mapPoint(x, y, name, mapPoint::Middle)
  39. {
  40. int sideLength = 10;
  41. size = QSize(sideLength, sideLength);
  42. }
  43. InvisiblePoint::~InvisiblePoint()
  44. {
  45. }