Logo Search packages:      
Sourcecode: qmk-groundstation version File versions  Download package

qmapcontrol::FixedImageOverlay Class Reference

#include <fixedimageoverlay.h>

Inheritance diagram for qmapcontrol::FixedImageOverlay:

qmapcontrol::ImagePoint qmapcontrol::Point qmapcontrol::Geometry

List of all members.


Detailed Description

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 <kaiwinter@gmx.de>

Definition at line 42 of file fixedimageoverlay.h.


Public Types

enum  Alignment {
  TopLeft, TopRight, BottomLeft, BottomRight,
  Middle
}
 sets where the point should be aligned More...

Public Slots

void setCoordinate (QPointF point)
virtual void setVisible (bool visible)
 if visible is true, the layer is made visible

Signals

void geometryClicked (Geometry *geometry, QPoint point)
 This signal is emitted when a Geometry is clicked.
void positionChanged (Geometry *geom)
 A Geometry emits this signal, when its position gets changed.
void updateRequest (QRectF rect)
void updateRequest (Geometry *geom)

Public Member Functions

Point::Alignment alignment () const
virtual QRectF boundingBox ()
 returns the bounding box of the point
virtual QList< Geometry * > clickedPoints ()
QPointF coordinate () const
 returns the coordinate of the point
virtual void draw (QPainter *painter, const MapAdapter *mapadapter, const QRect &viewport, const QPoint offset)
bool Equals (Geometry *geom)
 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.
 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.
virtual bool hasClickedPoints () const
virtual bool hasPoints () const
bool isVisible () const
 returns true if this Geometry is visible
qreal latitude () const
 returns the latitude of the point
qreal longitude () const
 returns the longitude of the point
QString name () const
 returns the name of this Geometry
GeometryparentGeometry () const
 returns the parent Geometry of this Geometry
QPen * pen () const
 returns the QPen which is used on drawing
QPixmap * pixmap ()
 returns the pixmap of the point
virtual QList< Point * > points ()
void setBaselevel (int zoomlevel)
 Sets the zoom level on which the point�s pixmap gets displayed on full size.
void setMaxsize (QSize maxsize)
 sets a maximal size for the pixmap
void setMinsize (QSize minsize)
 sets a minimal size for the pixmap
void setName (QString name)
 sets the name of the geometry
virtual void setPen (QPen *pen)
QString toString ()
 returns a String representation of this Geometry
QWidget * widget ()
 returns the widget of the point

Public Attributes

QString GeometryType

Protected Member Functions

QPoint alignedPoint (const QPoint point) const
void drawWidget (const MapAdapter *mapadapter, const QPoint offset)
void setParentGeometry (Geometry *geom)
virtual bool Touches (Point *geom, const MapAdapter *mapadapter)
 returns true if the given Point touches this Point

Protected Attributes

QSize displaysize
int homelevel
QSize maxsize
QSize minsize
Alignment myalignment
QString myname
QPen * mypen
QPixmap * mypixmap
QWidget * mywidget
QSize size
bool visible
qreal X
qreal Y

Private Attributes

qreal x_lowerright
qreal y_lowerright

Friends

class Layer
class LineString

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index