marble
#include <VisiblePlacemark.h>
Public Types | |
enum | LabelStyle { Normal = 0, Glow, Selected } |
Public Member Functions | |
VisiblePlacemark (const GeoDataPlacemark *placemark) | |
const QPointF | hotSpot () const |
const QPixmap & | labelPixmap () const |
const QRectF & | labelRect () const |
const GeoDataPlacemark * | placemark () const |
bool | selected () const |
void | setLabelRect (const QRectF &area) |
void | setSelected (bool selected) |
void | setSymbolPosition (const QPoint &position) |
const QPixmap & | symbolPixmap () const |
const QPoint & | symbolPosition () const |
Detailed Description
A class which represents the visible place marks on a map.
This class is used by PlacemarkLayout to pass the visible place marks to the PlacemarkPainter.
Definition at line 38 of file VisiblePlacemark.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Normal | |
Glow | |
Selected |
Definition at line 94 of file VisiblePlacemark.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 26 of file VisiblePlacemark.cpp.
Member Function Documentation
const QPointF VisiblePlacemark::hotSpot | ( | ) | const |
Returns the top left corner of the place mark symbol's hot spot.
Definition at line 65 of file VisiblePlacemark.cpp.
const QPixmap & VisiblePlacemark::labelPixmap | ( | ) | const |
Returns the pixmap of the place mark name label.
Definition at line 105 of file VisiblePlacemark.cpp.
const QRectF & VisiblePlacemark::labelRect | ( | ) | const |
Returns the area covered by the place mark name label on the map.
Definition at line 110 of file VisiblePlacemark.cpp.
const GeoDataPlacemark * VisiblePlacemark::placemark | ( | ) | const |
Returns the index of the place mark model which is associated with this visible place mark.
Definition at line 33 of file VisiblePlacemark.cpp.
bool VisiblePlacemark::selected | ( | ) | const |
Returns the state of the place mark.
Definition at line 49 of file VisiblePlacemark.cpp.
void VisiblePlacemark::setLabelRect | ( | const QRectF & | area | ) |
Sets the area
covered by the place mark name label on the map.
Definition at line 115 of file VisiblePlacemark.cpp.
void VisiblePlacemark::setSelected | ( | bool | selected | ) |
Sets the state of the place mark.
Definition at line 54 of file VisiblePlacemark.cpp.
void VisiblePlacemark::setSymbolPosition | ( | const QPoint & | position | ) |
Sets the position
of the place mark symbol on the map.
Definition at line 100 of file VisiblePlacemark.cpp.
const QPixmap & VisiblePlacemark::symbolPixmap | ( | ) | const |
Returns the pixmap of the place mark symbol.
Definition at line 38 of file VisiblePlacemark.cpp.
const QPoint & VisiblePlacemark::symbolPosition | ( | ) | const |
Returns the position of the place mark symbol on the map.
Definition at line 60 of file VisiblePlacemark.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.