marble
#include <GeoDataHotSpot.h>

Public Types | |
| enum | Units { Fraction, Pixels, InsetPixels } |
Public Member Functions | |
| GeoDataHotSpot (const QPointF &hotSpot=QPointF(0.5, 0.5), Units xunits=Fraction, Units yunits=Fraction) | |
| GeoDataHotSpot (const GeoDataHotSpot &other) | |
| ~GeoDataHotSpot () | |
| const QPointF & | hotSpot (Units &xunits, Units &yunits) const |
| virtual const char * | nodeType () const |
| GeoDataHotSpot & | operator= (const GeoDataHotSpot &other) |
| virtual void | pack (QDataStream &stream) const |
| void | setHotSpot (const QPointF &hotSpot=QPointF(0.5, 0.5), Units xunits=Fraction, Units yunits=Fraction) |
| virtual void | unpack (QDataStream &stream) |
Public Member Functions inherited from Marble::GeoDataObject | |
| GeoDataObject () | |
| GeoDataObject (const GeoDataObject &) | |
| virtual | ~GeoDataObject () |
| int | id () const |
| GeoDataObject & | operator= (const GeoDataObject &) |
| virtual GeoDataObject * | parent () const |
| QString | resolvePath (const QString &relativePath) const |
| void | setId (int value) |
| virtual void | setParent (GeoDataObject *parent) |
| void | setTargetId (int value) |
| int | targetId () const |
Public Member Functions inherited from Marble::GeoNode | |
| GeoNode () | |
| virtual | ~GeoNode () |
Public Member Functions inherited from Marble::Serializable | |
| virtual | ~Serializable () |
Detailed Description
Definition at line 27 of file GeoDataHotSpot.h.
Member Enumeration Documentation
| Enumerator | |
|---|---|
| Fraction | |
| Pixels | |
| InsetPixels | |
Definition at line 30 of file GeoDataHotSpot.h.
Constructor & Destructor Documentation
| Marble::GeoDataHotSpot::GeoDataHotSpot | ( | const QPointF & | hotSpot = QPointF( 0.5, 0.5 ), |
| Units | xunits = Fraction, |
||
| Units | yunits = Fraction |
||
| ) |
Definition at line 46 of file GeoDataHotSpot.cpp.
| Marble::GeoDataHotSpot::GeoDataHotSpot | ( | const GeoDataHotSpot & | other | ) |
Definition at line 51 of file GeoDataHotSpot.cpp.
| Marble::GeoDataHotSpot::~GeoDataHotSpot | ( | ) |
Definition at line 56 of file GeoDataHotSpot.cpp.
Member Function Documentation
this function returns the hotspot and the units the hotspot is measured in
- Parameters
-
xunits after running hotspot, you'll receive the unit in which x is measured yunits the same for y
- Returns
- the point of the hotspot
Definition at line 69 of file GeoDataHotSpot.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Implements Marble::GeoDataObject.
Definition at line 85 of file GeoDataHotSpot.cpp.
| GeoDataHotSpot & Marble::GeoDataHotSpot::operator= | ( | const GeoDataHotSpot & | other | ) |
Definition at line 61 of file GeoDataHotSpot.cpp.
|
virtual |
Serialize the contents of the feature to stream.
Reimplemented from Marble::GeoDataObject.
Definition at line 90 of file GeoDataHotSpot.cpp.
| void Marble::GeoDataHotSpot::setHotSpot | ( | const QPointF & | hotSpot = QPointF( 0.5, 0.5 ), |
| Units | xunits = Fraction, |
||
| Units | yunits = Fraction |
||
| ) |
Definition at line 78 of file GeoDataHotSpot.cpp.
|
virtual |
Unserialize the contents of the feature from stream.
Reimplemented from Marble::GeoDataObject.
Definition at line 98 of file GeoDataHotSpot.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from