Draws a fixed image into the map.
More...
#include <fixedimageoverlay.h>
|
virtual QRectF | boundingBox () |
| returns the bounding box of the point More...
|
|
QPointF | coordinate () const |
| returns the coordinate of the point More...
|
|
bool | Equals (Geometry *geom) |
|
| FixedImageOverlay (qreal x_upperleft, qreal y_upperleft, qreal x_lowerright, qreal y_lowerright, QString filename, QString name=QString()) |
| Creates an image overlay which loads and displays the given image file. More...
|
|
| FixedImageOverlay (qreal x_upperleft, qreal y_upperleft, qreal x_lowerright, qreal y_lowerright, QPixmap pixmap, QString name=QString()) |
| Creates an image overlay which displays the given image. More...
|
|
bool | isVisible () const |
| returns true if this Geometry is visible More...
|
|
qreal | latitude () const |
| returns the latitude of the point More...
|
|
qreal | longitude () const |
| returns the longitude of the point More...
|
|
QString | name () const |
| returns the name of this Geometry More...
|
|
Geometry * | parentGeometry () const |
| returns the parent Geometry of this Geometry More...
|
|
QPen * | pen () const |
| returns the QPen which is used on drawing More...
|
|
QPixmap | pixmap () |
| returns the pixmap of the point More...
|
|
void | setBaselevel (int zoomlevel) |
| Sets the zoom level on which the points pixmap gets displayed on full size. More...
|
|
void | setMaxsize (QSize maxsize) |
| sets a maximal size for the pixmap More...
|
|
void | setMinsize (QSize minsize) |
| sets a minimal size for the pixmap More...
|
|
void | setName (QString name) |
| sets the name of the geometry More...
|
|
QString | toString () |
| returns a String representation of this Geometry More...
|
|
QWidget * | widget () |
| returns the widget of the point More...
|
|
Draws a fixed image into the map.
This class draws a image overlay onto a map, whose upper left and lower right corners lay always on the given coordinates. The methods setBaselevel, setMaxsize and setMinsize have no effect for this class.
- Author
- Kai Winter kaiwi.nosp@m.nter.nosp@m.@gmx..nosp@m.de
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
|
FixedImageOverlay |
( |
qreal |
x_upperleft, |
|
|
qreal |
y_upperleft, |
|
|
qreal |
x_lowerright, |
|
|
qreal |
y_lowerright, |
|
|
QString |
filename, |
|
|
QString |
name = QString() |
|
) |
| |
Creates an image overlay which loads and displays the given image file.
Use this contructor to load the given image file and let the point display it. When you want multiple points to display the same image, use the other contructor and pass a pointer to that image.
- Parameters
-
x_upperleft | the coordinate of the upper left corner where the image should be aligned |
y_upperleft | the coordinate of the upper left corner where the image should be aligned |
x_lowerright | the coordinate of the lower right corner where the image should be aligned |
y_lowerright | the coordinate of the lower right corner where the image should be aligned |
filename | the file which should be loaded and displayed |
name | the name of the image point |
FixedImageOverlay |
( |
qreal |
x_upperleft, |
|
|
qreal |
y_upperleft, |
|
|
qreal |
x_lowerright, |
|
|
qreal |
y_lowerright, |
|
|
QPixmap |
pixmap, |
|
|
QString |
name = QString() |
|
) |
| |
Creates an image overlay which displays the given image.
Use this contructor to display the given image.
- Parameters
-
x_upperleft | the coordinate of the upper left corner where the image should be aligned |
y_upperleft | the coordinate of the upper left corner where the image should be aligned |
x_lowerright | the coordinate of the lower right corner where the image should be aligned |
y_lowerright | the coordinate of the lower right corner where the image should be aligned |
pixmap | pointer to the image pixmap |
name | the name of the image point |
References Point::pixmap().
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: