QGeoMapObject Class ReferenceThe QGeoMapObject class is graphical item for display in QGraphicsGeoMap instancse, that is specified in terms of coordinates and distances. More... #include <QGeoMapObject> Inherits QObject. Inherited by QGeoMapCircleObject, QGeoMapGroupObject, QGeoMapPixmapObject, QGeoMapPolygonObject, QGeoMapPolylineObject, QGeoMapRectangleObject, QGeoMapRouteObject, and QGeoMapTextObject. Public Types
Properties
Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QGeoMapObject class is graphical item for display in QGraphicsGeoMap instancse, that is specified in terms of coordinates and distances. QGeoMapObject instances can also be grouped into heirarchies in order to simplify the process of creating compound objects and managing groups of objects. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QGeoMapObject::NullType | 0 | An empty QGeoMapObject. |
QGeoMapObject::GroupType | 1 | A QGeoMapObject used to organize other map objects into groups. |
QGeoMapObject::RectangleType | 2 | A QGeoMapObject used to display a rectangular region. |
QGeoMapObject::CircleType | 3 | A QGeoMapObject used to display a circular region. |
QGeoMapObject::PolylineType | 4 | A QGeoMapObject used to display a multi-segment line. |
QGeoMapObject::PolygonType | 5 | A QGeoMapObject used to display a polygonal region. |
QGeoMapObject::PixmapType | 6 | A QGeoMapObject used to display a pixmap on a map. |
QGeoMapObject::TextType | 7 | A QGeoMapObject used to display text on a map |
QGeoMapObject::RouteType | 8 | A QGeoMapObject used to display a route. |
This property holds this property holds whether the map object is selected.
Access functions:
bool | isSelected () const |
void | setSelected ( bool selected ) |
Notifier signal:
void | selectedChanged ( bool selected ) |
This property holds this property holds whether the map object is visible.
If this map object is not visible then none of the childObjects() will be displayed either.
Access functions:
bool | isVisible () const |
void | setVisible ( bool visible ) |
Notifier signal:
void | visibleChanged ( bool visible ) |
This property holds this property holds the z-value of the map object.
The z-value determines the order in which the objects are drawn on the screen. Objects with the same value will be drawn in the order that they were added to the map or map object.
This is the same behaviour as QGraphicsItem.
Access functions:
int | zValue () const |
void | setZValue ( int zValue ) |
Notifier signal:
void | zValueChanged ( int zValue ) |
Constructs a new map object associated with mapData.
Destroys this map object.
Returns a bounding box which contains this map object.
The default implementation requires the object to be added to a map before this function returns a valid bounding box.
Returns whether coordinate is contained with the boundary of this map object.
In the default implementation, if this object has not been added to a map yet, contains will always return false.
Returns the QGeoMapObjectInfo instance which implements the QGeoMapData specific behaviours of this map object.
This will mostly be useful when implementing custom QGeoMapData subclasses.
Returns the QGeoMapData instance associated with this object.
Will return 0 if not QGeoMapData instance has been set.
See also setMapData().
This signal is emitted when the selected state of the map object has changed.
The new vlaue is selected.
Associates the QGeoMapData instance mapData with this map object.
This will create an appropriate QGeoMapObjectInfo instance for this QGeoMapObject and will connect the appropriate signals to it so that it can be kept up to date.
See also mapData().
Returns the type of this map object.
This signal is emitted when the visible state of the map object has changed.
The new value is visible.
This signal is emitted when the z value of the map object has changed.
The new value is zValue.