2
// This file is part of the Marble Virtual Globe.
4
// This program is free software licensed under the GNU LGPL. You can
5
// find a copy of this license in LICENSE.txt in the top directory of
8
// Copyright 2010 Wes Hardaker <hardaker@users.sourceforge.net>
14
#include <QtCore/QObject>
15
#include <QtCore/QString>
17
#include "GeoAprsCoordinates.h"
18
#include "GeoPainter.h"
19
#include "GeoSceneLayer.h"
29
AprsObject( const GeoAprsCoordinates &at, QString &name );
30
AprsObject( const qreal &lon, const qreal &lat, const QString &name,
31
int where = GeoAprsCoordinates::FromNowhere );
34
void setLocation( GeoAprsCoordinates location );
35
void setLocation( qreal lon, qreal lat, int from );
36
void setPixmapId( QString &pixmap );
37
void setSeenFrom( int where );
38
GeoAprsCoordinates location();
40
QColor calculatePaintColor( GeoPainter *painter ) const;
41
QColor calculatePaintColor( GeoPainter *painter, int from,
43
int fadetime = 10*60*1000 ) const;
44
void render( GeoPainter *painter, ViewportParams *viewport,
45
const QString& renderPos, GeoSceneLayer * layer,
46
int fadeTime = 10*60, int hideTime = 30*60 );
49
QList<GeoAprsCoordinates> m_history;
53
QString m_pixmapFilename;
59
#endif /* APRSOBJECT_H */