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

qmapcontrol::ImagePoint Class Reference

#include <imagepoint.h>

Inheritance diagram for qmapcontrol::ImagePoint:

qmapcontrol::Point qmapcontrol::Geometry qmapcontrol::FixedImageOverlay

List of all members.


Detailed Description

Draws an image into the map.

This is a convenience class for Point. It configures the pixmap of a Point to draw the given image. The image will be loaded from the given path and written in the points pixmap.

Author:
Kai Winter <kaiwinter@gmx.de>

Definition at line 41 of file imagepoint.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
bool Equals (Geometry *geom)
virtual bool hasClickedPoints () const
virtual bool hasPoints () const
 ImagePoint (qreal x, qreal y, QPixmap *pixmap, QString name=QString(), Alignment alignment=Middle)
 Creates a point which displays the given image.
 ImagePoint (qreal x, qreal y, QString filename, QString name=QString(), Alignment alignment=Middle)
 Creates a point which loads and displays the given image file.
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
virtual void draw (QPainter *painter, const MapAdapter *mapadapter, const QRect &viewport, const QPoint offset)
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

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