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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • earthquake
EarthquakeItem.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 Utku Aydin <utkuaydin34@gmail.com>
9 //
10 
11 
12 #ifndef EARTHQUAKEITEM_H
13 #define EARTHQUAKEITEM_H
14 
15 #include "AbstractDataPluginItem.h"
16 
17 #include <QDate>
18 #include <QFont>
19 
20 namespace Marble
21 {
22 
23 class EarthquakeItem : public AbstractDataPluginItem
24 {
25  Q_OBJECT
26 
27 public:
28  explicit EarthquakeItem( QObject *parent );
29 
30  ~EarthquakeItem();
31 
32  // Returns the item type of the item.
33  QString itemType() const;
34 
35  // Returns true if the item is paintable
36  bool initialized() const;
37 
38  // Here the item gets painted
39  void paint( QPainter *painter );
40 
41  bool operator<( const AbstractDataPluginItem *other ) const;
42 
43  // Magnitude whose value we use to determine circle's diameter
44  double magnitude() const;
45 
46  void setMagnitude( double magnitude );
47 
48  void setDateTime( const QDateTime &dateTime );
49 
50  QDateTime dateTime() const;
51 
53  double depth() const;
54 
55  void setDepth( double depth );
56 
57 private:
58  void updateTooltip();
59 
60  double m_magnitude;
61 
62  double m_depth;
63 
64  QDateTime m_dateTime;
65 
66  static const QFont s_font;
67 };
68 
69 }
70 #endif // EARTHQUAKEITEM_H
Marble::EarthquakeItem::setDateTime
void setDateTime(const QDateTime &dateTime)
Definition: EarthquakeItem.cpp:108
QPainter
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
Marble::EarthquakeItem::initialized
bool initialized() const
Definition: EarthquakeItem.cpp:44
QObject
Marble::EarthquakeItem::magnitude
double magnitude() const
Definition: EarthquakeItem.cpp:56
Marble::EarthquakeItem::EarthquakeItem
EarthquakeItem(QObject *parent)
Definition: EarthquakeItem.cpp:25
Marble::EarthquakeItem::paint
void paint(QPainter *painter)
Paints the item in item coordinates.
Definition: EarthquakeItem.cpp:68
Marble::EarthquakeItem::itemType
QString itemType() const
Returns the type of this specific item.
Definition: EarthquakeItem.cpp:38
Marble::EarthquakeItem::depth
double depth() const
Earthquake's depth in km.
Definition: EarthquakeItem.cpp:119
Marble::EarthquakeItem::~EarthquakeItem
~EarthquakeItem()
Definition: EarthquakeItem.cpp:33
Marble::EarthquakeItem
Definition: EarthquakeItem.h:23
AbstractDataPluginItem.h
Marble::EarthquakeItem::operator<
bool operator<(const AbstractDataPluginItem *other) const
Definition: EarthquakeItem.cpp:49
Marble::EarthquakeItem::dateTime
QDateTime dateTime() const
Definition: EarthquakeItem.cpp:114
Marble::EarthquakeItem::setMagnitude
void setMagnitude(double magnitude)
Definition: EarthquakeItem.cpp:61
Marble::EarthquakeItem::setDepth
void setDepth(double depth)
Definition: EarthquakeItem.cpp:124
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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