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.

74 lines
2.1 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. #ifndef INVISIBLEPOINT_H
  27. #define INVISIBLEPOINT_H
  28. #include "qmapcontrol_global.h"
  29. #include "point.h"
  30. //! Draws an invisible point into the map
  31. /*! This is a convenience class for point.
  32. * It configures the pixmap of a point to draw nothing,
  33. * still being a clickable point.
  34. *
  35. * @author Frederic Bourgeois <bourgeoislab@gmail.com>
  36. */
  37. class InvisiblePoint : public mapPoint {
  38. public:
  39. //!
  40. /*!
  41. *
  42. * @param x longitude
  43. * @param y latitude
  44. * @param name name of the invisible point
  45. */
  46. InvisiblePoint(qreal x, qreal y, QString name = QString());
  47. //!
  48. /*!
  49. *
  50. * @param x longitude
  51. * @param y latitude
  52. * @param width width
  53. * @param height height
  54. * @param name name of the invisible point
  55. */
  56. InvisiblePoint(qreal x, qreal y, int width = 10, int height = 10, QString name = QString());
  57. //!
  58. /*!
  59. *
  60. * @param x longitude
  61. * @param y latitude
  62. * @param sideLength side length of the bounding box (square)
  63. * @param name name of the invisible point
  64. */
  65. InvisiblePoint(qreal x, qreal y, int sideLength = 10, QString name = QString());
  66. virtual ~InvisiblePoint();
  67. };
  68. #endif