• 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
  • 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 true if the item is paintable
33  bool initialized() const;
34 
35  // Here the item gets painted
36  void paint( QPainter *painter );
37 
38  bool operator<( const AbstractDataPluginItem *other ) const;
39 
40  // Magnitude whose value we use to determine circle's diameter
41  double magnitude() const;
42 
43  void setMagnitude( double magnitude );
44 
45  void setDateTime( const QDateTime &dateTime );
46 
47  QDateTime dateTime() const;
48 
50  double depth() const;
51 
52  void setDepth( double depth );
53 
54 private:
55  void updateTooltip();
56 
57  double m_magnitude;
58 
59  double m_depth;
60 
61  QDateTime m_dateTime;
62 
63  static const QFont s_font;
64 };
65 
66 }
67 #endif // EARTHQUAKEITEM_H
Marble::EarthquakeItem::setDateTime
void setDateTime(const QDateTime &dateTime)
Definition: EarthquakeItem.cpp:102
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
QFont
Marble::EarthquakeItem::initialized
bool initialized() const
Definition: EarthquakeItem.cpp:38
Marble::EarthquakeItem::magnitude
double magnitude() const
Definition: EarthquakeItem.cpp:50
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:62
QObject
QPainter
Marble::EarthquakeItem::depth
double depth() const
Earthquake's depth in km.
Definition: EarthquakeItem.cpp:113
Marble::EarthquakeItem::~EarthquakeItem
~EarthquakeItem()
Definition: EarthquakeItem.cpp:33
Marble::EarthquakeItem
Definition: EarthquakeItem.h:23
QObject::parent
QObject * parent() const
AbstractDataPluginItem.h
QDateTime
Marble::EarthquakeItem::operator<
bool operator<(const AbstractDataPluginItem *other) const
Definition: EarthquakeItem.cpp:43
Marble::EarthquakeItem::dateTime
QDateTime dateTime() const
Definition: EarthquakeItem.cpp:108
Marble::EarthquakeItem::setMagnitude
void setMagnitude(double magnitude)
Definition: EarthquakeItem.cpp:55
Marble::EarthquakeItem::setDepth
void setDepth(double depth)
Definition: EarthquakeItem.cpp:118
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