Draws an invisible point into the map.
More...
#include <invisiblepoint.h>
Draws an invisible point into the map.
This is a convenience class for point. It configures the pixmap of a point to draw nothing, still being a clickable point.
- Author
- Frederic Bourgeois bourg.nosp@m.eois.nosp@m.lab@g.nosp@m.mail.nosp@m..com
sets where the point should be aligned
Enumerator |
---|
TopLeft |
Align on TopLeft
|
TopRight |
Align on TopRight
|
TopMiddle |
Align on TopLeft
|
BottomLeft |
Align on BottomLeft
|
BottomRight |
Align on BottomRight
|
BottomMiddle |
Align on BottomMiddle
|
Middle |
Align on Middle
|
- Parameters
-
x | longitude |
y | latitude |
name | name of the invisible point |
InvisiblePoint |
( |
qreal |
x, |
|
|
qreal |
y, |
|
|
int |
width = 10 , |
|
|
int |
height = 10 , |
|
|
QString |
name = QString() |
|
) |
| |
- Parameters
-
x | longitude |
y | latitude |
width | width |
height | height |
name | name of the invisible point |
InvisiblePoint |
( |
qreal |
x, |
|
|
qreal |
y, |
|
|
int |
sideLength = 10 , |
|
|
QString |
name = QString() |
|
) |
| |
- Parameters
-
x | longitude |
y | latitude |
sideLength | side length of the bounding box (square) |
name | name of the invisible point |
returns the bounding box of the point
The Bounding contains the coordinate of the point and its size. The size is set, if the point contains a pixmap or a widget
- Returns
- the bounding box of the point
Implements Geometry.
References Point::latitude(), and Point::longitude().
QPointF coordinate |
( |
| ) |
const |
|
inherited |
returns the coordinate of the point
The x component of the returned QPointF is the longitude value, the y component the latitude
- Returns
- the coordinate of a point
Referenced by MapControl::setView(), and Point::Touches().
returns true if the given Geometry is equal to this Geometry not implemented yet!
- Parameters
-
- Returns
- true if the given Geometry is equal to this
void geometryClicked |
( |
Geometry * |
geometry, |
|
|
QPoint |
point |
|
) |
| |
|
signalinherited |
This signal is emitted when a Geometry is clicked.
A Geometry is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked
- Parameters
-
geometry | The clicked Geometry |
point | -unused- |
Referenced by Point::Touches().
qreal longitude |
( |
| ) |
const |
|
inherited |
A Geometry emits this signal, when its position gets changed.
- Parameters
-
void setBaselevel |
( |
int |
zoomlevel | ) |
|
|
inherited |
Sets the zoom level on which the points pixmap gets displayed on full size.
Use this method to set a zoom level on which the pixmap gets displayed with its real size. On zoomlevels below it will be displayed smaller, and on zoom levels thereover it will be displayed larger
- See also
- setMinsize, setMaxsize
- Parameters
-
zoomlevel | the zoomlevel on which the point will be displayed on full size |
void setMaxsize |
( |
QSize |
maxsize | ) |
|
|
inherited |
sets a maximal size for the pixmap
When the point´s pixmap should change its size on zooming, this method sets the maximal size.
- See also
- setBaselevel
- Parameters
-
maxsize | the maximal size which the pixmap should have |
void setMinsize |
( |
QSize |
minsize | ) |
|
|
inherited |
sets a minimal size for the pixmap
When the point's pixmap should change its size on zooming, this method sets the minimal size.
- See also
- setBaselevel
- Parameters
-
minsize | the minimal size which the pixmap should have |
void setName |
( |
QString |
name | ) |
|
|
inherited |
sets the name of the geometry
- Parameters
-
name | the new name of the geometry |
References Geometry::name().
returns a String representation of this Geometry
not implemented yet!
- Returns
- a String representation of this Geometry
|
protectedvirtualinherited |
returns the widget of the point
- Returns
- the widget of the point
The documentation for this class was generated from the following files: