Geographic
#include <bb/platform/geo/Geographic>
To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesmaps
An entity that can be placed on a map.
Subclass Contract
Call setBoundingBox(BoundingBox) whenever this object's bounding box changes.
Emit a topographyChanged signal when the contents of the Geographic have changed.
Reference Type
Geographic and it's subclasses are expected to be used as a reference type. As such, care needs to be made when referencing this object in multithreaded environments. For example, deletion in one thread can cause a dangling pointer in another thread.
BlackBerry 10.0.0
Inheritance
| bb::platform::geo::Geographic | |||
| bb::platform::geo::GeoLocation | |||
Properties Index
Public Functions Index
| Geographic (QObject *parent=0) | |
| Geographic (const QString &id, QObject *parent=0) | |
| virtual | ~Geographic () |
| virtual bb::platform::geo::BoundingBox | boundingBox () const |
| QString | description () const |
| Q_SLOT void | setDescription (const QString &desc) |
| QString | id () const |
| Q_SLOT void | setId (const QString &id) |
| QString | name () const |
| Q_SLOT void | setName (const QString &name) |
Protected Functions Index
| void | setBoundingBox (const bb::platform::geo::BoundingBox &newBox) |
Signals Index
| void | descriptionChanged (const QString &desc) |
| void | idChanged (const QString &id) |
| void | nameChanged (const QString &name) |
| void | boundaryChanged (const bb::platform::geo::BoundingBox &box) |
| void | topographyChanged (const QString &id) |
Properties
bb::platform::geo::BoundingBox
The axis-aligned bounding box in which this object is contained.
BlackBerry 10.0.0
Public Functions
Constructor.
| Parameters | |
|---|---|
| parent |
The parent of this Geographic. |
BlackBerry 10.0.0
Constructor.
| Parameters | |
|---|---|
| id |
The identifier for this Geographic. |
| parent |
The parent of this Geographic. |
BlackBerry 10.0.0
virtual
Destructor.
virtualbb::platform::geo::BoundingBox
Retrieves the axis-aligned bounding box for this Geographic.
BlackBerry 10.0.0
QString
Gets the unique identifier for this Geographic.
If two Geographics are attribute-wise equal, they still need to have different IDs. The ID needs to be unique within a process.
BlackBerry 10.0.0
Protected Functions
void
Signals
void
Emitted by derived classes when the bounding box has changed.
See the BoundingBox documentation.
BlackBerry 10.0.0
void
Emitted when the topography of this Geographic changes.
| Parameters | |
|---|---|
| id |
The ID of this Geographic. |
BlackBerry 10.1.0