The QGeoMapGroupObject class is a QGeoMapObject used to manager a group of other map objects. More...
#include <QGeoMapGroupObject>
Inherits: QGeoMapObject.
This class was introduced in Qt Mobility 1.1.
QGeoMapGroupObject () | |
~QGeoMapGroupObject () | |
void | addChildObject ( QGeoMapObject * childObject ) |
QList<QGeoMapObject *> | childObjects () const |
void | clearChildObjects () |
void | removeChildObject ( QGeoMapObject * childObject ) |
void | setVisible ( bool visible ) |
virtual QGeoBoundingBox | boundingBox () const |
virtual bool | contains ( const QGeoCoordinate & coordinate ) const |
virtual void | setMapData ( QGeoMapData * mapData ) |
virtual QGeoMapObject::Type | type () const |
void | childAdded ( QGeoMapObject * childObject ) |
void | childRemoved ( QGeoMapObject * childObject ) |
void | childUpdated ( QGeoMapObject * childObject ) |
The QGeoMapGroupObject class is a QGeoMapObject used to manager a group of other map objects.
The QGeoMapGroupObject class can be used to quickly add and remove groups of objects to a map.
The map objects contained in the group will be ordered relative to one another in the usual manner, such that objects with higher z-values will be drawn over objects with lower z-values and objects with equal z-values will be drawn in insertion order.
This ordering of the objects will be independent of the other objects that are added to the map, since the z-value and insertion order of the QGeoMapGroupObject is used to determine where the group is placed in the scene.
Constructs a new group object.
Destroys this group object.
Adds childObject to the list of children of this map object.
The children objects are drawn in order of the QGeoMapObject::zValue() value. Children objects having the same z value will be drawn in the order they were added.
The map object will take ownership of childObject.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapObject::boundingBox().
Returns a bounding box which contains this map object.
If this map object has children, the bounding box will be large enough to contain both this map object and all of its children.
This function was introduced in Qt Mobility 1.1.
This signal will be emitted when the map object childObject is added to the group.
This function was introduced in Qt Mobility 1.1.
Returns the children of this object.
This function was introduced in Qt Mobility 1.1.
This signal will be emitted when the map object childObject is removed from the group.
This function was introduced in Qt Mobility 1.1.
This signal will be emitted if the map object childObject has changed such that the corresponding QGeoMapObjectInfo class that handles the map-specific behaviours of the object needs to be informed of the change.
The map object childObject must belong to this group.
At the moment this is only emitted when the z-value of the child-objects are changed.
This function was introduced in Qt Mobility 1.2.
Clears the children of this object.
The child objects will be deleted.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapObject::contains().
Returns whether coordinate is contained with the boundary of this map object.
If this map object has children, this function will return whether coordinate is contained within the boundary of this map object or within the boundary of any of its children.
This function was introduced in Qt Mobility 1.1.
Removes childObject from the list of children of this map object.
The map object will release ownership of childObject.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapObject::setMapData().
This function was introduced in Qt Mobility 1.1.
Sets whether this group of objects is visible to visible.
This function was introduced in Qt Mobility 1.2.
Reimplemented from QGeoMapObject::type().
This function was introduced in Qt Mobility 1.1.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.