Marble

BillboardGraphicsItem.h
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Bernhard Beschow <[email protected]>
9 //
10 
11 #ifndef MARBLE_BILLBOARDGRAPHICSITEM_H
12 #define MARBLE_BILLBOARDGRAPHICSITEM_H
13 
14 #include "MarbleGraphicsItem.h"
15 #include "marble_export.h"
16 
17 #include <Qt>
18 
19 class QPointF;
20 
21 namespace Marble
22 {
23 class GeoDataCoordinates;
24 class BillboardGraphicsItemPrivate;
25 
33 class MARBLE_EXPORT BillboardGraphicsItem : public MarbleGraphicsItem
34 {
35  public:
37 
38  GeoDataCoordinates coordinate() const;
39  void setCoordinate( const GeoDataCoordinates &coordinates );
40 
41  Qt::Alignment alignment() const;
42  void setAlignment( Qt::Alignment alignment );
43 
53  QVector<QPointF> positions() const;
54 
59  QVector<QRectF> boundingRects() const;
60 
64  QRectF containsRect( const QPointF &point ) const;
65 
66  private:
67  Q_DECLARE_PRIVATE(BillboardGraphicsItem)
68 };
69 
70 } // Marble namespace
71 
72 #endif
A 3d point representation.
Base class for all 2D labels (a.k.a.
Binds a QML item to a specific geodetic location in screen coordinates.
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 23:18:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.