• 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
  • declarative
Placemark.cpp
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 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #include "Placemark.h"
12 
13 Placemark::Placemark(QObject *parent ) :
14  QObject( parent )
15 {
16  // nothing to do
17 }
18 
19 void Placemark::setGeoDataPlacemark( const Marble::GeoDataPlacemark &placemark )
20 {
21  m_placemark = placemark;
22  m_coordinate.setCoordinates( placemark.coordinate() );
23  emit coordinateChanged();
24  emit nameChanged();
25 }
26 
27 Coordinate *Placemark::coordinate()
28 {
29  return &m_coordinate;
30 }
31 
32 QString Placemark::name() const
33 {
34  return m_placemark.name();
35 }
36 
37 #include "Placemark.moc"
Placemark::Placemark
Placemark(QObject *parent=0)
Constructor.
Definition: Placemark.cpp:13
Marble::GeoDataPlacemark::coordinate
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:172
Placemark::coordinate
Coordinate * coordinate()
Placemark::setGeoDataPlacemark
void setGeoDataPlacemark(const Marble::GeoDataPlacemark &placemark)
Definition: Placemark.cpp:19
Placemark::coordinateChanged
void coordinateChanged()
Coordinate
Represents a coordinate with the properties of a name and coordinates.
Definition: Coordinate.h:28
QObject
QString
Coordinate::setCoordinates
void setCoordinates(const Marble::GeoDataCoordinates &coordinates)
Change all coordinates at once.
Definition: Coordinate.cpp:65
Placemark::nameChanged
void nameChanged()
Placemark.h
Marble::GeoDataFeature::name
QString name() const
The name of the feature.
Definition: GeoDataFeature.cpp:544
Placemark::name
QString name() const
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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