• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • aprs
AprsObject.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
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
6 // the source code.
7 //
8 // Copyright 2010 Wes Hardaker <hardaker@users.sourceforge.net>
9 //
10 
11 #ifndef APRSOBJECT_H
12 #define APRSOBJECT_H
13 
14 #include <QObject>
15 #include <QString>
16 
17 #include "GeoAprsCoordinates.h"
18 #include "GeoPainter.h"
19 
20 namespace Marble
21 {
22 
23  class AprsObject
24  {
25 
26  public:
27  AprsObject( const GeoAprsCoordinates &at, const QString &name );
28  ~AprsObject();
29 
30  void setLocation( const GeoAprsCoordinates &location );
31  void setPixmapId( QString &pixmap );
32  GeoAprsCoordinates location() const;
33 
34  static QColor calculatePaintColor( int from, const QTime &time, int fadetime = 10*60*1000 );
35  void render( GeoPainter *painter, ViewportParams *viewport,
36  int fadeTime = 10*60, int hideTime = 30*60 );
37 
38  private:
39  QList<GeoAprsCoordinates> m_history;
40  QString m_myName;
41  int m_seenFrom;
42  bool m_havePixmap;
43  QString m_pixmapFilename;
44  QPixmap *m_pixmap;
45  };
46 
47 }
48 
49 #endif /* APRSOBJECT_H */
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::AprsObject::~AprsObject
~AprsObject()
Definition: AprsObject.cpp:33
GeoAprsCoordinates.h
QTime
Marble::AprsObject
Definition: AprsObject.h:23
Marble::AprsObject::setPixmapId
void setPixmapId(QString &pixmap)
Definition: AprsObject.cpp:62
Marble::AprsObject::calculatePaintColor
static QColor calculatePaintColor(int from, const QTime &time, int fadetime=10 *60 *1000)
Definition: AprsObject.cpp:76
Marble::AprsObject::setLocation
void setLocation(const GeoAprsCoordinates &location)
Definition: AprsObject.cpp:45
Marble::AprsObject::render
void render(GeoPainter *painter, ViewportParams *viewport, int fadeTime=10 *60, int hideTime=30 *60)
Definition: AprsObject.cpp:106
Marble::AprsObject::AprsObject
AprsObject(const GeoAprsCoordinates &at, const QString &name)
Definition: AprsObject.cpp:23
QString
QList
QColor
GeoPainter.h
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QPixmap
Marble::AprsObject::location
GeoAprsCoordinates location() const
Definition: AprsObject.cpp:39
Marble::GeoAprsCoordinates
Definition: GeoAprsCoordinates.h:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal